diff options
| author | Philipp Stephani | 2019-04-19 23:07:58 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-19 23:07:58 +0200 |
| commit | e7cb6eea99a09335c8f5b935336ee6442468d853 (patch) | |
| tree | d6f67e8541f32c300fa1c185e4a41de76f3fc0ac /src/print.c | |
| parent | 7e7d62ea5e1a33bdec82bce79ad27e10765e50f1 (diff) | |
| download | emacs-e7cb6eea99a09335c8f5b935336ee6442468d853.tar.gz emacs-e7cb6eea99a09335c8f5b935336ee6442468d853.zip | |
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.
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c index 67c4ed03ee8..081e5574b73 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1410,7 +1410,6 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag, | |||
| 1410 | printchar ('>', printcharfun); | 1410 | printchar ('>', printcharfun); |
| 1411 | break; | 1411 | break; |
| 1412 | 1412 | ||
| 1413 | #ifdef HAVE_MODULES | ||
| 1414 | case PVEC_USER_PTR: | 1413 | case PVEC_USER_PTR: |
| 1415 | { | 1414 | { |
| 1416 | print_c_string ("#<user-ptr ", printcharfun); | 1415 | print_c_string ("#<user-ptr ", printcharfun); |
| @@ -1421,7 +1420,6 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag, | |||
| 1421 | printchar ('>', printcharfun); | 1420 | printchar ('>', printcharfun); |
| 1422 | } | 1421 | } |
| 1423 | break; | 1422 | break; |
| 1424 | #endif | ||
| 1425 | 1423 | ||
| 1426 | case PVEC_FINALIZER: | 1424 | case PVEC_FINALIZER: |
| 1427 | print_c_string ("#<finalizer", printcharfun); | 1425 | print_c_string ("#<finalizer", printcharfun); |