aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h29
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? */
354enum pvec_type 350enum 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)
3032extern int openp (Lisp_Object, Lisp_Object, Lisp_Object, 3028extern int openp (Lisp_Object, Lisp_Object, Lisp_Object,
3033 Lisp_Object *, Lisp_Object); 3029 Lisp_Object *, Lisp_Object);
3034Lisp_Object string_to_number (char const *, int, int); 3030extern Lisp_Object string_to_number (char const *, int, bool);
3035extern void map_obarray (Lisp_Object, void (*) (Lisp_Object, Lisp_Object), 3031extern void map_obarray (Lisp_Object, void (*) (Lisp_Object, Lisp_Object),
3036 Lisp_Object); 3032 Lisp_Object);
3037extern void dir_warning (const char *, Lisp_Object); 3033extern void dir_warning (const char *, Lisp_Object);
@@ -3202,9 +3198,9 @@ extern ptrdiff_t fast_string_match_ignore_case (Lisp_Object, Lisp_Object);
3202extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, 3198extern 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);
3204extern ptrdiff_t scan_buffer (int, ptrdiff_t, ptrdiff_t, ptrdiff_t, 3200extern ptrdiff_t scan_buffer (int, ptrdiff_t, ptrdiff_t, ptrdiff_t,
3205 ptrdiff_t *, int); 3201 ptrdiff_t *, bool);
3206extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, 3202extern EMACS_INT scan_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t,
3207 EMACS_INT, int); 3203 EMACS_INT, bool);
3208extern ptrdiff_t find_next_newline (ptrdiff_t, int); 3204extern ptrdiff_t find_next_newline (ptrdiff_t, int);
3209extern ptrdiff_t find_next_newline_no_quit (ptrdiff_t, ptrdiff_t); 3205extern ptrdiff_t find_next_newline_no_quit (ptrdiff_t, ptrdiff_t);
3210extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t); 3206extern ptrdiff_t find_before_next_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t);
@@ -3247,7 +3243,7 @@ extern Lisp_Object Qdisabled, QCfilter;
3247extern Lisp_Object Qup, Qdown, Qbottom; 3243extern Lisp_Object Qup, Qdown, Qbottom;
3248extern Lisp_Object Qtop; 3244extern Lisp_Object Qtop;
3249extern Lisp_Object last_undo_boundary; 3245extern Lisp_Object last_undo_boundary;
3250extern int input_pending; 3246extern bool input_pending;
3251extern Lisp_Object menu_bar_items (Lisp_Object); 3247extern Lisp_Object menu_bar_items (Lisp_Object);
3252extern Lisp_Object tool_bar_items (Lisp_Object, int *); 3248extern Lisp_Object tool_bar_items (Lisp_Object, int *);
3253extern void discard_mouse_events (void); 3249extern void discard_mouse_events (void);
@@ -3255,9 +3251,9 @@ extern void discard_mouse_events (void);
3255void handle_input_available_signal (int); 3251void handle_input_available_signal (int);
3256#endif 3252#endif
3257extern Lisp_Object pending_funcalls; 3253extern Lisp_Object pending_funcalls;
3258extern int detect_input_pending (void); 3254extern bool detect_input_pending (void);
3259extern int detect_input_pending_ignore_squeezables (void); 3255extern bool detect_input_pending_ignore_squeezables (void);
3260extern int detect_input_pending_run_timers (int); 3256extern bool detect_input_pending_run_timers (bool);
3261extern void safe_run_hooks (Lisp_Object); 3257extern void safe_run_hooks (Lisp_Object);
3262extern void cmd_error_internal (Lisp_Object, const char *); 3258extern void cmd_error_internal (Lisp_Object, const char *);
3263extern Lisp_Object command_loop_1 (void); 3259extern Lisp_Object command_loop_1 (void);
@@ -3336,7 +3332,7 @@ extern bool running_asynch_code;
3336extern Lisp_Object QCtype, Qlocal; 3332extern Lisp_Object QCtype, Qlocal;
3337extern Lisp_Object Qprocessp; 3333extern Lisp_Object Qprocessp;
3338extern void kill_buffer_processes (Lisp_Object); 3334extern void kill_buffer_processes (Lisp_Object);
3339extern int wait_reading_process_output (intmax_t, int, int, int, 3335extern 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. */
3569extern bool initialized; 3565extern bool initialized;
3570 3566
3571extern int immediate_quit; /* Nonzero means ^G can quit instantly. */ 3567/* True means ^G can quit instantly. */
3568extern bool immediate_quit;
3572 3569
3573extern void *xmalloc (size_t); 3570extern void *xmalloc (size_t);
3574extern void *xzalloc (size_t); 3571extern void *xzalloc (size_t);