diff options
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/lisp.h b/src/lisp.h index 7812e58782b..756d08fda33 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -345,15 +345,11 @@ static ptrdiff_t const PSEUDOVECTOR_FLAG | |||
| 345 | = PSEUDOVECTOR_FLAG; | 345 | = PSEUDOVECTOR_FLAG; |
| 346 | 346 | ||
| 347 | /* In a pseudovector, the size field actually contains a word with one | 347 | /* In a pseudovector, the size field actually contains a word with one |
| 348 | PSEUDOVECTOR_FLAG bit set, and exactly one of the following bits to | 348 | PSEUDOVECTOR_FLAG bit set, and one of the following values extracted |
| 349 | indicate the actual type. | 349 | with PVEC_TYPE_MASK to indicate the actual type. */ |
| 350 | We use a bitset, even tho only one of the bits can be set at any | ||
| 351 | particular time just so as to be able to use micro-optimizations such as | ||
| 352 | testing membership of a particular subset of pseudovectors in Fequal. | ||
| 353 | It is not crucial, but there are plenty of bits here, so why not do it? */ | ||
| 354 | enum pvec_type | 350 | enum pvec_type |
| 355 | { | 351 | { |
| 356 | PVEC_NORMAL_VECTOR = 0, /* Unused! */ | 352 | PVEC_NORMAL_VECTOR, |
| 357 | PVEC_FREE, | 353 | PVEC_FREE, |
| 358 | PVEC_PROCESS, | 354 | PVEC_PROCESS, |
| 359 | PVEC_FRAME, | 355 | PVEC_FRAME, |
| @@ -3031,7 +3027,7 @@ extern Lisp_Object oblookup (Lisp_Object, const char *, ptrdiff_t, ptrdiff_t); | |||
| 3031 | } while (0) | 3027 | } while (0) |
| 3032 | extern int openp (Lisp_Object, Lisp_Object, Lisp_Object, | 3028 | extern int openp (Lisp_Object, Lisp_Object, Lisp_Object, |
| 3033 | Lisp_Object *, Lisp_Object); | 3029 | Lisp_Object *, Lisp_Object); |
| 3034 | Lisp_Object string_to_number (char const *, int, int); | 3030 | extern Lisp_Object string_to_number (char const *, int, bool); |
| 3035 | extern void map_obarray (Lisp_Object, void (*) (Lisp_Object, Lisp_Object), | 3031 | extern void map_obarray (Lisp_Object, void (*) (Lisp_Object, Lisp_Object), |
| 3036 | Lisp_Object); | 3032 | Lisp_Object); |
| 3037 | extern void dir_warning (const char *, Lisp_Object); | 3033 | extern void dir_warning (const char *, Lisp_Object); |
| @@ -3202,9 +3198,9 @@ extern ptrdiff_t fast_string_match_ignore_case (Lisp_Object, Lisp_Object); | |||
| 3202 | extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, | 3198 | extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, |
| 3203 | ptrdiff_t, ptrdiff_t, Lisp_Object); | 3199 | ptrdiff_t, ptrdiff_t, Lisp_Object); |
| 3204 | extern ptrdiff_t scan_buffer (int, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 3200 | extern ptrdiff_t scan_buffer (int, ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 3205 | ptrdiff_t *, int); | 3201 | ptrdiff_t *, bool); |
| 3206 | extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 3202 | extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, |
| 3207 | EMACS_INT, int); | 3203 | EMACS_INT, bool); |
| 3208 | extern ptrdiff_t find_next_newline (ptrdiff_t, int); | 3204 | extern ptrdiff_t find_next_newline (ptrdiff_t, int); |
| 3209 | extern ptrdiff_t find_next_newline_no_quit (ptrdiff_t, ptrdiff_t); | 3205 | extern ptrdiff_t find_next_newline_no_quit (ptrdiff_t, ptrdiff_t); |
| 3210 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t); | 3206 | extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t); |
| @@ -3247,7 +3243,7 @@ extern Lisp_Object Qdisabled, QCfilter; | |||
| 3247 | extern Lisp_Object Qup, Qdown, Qbottom; | 3243 | extern Lisp_Object Qup, Qdown, Qbottom; |
| 3248 | extern Lisp_Object Qtop; | 3244 | extern Lisp_Object Qtop; |
| 3249 | extern Lisp_Object last_undo_boundary; | 3245 | extern Lisp_Object last_undo_boundary; |
| 3250 | extern int input_pending; | 3246 | extern bool input_pending; |
| 3251 | extern Lisp_Object menu_bar_items (Lisp_Object); | 3247 | extern Lisp_Object menu_bar_items (Lisp_Object); |
| 3252 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); | 3248 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); |
| 3253 | extern void discard_mouse_events (void); | 3249 | extern void discard_mouse_events (void); |
| @@ -3255,9 +3251,9 @@ extern void discard_mouse_events (void); | |||
| 3255 | void handle_input_available_signal (int); | 3251 | void handle_input_available_signal (int); |
| 3256 | #endif | 3252 | #endif |
| 3257 | extern Lisp_Object pending_funcalls; | 3253 | extern Lisp_Object pending_funcalls; |
| 3258 | extern int detect_input_pending (void); | 3254 | extern bool detect_input_pending (void); |
| 3259 | extern int detect_input_pending_ignore_squeezables (void); | 3255 | extern bool detect_input_pending_ignore_squeezables (void); |
| 3260 | extern int detect_input_pending_run_timers (int); | 3256 | extern bool detect_input_pending_run_timers (bool); |
| 3261 | extern void safe_run_hooks (Lisp_Object); | 3257 | extern void safe_run_hooks (Lisp_Object); |
| 3262 | extern void cmd_error_internal (Lisp_Object, const char *); | 3258 | extern void cmd_error_internal (Lisp_Object, const char *); |
| 3263 | extern Lisp_Object command_loop_1 (void); | 3259 | extern Lisp_Object command_loop_1 (void); |
| @@ -3336,7 +3332,7 @@ extern bool running_asynch_code; | |||
| 3336 | extern Lisp_Object QCtype, Qlocal; | 3332 | extern Lisp_Object QCtype, Qlocal; |
| 3337 | extern Lisp_Object Qprocessp; | 3333 | extern Lisp_Object Qprocessp; |
| 3338 | extern void kill_buffer_processes (Lisp_Object); | 3334 | extern void kill_buffer_processes (Lisp_Object); |
| 3339 | extern int wait_reading_process_output (intmax_t, int, int, int, | 3335 | extern int wait_reading_process_output (intmax_t, int, int, bool, |
| 3340 | Lisp_Object, | 3336 | Lisp_Object, |
| 3341 | struct Lisp_Process *, | 3337 | struct Lisp_Process *, |
| 3342 | int); | 3338 | int); |
| @@ -3568,7 +3564,8 @@ extern char *emacs_root_dir (void); | |||
| 3568 | Used during startup to detect startup of dumped Emacs. */ | 3564 | Used during startup to detect startup of dumped Emacs. */ |
| 3569 | extern bool initialized; | 3565 | extern bool initialized; |
| 3570 | 3566 | ||
| 3571 | extern int immediate_quit; /* Nonzero means ^G can quit instantly. */ | 3567 | /* True means ^G can quit instantly. */ |
| 3568 | extern bool immediate_quit; | ||
| 3572 | 3569 | ||
| 3573 | extern void *xmalloc (size_t); | 3570 | extern void *xmalloc (size_t); |
| 3574 | extern void *xzalloc (size_t); | 3571 | extern void *xzalloc (size_t); |