]> git.eshelyaron.com Git - emacs.git/commit
Remove some #ifdefs for user pointers.
authorPhilipp Stephani <phst@google.com>
Fri, 19 Apr 2019 21:07:58 +0000 (23:07 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 19 Apr 2019 21:07:58 +0000 (23:07 +0200)
commite7cb6eea99a09335c8f5b935336ee6442468d853
treed6f67e8541f32c300fa1c185e4a41de76f3fc0ac
parent7e7d62ea5e1a33bdec82bce79ad27e10765e50f1
Remove some #ifdefs for user pointers.

Even if Emacs is compiled without module support, we don't have to
comment out every bit of user pointer support.  Defining the basic
structures and functions and detecting user pointers in switch
statements is harmless, and we're already doing the same for module
functions.  Removing these #ifdefs makes the code a bit easier to
read.

* src/lisp.h (PVEC_USER_PTR, struct Lisp_User_Ptr, USER_PTRP)
(XUSER_PTR): Define unconditionally.

* src/data.c (Ftype_of):
* src/alloc.c (cleanup_vector):
* src/print.c (print_vectorlike):
* src/pdumper.c (dump_vectorlike): Remove #ifdef for user pointers.
src/alloc.c
src/data.c
src/lisp.h
src/pdumper.c
src/print.c