aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdumper.c
diff options
context:
space:
mode:
authorPhilipp Stephani2019-04-19 23:07:58 +0200
committerPhilipp Stephani2019-04-19 23:07:58 +0200
commite7cb6eea99a09335c8f5b935336ee6442468d853 (patch)
treed6f67e8541f32c300fa1c185e4a41de76f3fc0ac /src/pdumper.c
parent7e7d62ea5e1a33bdec82bce79ad27e10765e50f1 (diff)
downloademacs-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/pdumper.c')
-rw-r--r--src/pdumper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index 1bd94cb0036..cb36f7e4b4a 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -3013,9 +3013,7 @@ dump_vectorlike (struct dump_context *ctx,
3013 case PVEC_XWIDGET_VIEW: 3013 case PVEC_XWIDGET_VIEW:
3014 error_unsupported_dump_object (ctx, lv, "xwidget view"); 3014 error_unsupported_dump_object (ctx, lv, "xwidget view");
3015 case PVEC_MISC_PTR: 3015 case PVEC_MISC_PTR:
3016#ifdef HAVE_MODULES
3017 case PVEC_USER_PTR: 3016 case PVEC_USER_PTR:
3018#endif
3019 error_unsupported_dump_object (ctx, lv, "smuggled pointers"); 3017 error_unsupported_dump_object (ctx, lv, "smuggled pointers");
3020 case PVEC_THREAD: 3018 case PVEC_THREAD:
3021 if (main_thread_p (v)) 3019 if (main_thread_p (v))