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/data.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/data.c')
| -rw-r--r-- | src/data.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c index 1b2431011e9..596b7783747 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -230,9 +230,7 @@ for example, (type-of 1) returns `integer'. */) | |||
| 230 | case PVEC_MARKER: return Qmarker; | 230 | case PVEC_MARKER: return Qmarker; |
| 231 | case PVEC_OVERLAY: return Qoverlay; | 231 | case PVEC_OVERLAY: return Qoverlay; |
| 232 | case PVEC_FINALIZER: return Qfinalizer; | 232 | case PVEC_FINALIZER: return Qfinalizer; |
| 233 | #ifdef HAVE_MODULES | ||
| 234 | case PVEC_USER_PTR: return Quser_ptr; | 233 | case PVEC_USER_PTR: return Quser_ptr; |
| 235 | #endif | ||
| 236 | case PVEC_WINDOW_CONFIGURATION: return Qwindow_configuration; | 234 | case PVEC_WINDOW_CONFIGURATION: return Qwindow_configuration; |
| 237 | case PVEC_PROCESS: return Qprocess; | 235 | case PVEC_PROCESS: return Qprocess; |
| 238 | case PVEC_WINDOW: return Qwindow; | 236 | case PVEC_WINDOW: return Qwindow; |