diff options
| author | Paul Eggert | 2011-05-30 22:45:07 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-30 22:45:07 -0700 |
| commit | 86f3178890f56cb408949e125d5d99e3124dd48f (patch) | |
| tree | a2c5f15751bbfe701d2f0da6fab0e0ea1fefc8ce /src | |
| parent | 12c69b84d1ab93d5b0bd189394952da12340f86d (diff) | |
| parent | b9627cfb1d5b5b0914525a19cd9edb06f91a1665 (diff) | |
| download | emacs-86f3178890f56cb408949e125d5d99e3124dd48f.tar.gz emacs-86f3178890f56cb408949e125d5d99e3124dd48f.zip | |
Merge from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 48 | ||||
| -rw-r--r-- | src/alloc.c | 26 | ||||
| -rw-r--r-- | src/bidi.c | 34 | ||||
| -rw-r--r-- | src/callproc.c | 21 | ||||
| -rw-r--r-- | src/ccl.c | 12 | ||||
| -rw-r--r-- | src/charset.c | 2 | ||||
| -rw-r--r-- | src/coding.c | 18 | ||||
| -rw-r--r-- | src/data.c | 269 | ||||
| -rw-r--r-- | src/dispnew.c | 14 | ||||
| -rw-r--r-- | src/emacs.c | 7 | ||||
| -rw-r--r-- | src/fns.c | 2 | ||||
| -rw-r--r-- | src/fontset.c | 2 | ||||
| -rw-r--r-- | src/gmalloc.c | 9 | ||||
| -rw-r--r-- | src/image.c | 2 | ||||
| -rw-r--r-- | src/intervals.c | 14 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 83 | ||||
| -rw-r--r-- | src/process.c | 2 | ||||
| -rw-r--r-- | src/syntax.c | 2 | ||||
| -rw-r--r-- | src/textprop.c | 6 | ||||
| -rw-r--r-- | src/w32term.c | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 48 | ||||
| -rw-r--r-- | src/xfaces.c | 38 | ||||
| -rw-r--r-- | src/xterm.c | 8 |
25 files changed, 297 insertions, 382 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fda9e440422..90344adbe27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2011-05-30 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Malloc failure behavior now depends on size of allocation. | 3 | Malloc failure behavior now depends on size of allocation. |
| 4 | * alloc.c (buffer_memory_full, memory_full): New arg NBYTES. | 4 | * alloc.c (buffer_memory_full, memory_full): New arg NBYTES. |
| @@ -6,6 +6,40 @@ | |||
| 6 | * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c: | 6 | * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c: |
| 7 | All callers changed. (Bug#8762) | 7 | All callers changed. (Bug#8762) |
| 8 | 8 | ||
| 9 | Use 'inline', not 'INLINE'. | ||
| 10 | <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00914.html> | ||
| 11 | * alloc.c, fontset.c (INLINE): Remove. | ||
| 12 | * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: | ||
| 13 | * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: | ||
| 14 | * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. | ||
| 15 | * gmalloc.c (register_heapinfo): Use inline unconditionally. | ||
| 16 | * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__. | ||
| 17 | |||
| 18 | 2011-05-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 19 | |||
| 20 | Make it possible to run ./temacs. | ||
| 21 | |||
| 22 | * callproc.c (set_initial_environment): Remove CANNOT_DUMP code, | ||
| 23 | syms_of_callproc does the same thing. Remove test for | ||
| 24 | "initialized", do it in the caller. | ||
| 25 | * emacs.c (main): Avoid calling set_initial_environment when dumping. | ||
| 26 | |||
| 27 | 2011-05-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 28 | |||
| 29 | * minibuf.c (Finternal_complete_buffer): Return `category' metadata. | ||
| 30 | (read_minibuf): Use get_minibuffer. | ||
| 31 | (syms_of_minibuf): Use DEFSYM. | ||
| 32 | (Qmetadata): New var. | ||
| 33 | * data.c (Qbuffer): Don't make it static. | ||
| 34 | (syms_of_data): Use DEFSYM. | ||
| 35 | |||
| 36 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 37 | |||
| 38 | * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) | ||
| 39 | (CCL_CODE_MIN): New macro. | ||
| 40 | |||
| 41 | 2011-05-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 42 | |||
| 9 | * gnutls.c: Use Emacs's memory allocators. | 43 | * gnutls.c: Use Emacs's memory allocators. |
| 10 | Without this change, the gnutls library would invoke malloc etc. | 44 | Without this change, the gnutls library would invoke malloc etc. |
| 11 | directly, which causes problems on non-SYNC_INPUT hosts, and which | 45 | directly, which causes problems on non-SYNC_INPUT hosts, and which |
| @@ -177,8 +211,8 @@ | |||
| 177 | (symbol_to_x_atom): Remove gratuitous arg. | 211 | (symbol_to_x_atom): Remove gratuitous arg. |
| 178 | (x_handle_selection_request, lisp_data_to_selection_data) | 212 | (x_handle_selection_request, lisp_data_to_selection_data) |
| 179 | (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed. | 213 | (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed. |
| 180 | (x_own_selection, x_get_local_selection, x_convert_selection): New | 214 | (x_own_selection, x_get_local_selection, x_convert_selection): |
| 181 | arg, specifying work frame. Use terminal-local Vselection_alist. | 215 | New arg, specifying work frame. Use terminal-local Vselection_alist. |
| 182 | (some_frame_on_display): Delete unused function. | 216 | (some_frame_on_display): Delete unused function. |
| 183 | (Fx_own_selection_internal, Fx_get_selection_internal) | 217 | (Fx_own_selection_internal, Fx_get_selection_internal) |
| 184 | (Fx_disown_selection_internal, Fx_selection_owner_p) | 218 | (Fx_disown_selection_internal, Fx_selection_owner_p) |
| @@ -199,8 +233,8 @@ | |||
| 199 | (x_selection_request_lisp_error): Free the above. | 233 | (x_selection_request_lisp_error): Free the above. |
| 200 | (x_get_local_selection): Remove unnecessary code. | 234 | (x_get_local_selection): Remove unnecessary code. |
| 201 | (x_reply_selection_request): Args changed; handle arbitrary array | 235 | (x_reply_selection_request): Args changed; handle arbitrary array |
| 202 | of converted selections stored in converted_selections. Separate | 236 | of converted selections stored in converted_selections. |
| 203 | the XChangeProperty and SelectionNotify steps. | 237 | Separate the XChangeProperty and SelectionNotify steps. |
| 204 | (x_handle_selection_request): Rewrite to handle MULTIPLE target. | 238 | (x_handle_selection_request): Rewrite to handle MULTIPLE target. |
| 205 | (x_convert_selection): New function. | 239 | (x_convert_selection): New function. |
| 206 | (x_handle_selection_event): Simplify. | 240 | (x_handle_selection_event): Simplify. |
| @@ -364,8 +398,8 @@ | |||
| 364 | 398 | ||
| 365 | Be more systematic about user-interface timestamps. | 399 | Be more systematic about user-interface timestamps. |
| 366 | Before, the code sometimes used 'Time', sometimes 'unsigned long', | 400 | Before, the code sometimes used 'Time', sometimes 'unsigned long', |
| 367 | and sometimes 'EMACS_UINT', to represent these timestamps. This | 401 | and sometimes 'EMACS_UINT', to represent these timestamps. |
| 368 | change causes it to use 'Time' uniformly, as that's what X uses. | 402 | This change causes it to use 'Time' uniformly, as that's what X uses. |
| 369 | This makes the code easier to follow, and makes it easier to catch | 403 | This makes the code easier to follow, and makes it easier to catch |
| 370 | integer overflow bugs such as Bug#8664. | 404 | integer overflow bugs such as Bug#8664. |
| 371 | * frame.c (Fmouse_position, Fmouse_pixel_position): | 405 | * frame.c (Fmouse_position, Fmouse_pixel_position): |
diff --git a/src/alloc.c b/src/alloc.c index be045be2ab4..6b901d5465e 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -22,10 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include <limits.h> /* For CHAR_BIT. */ | 22 | #include <limits.h> /* For CHAR_BIT. */ |
| 23 | #include <setjmp.h> | 23 | #include <setjmp.h> |
| 24 | 24 | ||
| 25 | #ifdef ALLOC_DEBUG | ||
| 26 | #undef INLINE | ||
| 27 | #endif | ||
| 28 | |||
| 29 | #include <signal.h> | 25 | #include <signal.h> |
| 30 | 26 | ||
| 31 | #ifdef HAVE_GTK_AND_PTHREAD | 27 | #ifdef HAVE_GTK_AND_PTHREAD |
| @@ -408,7 +404,7 @@ static void mem_rotate_left (struct mem_node *); | |||
| 408 | static void mem_rotate_right (struct mem_node *); | 404 | static void mem_rotate_right (struct mem_node *); |
| 409 | static void mem_delete (struct mem_node *); | 405 | static void mem_delete (struct mem_node *); |
| 410 | static void mem_delete_fixup (struct mem_node *); | 406 | static void mem_delete_fixup (struct mem_node *); |
| 411 | static INLINE struct mem_node *mem_find (void *); | 407 | static inline struct mem_node *mem_find (void *); |
| 412 | 408 | ||
| 413 | 409 | ||
| 414 | #if GC_MARK_STACK == GC_MARK_STACK_CHECK_GCPROS | 410 | #if GC_MARK_STACK == GC_MARK_STACK_CHECK_GCPROS |
| @@ -3398,7 +3394,7 @@ mem_init (void) | |||
| 3398 | /* Value is a pointer to the mem_node containing START. Value is | 3394 | /* Value is a pointer to the mem_node containing START. Value is |
| 3399 | MEM_NIL if there is no node in the tree containing START. */ | 3395 | MEM_NIL if there is no node in the tree containing START. */ |
| 3400 | 3396 | ||
| 3401 | static INLINE struct mem_node * | 3397 | static inline struct mem_node * |
| 3402 | mem_find (void *start) | 3398 | mem_find (void *start) |
| 3403 | { | 3399 | { |
| 3404 | struct mem_node *p; | 3400 | struct mem_node *p; |
| @@ -3774,7 +3770,7 @@ mem_delete_fixup (struct mem_node *x) | |||
| 3774 | /* Value is non-zero if P is a pointer to a live Lisp string on | 3770 | /* Value is non-zero if P is a pointer to a live Lisp string on |
| 3775 | the heap. M is a pointer to the mem_block for P. */ | 3771 | the heap. M is a pointer to the mem_block for P. */ |
| 3776 | 3772 | ||
| 3777 | static INLINE int | 3773 | static inline int |
| 3778 | live_string_p (struct mem_node *m, void *p) | 3774 | live_string_p (struct mem_node *m, void *p) |
| 3779 | { | 3775 | { |
| 3780 | if (m->type == MEM_TYPE_STRING) | 3776 | if (m->type == MEM_TYPE_STRING) |
| @@ -3797,7 +3793,7 @@ live_string_p (struct mem_node *m, void *p) | |||
| 3797 | /* Value is non-zero if P is a pointer to a live Lisp cons on | 3793 | /* Value is non-zero if P is a pointer to a live Lisp cons on |
| 3798 | the heap. M is a pointer to the mem_block for P. */ | 3794 | the heap. M is a pointer to the mem_block for P. */ |
| 3799 | 3795 | ||
| 3800 | static INLINE int | 3796 | static inline int |
| 3801 | live_cons_p (struct mem_node *m, void *p) | 3797 | live_cons_p (struct mem_node *m, void *p) |
| 3802 | { | 3798 | { |
| 3803 | if (m->type == MEM_TYPE_CONS) | 3799 | if (m->type == MEM_TYPE_CONS) |
| @@ -3823,7 +3819,7 @@ live_cons_p (struct mem_node *m, void *p) | |||
| 3823 | /* Value is non-zero if P is a pointer to a live Lisp symbol on | 3819 | /* Value is non-zero if P is a pointer to a live Lisp symbol on |
| 3824 | the heap. M is a pointer to the mem_block for P. */ | 3820 | the heap. M is a pointer to the mem_block for P. */ |
| 3825 | 3821 | ||
| 3826 | static INLINE int | 3822 | static inline int |
| 3827 | live_symbol_p (struct mem_node *m, void *p) | 3823 | live_symbol_p (struct mem_node *m, void *p) |
| 3828 | { | 3824 | { |
| 3829 | if (m->type == MEM_TYPE_SYMBOL) | 3825 | if (m->type == MEM_TYPE_SYMBOL) |
| @@ -3849,7 +3845,7 @@ live_symbol_p (struct mem_node *m, void *p) | |||
| 3849 | /* Value is non-zero if P is a pointer to a live Lisp float on | 3845 | /* Value is non-zero if P is a pointer to a live Lisp float on |
| 3850 | the heap. M is a pointer to the mem_block for P. */ | 3846 | the heap. M is a pointer to the mem_block for P. */ |
| 3851 | 3847 | ||
| 3852 | static INLINE int | 3848 | static inline int |
| 3853 | live_float_p (struct mem_node *m, void *p) | 3849 | live_float_p (struct mem_node *m, void *p) |
| 3854 | { | 3850 | { |
| 3855 | if (m->type == MEM_TYPE_FLOAT) | 3851 | if (m->type == MEM_TYPE_FLOAT) |
| @@ -3873,7 +3869,7 @@ live_float_p (struct mem_node *m, void *p) | |||
| 3873 | /* Value is non-zero if P is a pointer to a live Lisp Misc on | 3869 | /* Value is non-zero if P is a pointer to a live Lisp Misc on |
| 3874 | the heap. M is a pointer to the mem_block for P. */ | 3870 | the heap. M is a pointer to the mem_block for P. */ |
| 3875 | 3871 | ||
| 3876 | static INLINE int | 3872 | static inline int |
| 3877 | live_misc_p (struct mem_node *m, void *p) | 3873 | live_misc_p (struct mem_node *m, void *p) |
| 3878 | { | 3874 | { |
| 3879 | if (m->type == MEM_TYPE_MISC) | 3875 | if (m->type == MEM_TYPE_MISC) |
| @@ -3899,7 +3895,7 @@ live_misc_p (struct mem_node *m, void *p) | |||
| 3899 | /* Value is non-zero if P is a pointer to a live vector-like object. | 3895 | /* Value is non-zero if P is a pointer to a live vector-like object. |
| 3900 | M is a pointer to the mem_block for P. */ | 3896 | M is a pointer to the mem_block for P. */ |
| 3901 | 3897 | ||
| 3902 | static INLINE int | 3898 | static inline int |
| 3903 | live_vector_p (struct mem_node *m, void *p) | 3899 | live_vector_p (struct mem_node *m, void *p) |
| 3904 | { | 3900 | { |
| 3905 | return (p == m->start && m->type == MEM_TYPE_VECTORLIKE); | 3901 | return (p == m->start && m->type == MEM_TYPE_VECTORLIKE); |
| @@ -3909,7 +3905,7 @@ live_vector_p (struct mem_node *m, void *p) | |||
| 3909 | /* Value is non-zero if P is a pointer to a live buffer. M is a | 3905 | /* Value is non-zero if P is a pointer to a live buffer. M is a |
| 3910 | pointer to the mem_block for P. */ | 3906 | pointer to the mem_block for P. */ |
| 3911 | 3907 | ||
| 3912 | static INLINE int | 3908 | static inline int |
| 3913 | live_buffer_p (struct mem_node *m, void *p) | 3909 | live_buffer_p (struct mem_node *m, void *p) |
| 3914 | { | 3910 | { |
| 3915 | /* P must point to the start of the block, and the buffer | 3911 | /* P must point to the start of the block, and the buffer |
| @@ -3975,7 +3971,7 @@ DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", | |||
| 3975 | 3971 | ||
| 3976 | /* Mark OBJ if we can prove it's a Lisp_Object. */ | 3972 | /* Mark OBJ if we can prove it's a Lisp_Object. */ |
| 3977 | 3973 | ||
| 3978 | static INLINE void | 3974 | static inline void |
| 3979 | mark_maybe_object (Lisp_Object obj) | 3975 | mark_maybe_object (Lisp_Object obj) |
| 3980 | { | 3976 | { |
| 3981 | void *po; | 3977 | void *po; |
| @@ -4044,7 +4040,7 @@ mark_maybe_object (Lisp_Object obj) | |||
| 4044 | /* If P points to Lisp data, mark that as live if it isn't already | 4040 | /* If P points to Lisp data, mark that as live if it isn't already |
| 4045 | marked. */ | 4041 | marked. */ |
| 4046 | 4042 | ||
| 4047 | static INLINE void | 4043 | static inline void |
| 4048 | mark_maybe_pointer (void *p) | 4044 | mark_maybe_pointer (void *p) |
| 4049 | { | 4045 | { |
| 4050 | struct mem_node *m; | 4046 | struct mem_node *m; |
diff --git a/src/bidi.c b/src/bidi.c index 88c45e24a14..b05fd21e5b6 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -137,7 +137,7 @@ bidi_initialize (void) | |||
| 137 | 137 | ||
| 138 | /* Return the bidi type of a character CH, subject to the current | 138 | /* Return the bidi type of a character CH, subject to the current |
| 139 | directional OVERRIDE. */ | 139 | directional OVERRIDE. */ |
| 140 | static INLINE bidi_type_t | 140 | static inline bidi_type_t |
| 141 | bidi_get_type (int ch, bidi_dir_t override) | 141 | bidi_get_type (int ch, bidi_dir_t override) |
| 142 | { | 142 | { |
| 143 | bidi_type_t default_type; | 143 | bidi_type_t default_type; |
| @@ -188,7 +188,7 @@ bidi_check_type (bidi_type_t type) | |||
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | /* Given a bidi TYPE of a character, return its category. */ | 190 | /* Given a bidi TYPE of a character, return its category. */ |
| 191 | static INLINE bidi_category_t | 191 | static inline bidi_category_t |
| 192 | bidi_get_category (bidi_type_t type) | 192 | bidi_get_category (bidi_type_t type) |
| 193 | { | 193 | { |
| 194 | switch (type) | 194 | switch (type) |
| @@ -252,7 +252,7 @@ bidi_mirror_char (int c) | |||
| 252 | 252 | ||
| 253 | /* Copy the bidi iterator from FROM to TO. To save cycles, this only | 253 | /* Copy the bidi iterator from FROM to TO. To save cycles, this only |
| 254 | copies the part of the level stack that is actually in use. */ | 254 | copies the part of the level stack that is actually in use. */ |
| 255 | static INLINE void | 255 | static inline void |
| 256 | bidi_copy_it (struct bidi_it *to, struct bidi_it *from) | 256 | bidi_copy_it (struct bidi_it *to, struct bidi_it *from) |
| 257 | { | 257 | { |
| 258 | int i; | 258 | int i; |
| @@ -275,14 +275,14 @@ static size_t elsz = sizeof (struct bidi_it); | |||
| 275 | static int bidi_cache_idx; /* next unused cache slot */ | 275 | static int bidi_cache_idx; /* next unused cache slot */ |
| 276 | static int bidi_cache_last_idx; /* slot of last cache hit */ | 276 | static int bidi_cache_last_idx; /* slot of last cache hit */ |
| 277 | 277 | ||
| 278 | static INLINE void | 278 | static inline void |
| 279 | bidi_cache_reset (void) | 279 | bidi_cache_reset (void) |
| 280 | { | 280 | { |
| 281 | bidi_cache_idx = 0; | 281 | bidi_cache_idx = 0; |
| 282 | bidi_cache_last_idx = -1; | 282 | bidi_cache_last_idx = -1; |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | static INLINE void | 285 | static inline void |
| 286 | bidi_cache_shrink (void) | 286 | bidi_cache_shrink (void) |
| 287 | { | 287 | { |
| 288 | if (bidi_cache_size > BIDI_CACHE_CHUNK) | 288 | if (bidi_cache_size > BIDI_CACHE_CHUNK) |
| @@ -294,7 +294,7 @@ bidi_cache_shrink (void) | |||
| 294 | bidi_cache_reset (); | 294 | bidi_cache_reset (); |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | static INLINE void | 297 | static inline void |
| 298 | bidi_cache_fetch_state (int idx, struct bidi_it *bidi_it) | 298 | bidi_cache_fetch_state (int idx, struct bidi_it *bidi_it) |
| 299 | { | 299 | { |
| 300 | int current_scan_dir = bidi_it->scan_dir; | 300 | int current_scan_dir = bidi_it->scan_dir; |
| @@ -311,7 +311,7 @@ bidi_cache_fetch_state (int idx, struct bidi_it *bidi_it) | |||
| 311 | level less or equal to LEVEL. if LEVEL is -1, disregard the | 311 | level less or equal to LEVEL. if LEVEL is -1, disregard the |
| 312 | resolved levels in cached states. DIR, if non-zero, means search | 312 | resolved levels in cached states. DIR, if non-zero, means search |
| 313 | in that direction from the last cache hit. */ | 313 | in that direction from the last cache hit. */ |
| 314 | static INLINE int | 314 | static inline int |
| 315 | bidi_cache_search (EMACS_INT charpos, int level, int dir) | 315 | bidi_cache_search (EMACS_INT charpos, int level, int dir) |
| 316 | { | 316 | { |
| 317 | int i, i_start; | 317 | int i, i_start; |
| @@ -402,7 +402,7 @@ bidi_cache_find_level_change (int level, int dir, int before) | |||
| 402 | return -1; | 402 | return -1; |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | static INLINE void | 405 | static inline void |
| 406 | bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved) | 406 | bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved) |
| 407 | { | 407 | { |
| 408 | int idx; | 408 | int idx; |
| @@ -460,7 +460,7 @@ bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved) | |||
| 460 | bidi_cache_idx = idx + 1; | 460 | bidi_cache_idx = idx + 1; |
| 461 | } | 461 | } |
| 462 | 462 | ||
| 463 | static INLINE bidi_type_t | 463 | static inline bidi_type_t |
| 464 | bidi_cache_find (EMACS_INT charpos, int level, struct bidi_it *bidi_it) | 464 | bidi_cache_find (EMACS_INT charpos, int level, struct bidi_it *bidi_it) |
| 465 | { | 465 | { |
| 466 | int i = bidi_cache_search (charpos, level, bidi_it->scan_dir); | 466 | int i = bidi_cache_search (charpos, level, bidi_it->scan_dir); |
| @@ -480,7 +480,7 @@ bidi_cache_find (EMACS_INT charpos, int level, struct bidi_it *bidi_it) | |||
| 480 | return UNKNOWN_BT; | 480 | return UNKNOWN_BT; |
| 481 | } | 481 | } |
| 482 | 482 | ||
| 483 | static INLINE int | 483 | static inline int |
| 484 | bidi_peek_at_next_level (struct bidi_it *bidi_it) | 484 | bidi_peek_at_next_level (struct bidi_it *bidi_it) |
| 485 | { | 485 | { |
| 486 | if (bidi_cache_idx == 0 || bidi_cache_last_idx == -1) | 486 | if (bidi_cache_idx == 0 || bidi_cache_last_idx == -1) |
| @@ -519,7 +519,7 @@ bidi_at_paragraph_end (EMACS_INT charpos, EMACS_INT bytepos) | |||
| 519 | embedding levels on either side of the run boundary. Also, update | 519 | embedding levels on either side of the run boundary. Also, update |
| 520 | the saved info about previously seen characters, since that info is | 520 | the saved info about previously seen characters, since that info is |
| 521 | generally valid for a single level run. */ | 521 | generally valid for a single level run. */ |
| 522 | static INLINE void | 522 | static inline void |
| 523 | bidi_set_sor_type (struct bidi_it *bidi_it, int level_before, int level_after) | 523 | bidi_set_sor_type (struct bidi_it *bidi_it, int level_before, int level_after) |
| 524 | { | 524 | { |
| 525 | int higher_level = level_before > level_after ? level_before : level_after; | 525 | int higher_level = level_before > level_after ? level_before : level_after; |
| @@ -729,7 +729,7 @@ bidi_paragraph_init (bidi_dir_t dir, struct bidi_it *bidi_it, int no_default_p) | |||
| 729 | 729 | ||
| 730 | /* Do whatever UAX#9 clause X8 says should be done at paragraph's | 730 | /* Do whatever UAX#9 clause X8 says should be done at paragraph's |
| 731 | end. */ | 731 | end. */ |
| 732 | static INLINE void | 732 | static inline void |
| 733 | bidi_set_paragraph_end (struct bidi_it *bidi_it) | 733 | bidi_set_paragraph_end (struct bidi_it *bidi_it) |
| 734 | { | 734 | { |
| 735 | bidi_it->invalid_levels = 0; | 735 | bidi_it->invalid_levels = 0; |
| @@ -772,7 +772,7 @@ bidi_init_it (EMACS_INT charpos, EMACS_INT bytepos, struct bidi_it *bidi_it) | |||
| 772 | 772 | ||
| 773 | /* Push the current embedding level and override status; reset the | 773 | /* Push the current embedding level and override status; reset the |
| 774 | current level to LEVEL and the current override status to OVERRIDE. */ | 774 | current level to LEVEL and the current override status to OVERRIDE. */ |
| 775 | static INLINE void | 775 | static inline void |
| 776 | bidi_push_embedding_level (struct bidi_it *bidi_it, | 776 | bidi_push_embedding_level (struct bidi_it *bidi_it, |
| 777 | int level, bidi_dir_t override) | 777 | int level, bidi_dir_t override) |
| 778 | { | 778 | { |
| @@ -785,7 +785,7 @@ bidi_push_embedding_level (struct bidi_it *bidi_it, | |||
| 785 | 785 | ||
| 786 | /* Pop the embedding level and directional override status from the | 786 | /* Pop the embedding level and directional override status from the |
| 787 | stack, and return the new level. */ | 787 | stack, and return the new level. */ |
| 788 | static INLINE int | 788 | static inline int |
| 789 | bidi_pop_embedding_level (struct bidi_it *bidi_it) | 789 | bidi_pop_embedding_level (struct bidi_it *bidi_it) |
| 790 | { | 790 | { |
| 791 | /* UAX#9 says to ignore invalid PDFs. */ | 791 | /* UAX#9 says to ignore invalid PDFs. */ |
| @@ -795,7 +795,7 @@ bidi_pop_embedding_level (struct bidi_it *bidi_it) | |||
| 795 | } | 795 | } |
| 796 | 796 | ||
| 797 | /* Record in SAVED_INFO the information about the current character. */ | 797 | /* Record in SAVED_INFO the information about the current character. */ |
| 798 | static INLINE void | 798 | static inline void |
| 799 | bidi_remember_char (struct bidi_saved_info *saved_info, | 799 | bidi_remember_char (struct bidi_saved_info *saved_info, |
| 800 | struct bidi_it *bidi_it) | 800 | struct bidi_it *bidi_it) |
| 801 | { | 801 | { |
| @@ -811,7 +811,7 @@ bidi_remember_char (struct bidi_saved_info *saved_info, | |||
| 811 | 811 | ||
| 812 | /* Resolve the type of a neutral character according to the type of | 812 | /* Resolve the type of a neutral character according to the type of |
| 813 | surrounding strong text and the current embedding level. */ | 813 | surrounding strong text and the current embedding level. */ |
| 814 | static INLINE bidi_type_t | 814 | static inline bidi_type_t |
| 815 | bidi_resolve_neutral_1 (bidi_type_t prev_type, bidi_type_t next_type, int lev) | 815 | bidi_resolve_neutral_1 (bidi_type_t prev_type, bidi_type_t next_type, int lev) |
| 816 | { | 816 | { |
| 817 | /* N1: European and Arabic numbers are treated as though they were R. */ | 817 | /* N1: European and Arabic numbers are treated as though they were R. */ |
| @@ -828,7 +828,7 @@ bidi_resolve_neutral_1 (bidi_type_t prev_type, bidi_type_t next_type, int lev) | |||
| 828 | return STRONG_R; | 828 | return STRONG_R; |
| 829 | } | 829 | } |
| 830 | 830 | ||
| 831 | static INLINE int | 831 | static inline int |
| 832 | bidi_explicit_dir_char (int c) | 832 | bidi_explicit_dir_char (int c) |
| 833 | { | 833 | { |
| 834 | /* FIXME: this should be replaced with a lookup table with suitable | 834 | /* FIXME: this should be replaced with a lookup table with suitable |
diff --git a/src/callproc.c b/src/callproc.c index 67d0b6aede3..7bb2ac05933 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1603,20 +1603,13 @@ init_callproc (void) | |||
| 1603 | void | 1603 | void |
| 1604 | set_initial_environment (void) | 1604 | set_initial_environment (void) |
| 1605 | { | 1605 | { |
| 1606 | register char **envp; | 1606 | char **envp; |
| 1607 | #ifdef CANNOT_DUMP | 1607 | for (envp = environ; *envp; envp++) |
| 1608 | Vprocess_environment = Qnil; | 1608 | Vprocess_environment = Fcons (build_string (*envp), |
| 1609 | #else | 1609 | Vprocess_environment); |
| 1610 | if (initialized) | 1610 | /* Ideally, the `copy' shouldn't be necessary, but it seems it's frequent |
| 1611 | #endif | 1611 | to use `delete' and friends on process-environment. */ |
| 1612 | { | 1612 | Vinitial_environment = Fcopy_sequence (Vprocess_environment); |
| 1613 | for (envp = environ; *envp; envp++) | ||
| 1614 | Vprocess_environment = Fcons (build_string (*envp), | ||
| 1615 | Vprocess_environment); | ||
| 1616 | /* Ideally, the `copy' shouldn't be necessary, but it seems it's frequent | ||
| 1617 | to use `delete' and friends on process-environment. */ | ||
| 1618 | Vinitial_environment = Fcopy_sequence (Vprocess_environment); | ||
| 1619 | } | ||
| 1620 | } | 1613 | } |
| 1621 | 1614 | ||
| 1622 | void | 1615 | void |
| @@ -79,9 +79,8 @@ static Lisp_Object Vccl_program_table; | |||
| 79 | #define CCL_HEADER_EOF 1 | 79 | #define CCL_HEADER_EOF 1 |
| 80 | #define CCL_HEADER_MAIN 2 | 80 | #define CCL_HEADER_MAIN 2 |
| 81 | 81 | ||
| 82 | /* CCL code is a sequence of 28-bit non-negative integers (i.e. the | 82 | /* CCL code is a sequence of 28-bit integers. Each contains a CCL |
| 83 | MSB is always 0), each contains CCL command and/or arguments in the | 83 | command and/or arguments in the following format: |
| 84 | following format: | ||
| 85 | 84 | ||
| 86 | |----------------- integer (28-bit) ------------------| | 85 | |----------------- integer (28-bit) ------------------| |
| 87 | |------- 17-bit ------|- 3-bit --|- 3-bit --|- 5-bit -| | 86 | |------- 17-bit ------|- 3-bit --|- 3-bit --|- 5-bit -| |
| @@ -94,12 +93,13 @@ static Lisp_Object Vccl_program_table; | |||
| 94 | |------------- constant or other args ----------------| | 93 | |------------- constant or other args ----------------| |
| 95 | cccccccccccccccccccccccccccc | 94 | cccccccccccccccccccccccccccc |
| 96 | 95 | ||
| 97 | where, `cc...c' is a non-negative integer indicating constant value | 96 | where `cc...c' is a 17-bit, 20-bit, or 28-bit integer indicating a |
| 98 | (the left most `c' is always 0) or an absolute jump address, `RRR' | 97 | constant value or a relative/absolute jump address, `RRR' |
| 99 | and `rrr' are CCL register number, `XXXXX' is one of the following | 98 | and `rrr' are CCL register number, `XXXXX' is one of the following |
| 100 | CCL commands. */ | 99 | CCL commands. */ |
| 101 | 100 | ||
| 102 | #define CCL_CODE_MAX ((1 << (28 - 1)) - 1) | 101 | #define CCL_CODE_MAX ((1 << (28 - 1)) - 1) |
| 102 | #define CCL_CODE_MIN (-1 - CCL_CODE_MAX) | ||
| 103 | 103 | ||
| 104 | /* CCL commands | 104 | /* CCL commands |
| 105 | 105 | ||
| @@ -756,7 +756,7 @@ while(0) | |||
| 756 | while (0) | 756 | while (0) |
| 757 | 757 | ||
| 758 | #define GET_CCL_CODE(code, ccl_prog, ic) \ | 758 | #define GET_CCL_CODE(code, ccl_prog, ic) \ |
| 759 | GET_CCL_RANGE (code, ccl_prog, ic, 0, CCL_CODE_MAX) | 759 | GET_CCL_RANGE (code, ccl_prog, ic, CCL_CODE_MIN, CCL_CODE_MAX) |
| 760 | 760 | ||
| 761 | #define GET_CCL_INT(var, ccl_prog, ic) \ | 761 | #define GET_CCL_INT(var, ccl_prog, ic) \ |
| 762 | GET_CCL_RANGE (var, ccl_prog, ic, INT_MIN, INT_MAX) | 762 | GET_CCL_RANGE (var, ccl_prog, ic, INT_MIN, INT_MAX) |
diff --git a/src/charset.c b/src/charset.c index 55fd57031ac..b1b4993d277 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -418,7 +418,7 @@ load_charset_map (struct charset *charset, struct charset_map_entries *entries, | |||
| 418 | /* Read a hexadecimal number (preceded by "0x") from the file FP while | 418 | /* Read a hexadecimal number (preceded by "0x") from the file FP while |
| 419 | paying attention to comment character '#'. */ | 419 | paying attention to comment character '#'. */ |
| 420 | 420 | ||
| 421 | static INLINE unsigned | 421 | static inline unsigned |
| 422 | read_hex (FILE *fp, int *eof) | 422 | read_hex (FILE *fp, int *eof) |
| 423 | { | 423 | { |
| 424 | int c; | 424 | int c; |
diff --git a/src/coding.c b/src/coding.c index 945f542a2d6..6ccaf354c74 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -864,21 +864,21 @@ static void decode_eol (struct coding_system *); | |||
| 864 | static Lisp_Object get_translation_table (Lisp_Object, int, int *); | 864 | static Lisp_Object get_translation_table (Lisp_Object, int, int *); |
| 865 | static Lisp_Object get_translation (Lisp_Object, int *, int *); | 865 | static Lisp_Object get_translation (Lisp_Object, int *, int *); |
| 866 | static int produce_chars (struct coding_system *, Lisp_Object, int); | 866 | static int produce_chars (struct coding_system *, Lisp_Object, int); |
| 867 | static INLINE void produce_charset (struct coding_system *, int *, | 867 | static inline void produce_charset (struct coding_system *, int *, |
| 868 | EMACS_INT); | 868 | EMACS_INT); |
| 869 | static void produce_annotation (struct coding_system *, EMACS_INT); | 869 | static void produce_annotation (struct coding_system *, EMACS_INT); |
| 870 | static int decode_coding (struct coding_system *); | 870 | static int decode_coding (struct coding_system *); |
| 871 | static INLINE int *handle_composition_annotation (EMACS_INT, EMACS_INT, | 871 | static inline int *handle_composition_annotation (EMACS_INT, EMACS_INT, |
| 872 | struct coding_system *, | 872 | struct coding_system *, |
| 873 | int *, EMACS_INT *); | 873 | int *, EMACS_INT *); |
| 874 | static INLINE int *handle_charset_annotation (EMACS_INT, EMACS_INT, | 874 | static inline int *handle_charset_annotation (EMACS_INT, EMACS_INT, |
| 875 | struct coding_system *, | 875 | struct coding_system *, |
| 876 | int *, EMACS_INT *); | 876 | int *, EMACS_INT *); |
| 877 | static void consume_chars (struct coding_system *, Lisp_Object, int); | 877 | static void consume_chars (struct coding_system *, Lisp_Object, int); |
| 878 | static int encode_coding (struct coding_system *); | 878 | static int encode_coding (struct coding_system *); |
| 879 | static Lisp_Object make_conversion_work_buffer (int); | 879 | static Lisp_Object make_conversion_work_buffer (int); |
| 880 | static Lisp_Object code_conversion_restore (Lisp_Object); | 880 | static Lisp_Object code_conversion_restore (Lisp_Object); |
| 881 | static INLINE int char_encodable_p (int, Lisp_Object); | 881 | static inline int char_encodable_p (int, Lisp_Object); |
| 882 | static Lisp_Object make_subsidiaries (Lisp_Object); | 882 | static Lisp_Object make_subsidiaries (Lisp_Object); |
| 883 | 883 | ||
| 884 | static void | 884 | static void |
| @@ -6829,7 +6829,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table, | |||
| 6829 | [ -LENGTH ANNOTATION_MASK NCHARS NBYTES METHOD [ COMPONENTS... ] ] | 6829 | [ -LENGTH ANNOTATION_MASK NCHARS NBYTES METHOD [ COMPONENTS... ] ] |
| 6830 | */ | 6830 | */ |
| 6831 | 6831 | ||
| 6832 | static INLINE void | 6832 | static inline void |
| 6833 | produce_composition (struct coding_system *coding, int *charbuf, EMACS_INT pos) | 6833 | produce_composition (struct coding_system *coding, int *charbuf, EMACS_INT pos) |
| 6834 | { | 6834 | { |
| 6835 | int len; | 6835 | int len; |
| @@ -6873,7 +6873,7 @@ produce_composition (struct coding_system *coding, int *charbuf, EMACS_INT pos) | |||
| 6873 | [ -LENGTH ANNOTATION_MASK NCHARS CHARSET-ID ] | 6873 | [ -LENGTH ANNOTATION_MASK NCHARS CHARSET-ID ] |
| 6874 | */ | 6874 | */ |
| 6875 | 6875 | ||
| 6876 | static INLINE void | 6876 | static inline void |
| 6877 | produce_charset (struct coding_system *coding, int *charbuf, EMACS_INT pos) | 6877 | produce_charset (struct coding_system *coding, int *charbuf, EMACS_INT pos) |
| 6878 | { | 6878 | { |
| 6879 | EMACS_INT from = pos - charbuf[2]; | 6879 | EMACS_INT from = pos - charbuf[2]; |
| @@ -7101,7 +7101,7 @@ decode_coding (struct coding_system *coding) | |||
| 7101 | position of a composition after POS (if any) or to LIMIT, and | 7101 | position of a composition after POS (if any) or to LIMIT, and |
| 7102 | return BUF. */ | 7102 | return BUF. */ |
| 7103 | 7103 | ||
| 7104 | static INLINE int * | 7104 | static inline int * |
| 7105 | handle_composition_annotation (EMACS_INT pos, EMACS_INT limit, | 7105 | handle_composition_annotation (EMACS_INT pos, EMACS_INT limit, |
| 7106 | struct coding_system *coding, int *buf, | 7106 | struct coding_system *coding, int *buf, |
| 7107 | EMACS_INT *stop) | 7107 | EMACS_INT *stop) |
| @@ -7184,7 +7184,7 @@ handle_composition_annotation (EMACS_INT pos, EMACS_INT limit, | |||
| 7184 | If the property value is nil, set *STOP to the position where the | 7184 | If the property value is nil, set *STOP to the position where the |
| 7185 | property value is non-nil (limiting by LIMIT), and return BUF. */ | 7185 | property value is non-nil (limiting by LIMIT), and return BUF. */ |
| 7186 | 7186 | ||
| 7187 | static INLINE int * | 7187 | static inline int * |
| 7188 | handle_charset_annotation (EMACS_INT pos, EMACS_INT limit, | 7188 | handle_charset_annotation (EMACS_INT pos, EMACS_INT limit, |
| 7189 | struct coding_system *coding, int *buf, | 7189 | struct coding_system *coding, int *buf, |
| 7190 | EMACS_INT *stop) | 7190 | EMACS_INT *stop) |
| @@ -8435,7 +8435,7 @@ highest priority. */) | |||
| 8435 | } | 8435 | } |
| 8436 | 8436 | ||
| 8437 | 8437 | ||
| 8438 | static INLINE int | 8438 | static inline int |
| 8439 | char_encodable_p (int c, Lisp_Object attrs) | 8439 | char_encodable_p (int c, Lisp_Object attrs) |
| 8440 | { | 8440 | { |
| 8441 | Lisp_Object tail; | 8441 | Lisp_Object tail; |
diff --git a/src/data.c b/src/data.c index a26627875ab..443d78376d9 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -32,14 +32,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | #include "keyboard.h" | 32 | #include "keyboard.h" |
| 33 | #include "frame.h" | 33 | #include "frame.h" |
| 34 | #include "syssignal.h" | 34 | #include "syssignal.h" |
| 35 | #include "termhooks.h" /* For FRAME_KBOARD reference in y-or-n-p. */ | 35 | #include "termhooks.h" /* For FRAME_KBOARD reference in y-or-n-p. */ |
| 36 | #include "font.h" | 36 | #include "font.h" |
| 37 | 37 | ||
| 38 | #ifdef STDC_HEADERS | 38 | #ifdef STDC_HEADERS |
| 39 | #include <float.h> | 39 | #include <float.h> |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | /* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ | 42 | /* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ |
| 43 | #ifndef IEEE_FLOATING_POINT | 43 | #ifndef IEEE_FLOATING_POINT |
| 44 | #if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \ | 44 | #if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \ |
| 45 | && FLT_MIN_EXP == -125 && FLT_MAX_EXP == 128) | 45 | && FLT_MIN_EXP == -125 && FLT_MAX_EXP == 128) |
| @@ -90,7 +90,7 @@ static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; | |||
| 90 | Lisp_Object Qwindow; | 90 | Lisp_Object Qwindow; |
| 91 | static Lisp_Object Qfloat, Qwindow_configuration; | 91 | static Lisp_Object Qfloat, Qwindow_configuration; |
| 92 | static Lisp_Object Qprocess; | 92 | static Lisp_Object Qprocess; |
| 93 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 93 | Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; |
| 94 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | 94 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; |
| 95 | static Lisp_Object Qsubrp, Qmany, Qunevalled; | 95 | static Lisp_Object Qsubrp, Qmany, Qunevalled; |
| 96 | Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; | 96 | Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; |
| @@ -2854,74 +2854,75 @@ syms_of_data (void) | |||
| 2854 | { | 2854 | { |
| 2855 | Lisp_Object error_tail, arith_tail; | 2855 | Lisp_Object error_tail, arith_tail; |
| 2856 | 2856 | ||
| 2857 | Qquote = intern_c_string ("quote"); | 2857 | DEFSYM (Qquote, "quote"); |
| 2858 | Qlambda = intern_c_string ("lambda"); | 2858 | DEFSYM (Qlambda, "lambda"); |
| 2859 | Qsubr = intern_c_string ("subr"); | 2859 | DEFSYM (Qsubr, "subr"); |
| 2860 | Qerror_conditions = intern_c_string ("error-conditions"); | 2860 | DEFSYM (Qerror_conditions, "error-conditions"); |
| 2861 | Qerror_message = intern_c_string ("error-message"); | 2861 | DEFSYM (Qerror_message, "error-message"); |
| 2862 | Qtop_level = intern_c_string ("top-level"); | 2862 | DEFSYM (Qtop_level, "top-level"); |
| 2863 | 2863 | ||
| 2864 | Qerror = intern_c_string ("error"); | 2864 | DEFSYM (Qerror, "error"); |
| 2865 | Qquit = intern_c_string ("quit"); | 2865 | DEFSYM (Qquit, "quit"); |
| 2866 | Qwrong_type_argument = intern_c_string ("wrong-type-argument"); | 2866 | DEFSYM (Qwrong_type_argument, "wrong-type-argument"); |
| 2867 | Qargs_out_of_range = intern_c_string ("args-out-of-range"); | 2867 | DEFSYM (Qargs_out_of_range, "args-out-of-range"); |
| 2868 | Qvoid_function = intern_c_string ("void-function"); | 2868 | DEFSYM (Qvoid_function, "void-function"); |
| 2869 | Qcyclic_function_indirection = intern_c_string ("cyclic-function-indirection"); | 2869 | DEFSYM (Qcyclic_function_indirection, "cyclic-function-indirection"); |
| 2870 | Qcyclic_variable_indirection = intern_c_string ("cyclic-variable-indirection"); | 2870 | DEFSYM (Qcyclic_variable_indirection, "cyclic-variable-indirection"); |
| 2871 | Qvoid_variable = intern_c_string ("void-variable"); | 2871 | DEFSYM (Qvoid_variable, "void-variable"); |
| 2872 | Qsetting_constant = intern_c_string ("setting-constant"); | 2872 | DEFSYM (Qsetting_constant, "setting-constant"); |
| 2873 | Qinvalid_read_syntax = intern_c_string ("invalid-read-syntax"); | 2873 | DEFSYM (Qinvalid_read_syntax, "invalid-read-syntax"); |
| 2874 | 2874 | ||
| 2875 | Qinvalid_function = intern_c_string ("invalid-function"); | 2875 | DEFSYM (Qinvalid_function, "invalid-function"); |
| 2876 | Qwrong_number_of_arguments = intern_c_string ("wrong-number-of-arguments"); | 2876 | DEFSYM (Qwrong_number_of_arguments, "wrong-number-of-arguments"); |
| 2877 | Qno_catch = intern_c_string ("no-catch"); | 2877 | DEFSYM (Qno_catch, "no-catch"); |
| 2878 | Qend_of_file = intern_c_string ("end-of-file"); | 2878 | DEFSYM (Qend_of_file, "end-of-file"); |
| 2879 | Qarith_error = intern_c_string ("arith-error"); | 2879 | DEFSYM (Qarith_error, "arith-error"); |
| 2880 | Qbeginning_of_buffer = intern_c_string ("beginning-of-buffer"); | 2880 | DEFSYM (Qbeginning_of_buffer, "beginning-of-buffer"); |
| 2881 | Qend_of_buffer = intern_c_string ("end-of-buffer"); | 2881 | DEFSYM (Qend_of_buffer, "end-of-buffer"); |
| 2882 | Qbuffer_read_only = intern_c_string ("buffer-read-only"); | 2882 | DEFSYM (Qbuffer_read_only, "buffer-read-only"); |
| 2883 | Qtext_read_only = intern_c_string ("text-read-only"); | 2883 | DEFSYM (Qtext_read_only, "text-read-only"); |
| 2884 | Qmark_inactive = intern_c_string ("mark-inactive"); | 2884 | DEFSYM (Qmark_inactive, "mark-inactive"); |
| 2885 | 2885 | ||
| 2886 | Qlistp = intern_c_string ("listp"); | 2886 | DEFSYM (Qlistp, "listp"); |
| 2887 | Qconsp = intern_c_string ("consp"); | 2887 | DEFSYM (Qconsp, "consp"); |
| 2888 | Qsymbolp = intern_c_string ("symbolp"); | 2888 | DEFSYM (Qsymbolp, "symbolp"); |
| 2889 | Qkeywordp = intern_c_string ("keywordp"); | 2889 | DEFSYM (Qkeywordp, "keywordp"); |
| 2890 | Qintegerp = intern_c_string ("integerp"); | 2890 | DEFSYM (Qintegerp, "integerp"); |
| 2891 | Qnatnump = intern_c_string ("natnump"); | 2891 | DEFSYM (Qnatnump, "natnump"); |
| 2892 | Qwholenump = intern_c_string ("wholenump"); | 2892 | DEFSYM (Qwholenump, "wholenump"); |
| 2893 | Qstringp = intern_c_string ("stringp"); | 2893 | DEFSYM (Qstringp, "stringp"); |
| 2894 | Qarrayp = intern_c_string ("arrayp"); | 2894 | DEFSYM (Qarrayp, "arrayp"); |
| 2895 | Qsequencep = intern_c_string ("sequencep"); | 2895 | DEFSYM (Qsequencep, "sequencep"); |
| 2896 | Qbufferp = intern_c_string ("bufferp"); | 2896 | DEFSYM (Qbufferp, "bufferp"); |
| 2897 | Qvectorp = intern_c_string ("vectorp"); | 2897 | DEFSYM (Qvectorp, "vectorp"); |
| 2898 | Qchar_or_string_p = intern_c_string ("char-or-string-p"); | 2898 | DEFSYM (Qchar_or_string_p, "char-or-string-p"); |
| 2899 | Qmarkerp = intern_c_string ("markerp"); | 2899 | DEFSYM (Qmarkerp, "markerp"); |
| 2900 | Qbuffer_or_string_p = intern_c_string ("buffer-or-string-p"); | 2900 | DEFSYM (Qbuffer_or_string_p, "buffer-or-string-p"); |
| 2901 | Qinteger_or_marker_p = intern_c_string ("integer-or-marker-p"); | 2901 | DEFSYM (Qinteger_or_marker_p, "integer-or-marker-p"); |
| 2902 | Qboundp = intern_c_string ("boundp"); | 2902 | DEFSYM (Qboundp, "boundp"); |
| 2903 | Qfboundp = intern_c_string ("fboundp"); | 2903 | DEFSYM (Qfboundp, "fboundp"); |
| 2904 | 2904 | ||
| 2905 | Qfloatp = intern_c_string ("floatp"); | 2905 | DEFSYM (Qfloatp, "floatp"); |
| 2906 | Qnumberp = intern_c_string ("numberp"); | 2906 | DEFSYM (Qnumberp, "numberp"); |
| 2907 | Qnumber_or_marker_p = intern_c_string ("number-or-marker-p"); | 2907 | DEFSYM (Qnumber_or_marker_p, "number-or-marker-p"); |
| 2908 | 2908 | ||
| 2909 | Qchar_table_p = intern_c_string ("char-table-p"); | 2909 | DEFSYM (Qchar_table_p, "char-table-p"); |
| 2910 | Qvector_or_char_table_p = intern_c_string ("vector-or-char-table-p"); | 2910 | DEFSYM (Qvector_or_char_table_p, "vector-or-char-table-p"); |
| 2911 | 2911 | ||
| 2912 | Qsubrp = intern_c_string ("subrp"); | 2912 | DEFSYM (Qsubrp, "subrp"); |
| 2913 | Qunevalled = intern_c_string ("unevalled"); | 2913 | DEFSYM (Qunevalled, "unevalled"); |
| 2914 | Qmany = intern_c_string ("many"); | 2914 | DEFSYM (Qmany, "many"); |
| 2915 | 2915 | ||
| 2916 | Qcdr = intern_c_string ("cdr"); | 2916 | DEFSYM (Qcdr, "cdr"); |
| 2917 | 2917 | ||
| 2918 | /* Handle automatic advice activation */ | 2918 | /* Handle automatic advice activation. */ |
| 2919 | Qad_advice_info = intern_c_string ("ad-advice-info"); | 2919 | DEFSYM (Qad_advice_info, "ad-advice-info"); |
| 2920 | Qad_activate_internal = intern_c_string ("ad-activate-internal"); | 2920 | DEFSYM (Qad_activate_internal, "ad-activate-internal"); |
| 2921 | 2921 | ||
| 2922 | error_tail = pure_cons (Qerror, Qnil); | 2922 | error_tail = pure_cons (Qerror, Qnil); |
| 2923 | 2923 | ||
| 2924 | /* ERROR is used as a signaler for random errors for which nothing else is right */ | 2924 | /* ERROR is used as a signaler for random errors for which nothing else is |
| 2925 | right. */ | ||
| 2925 | 2926 | ||
| 2926 | Fput (Qerror, Qerror_conditions, | 2927 | Fput (Qerror, Qerror_conditions, |
| 2927 | error_tail); | 2928 | error_tail); |
| @@ -2958,8 +2959,7 @@ syms_of_data (void) | |||
| 2958 | Fput (Qcyclic_variable_indirection, Qerror_message, | 2959 | Fput (Qcyclic_variable_indirection, Qerror_message, |
| 2959 | make_pure_c_string ("Symbol's chain of variable indirections contains a loop")); | 2960 | make_pure_c_string ("Symbol's chain of variable indirections contains a loop")); |
| 2960 | 2961 | ||
| 2961 | Qcircular_list = intern_c_string ("circular-list"); | 2962 | DEFSYM (Qcircular_list, "circular-list"); |
| 2962 | staticpro (&Qcircular_list); | ||
| 2963 | Fput (Qcircular_list, Qerror_conditions, | 2963 | Fput (Qcircular_list, Qerror_conditions, |
| 2964 | pure_cons (Qcircular_list, error_tail)); | 2964 | pure_cons (Qcircular_list, error_tail)); |
| 2965 | Fput (Qcircular_list, Qerror_message, | 2965 | Fput (Qcircular_list, Qerror_message, |
| @@ -3026,11 +3026,11 @@ syms_of_data (void) | |||
| 3026 | Fput (Qtext_read_only, Qerror_message, | 3026 | Fput (Qtext_read_only, Qerror_message, |
| 3027 | make_pure_c_string ("Text is read-only")); | 3027 | make_pure_c_string ("Text is read-only")); |
| 3028 | 3028 | ||
| 3029 | Qrange_error = intern_c_string ("range-error"); | 3029 | DEFSYM (Qrange_error, "range-error"); |
| 3030 | Qdomain_error = intern_c_string ("domain-error"); | 3030 | DEFSYM (Qdomain_error, "domain-error"); |
| 3031 | Qsingularity_error = intern_c_string ("singularity-error"); | 3031 | DEFSYM (Qsingularity_error, "singularity-error"); |
| 3032 | Qoverflow_error = intern_c_string ("overflow-error"); | 3032 | DEFSYM (Qoverflow_error, "overflow-error"); |
| 3033 | Qunderflow_error = intern_c_string ("underflow-error"); | 3033 | DEFSYM (Qunderflow_error, "underflow-error"); |
| 3034 | 3034 | ||
| 3035 | Fput (Qdomain_error, Qerror_conditions, | 3035 | Fput (Qdomain_error, Qerror_conditions, |
| 3036 | pure_cons (Qdomain_error, arith_tail)); | 3036 | pure_cons (Qdomain_error, arith_tail)); |
| @@ -3057,93 +3057,29 @@ syms_of_data (void) | |||
| 3057 | Fput (Qunderflow_error, Qerror_message, | 3057 | Fput (Qunderflow_error, Qerror_message, |
| 3058 | make_pure_c_string ("Arithmetic underflow error")); | 3058 | make_pure_c_string ("Arithmetic underflow error")); |
| 3059 | 3059 | ||
| 3060 | staticpro (&Qrange_error); | ||
| 3061 | staticpro (&Qdomain_error); | ||
| 3062 | staticpro (&Qsingularity_error); | ||
| 3063 | staticpro (&Qoverflow_error); | ||
| 3064 | staticpro (&Qunderflow_error); | ||
| 3065 | |||
| 3066 | staticpro (&Qnil); | 3060 | staticpro (&Qnil); |
| 3067 | staticpro (&Qt); | 3061 | staticpro (&Qt); |
| 3068 | staticpro (&Qquote); | ||
| 3069 | staticpro (&Qlambda); | ||
| 3070 | staticpro (&Qsubr); | ||
| 3071 | staticpro (&Qunbound); | 3062 | staticpro (&Qunbound); |
| 3072 | staticpro (&Qerror_conditions); | ||
| 3073 | staticpro (&Qerror_message); | ||
| 3074 | staticpro (&Qtop_level); | ||
| 3075 | |||
| 3076 | staticpro (&Qerror); | ||
| 3077 | staticpro (&Qquit); | ||
| 3078 | staticpro (&Qwrong_type_argument); | ||
| 3079 | staticpro (&Qargs_out_of_range); | ||
| 3080 | staticpro (&Qvoid_function); | ||
| 3081 | staticpro (&Qcyclic_function_indirection); | ||
| 3082 | staticpro (&Qcyclic_variable_indirection); | ||
| 3083 | staticpro (&Qvoid_variable); | ||
| 3084 | staticpro (&Qsetting_constant); | ||
| 3085 | staticpro (&Qinvalid_read_syntax); | ||
| 3086 | staticpro (&Qwrong_number_of_arguments); | ||
| 3087 | staticpro (&Qinvalid_function); | ||
| 3088 | staticpro (&Qno_catch); | ||
| 3089 | staticpro (&Qend_of_file); | ||
| 3090 | staticpro (&Qarith_error); | ||
| 3091 | staticpro (&Qbeginning_of_buffer); | ||
| 3092 | staticpro (&Qend_of_buffer); | ||
| 3093 | staticpro (&Qbuffer_read_only); | ||
| 3094 | staticpro (&Qtext_read_only); | ||
| 3095 | staticpro (&Qmark_inactive); | ||
| 3096 | |||
| 3097 | staticpro (&Qlistp); | ||
| 3098 | staticpro (&Qconsp); | ||
| 3099 | staticpro (&Qsymbolp); | ||
| 3100 | staticpro (&Qkeywordp); | ||
| 3101 | staticpro (&Qintegerp); | ||
| 3102 | staticpro (&Qnatnump); | ||
| 3103 | staticpro (&Qwholenump); | ||
| 3104 | staticpro (&Qstringp); | ||
| 3105 | staticpro (&Qarrayp); | ||
| 3106 | staticpro (&Qsequencep); | ||
| 3107 | staticpro (&Qbufferp); | ||
| 3108 | staticpro (&Qvectorp); | ||
| 3109 | staticpro (&Qchar_or_string_p); | ||
| 3110 | staticpro (&Qmarkerp); | ||
| 3111 | staticpro (&Qbuffer_or_string_p); | ||
| 3112 | staticpro (&Qinteger_or_marker_p); | ||
| 3113 | staticpro (&Qfloatp); | ||
| 3114 | staticpro (&Qnumberp); | ||
| 3115 | staticpro (&Qnumber_or_marker_p); | ||
| 3116 | staticpro (&Qchar_table_p); | ||
| 3117 | staticpro (&Qvector_or_char_table_p); | ||
| 3118 | staticpro (&Qsubrp); | ||
| 3119 | staticpro (&Qmany); | ||
| 3120 | staticpro (&Qunevalled); | ||
| 3121 | |||
| 3122 | staticpro (&Qboundp); | ||
| 3123 | staticpro (&Qfboundp); | ||
| 3124 | staticpro (&Qcdr); | ||
| 3125 | staticpro (&Qad_advice_info); | ||
| 3126 | staticpro (&Qad_activate_internal); | ||
| 3127 | 3063 | ||
| 3128 | /* Types that type-of returns. */ | 3064 | /* Types that type-of returns. */ |
| 3129 | Qinteger = intern_c_string ("integer"); | 3065 | DEFSYM (Qinteger, "integer"); |
| 3130 | Qsymbol = intern_c_string ("symbol"); | 3066 | DEFSYM (Qsymbol, "symbol"); |
| 3131 | Qstring = intern_c_string ("string"); | 3067 | DEFSYM (Qstring, "string"); |
| 3132 | Qcons = intern_c_string ("cons"); | 3068 | DEFSYM (Qcons, "cons"); |
| 3133 | Qmarker = intern_c_string ("marker"); | 3069 | DEFSYM (Qmarker, "marker"); |
| 3134 | Qoverlay = intern_c_string ("overlay"); | 3070 | DEFSYM (Qoverlay, "overlay"); |
| 3135 | Qfloat = intern_c_string ("float"); | 3071 | DEFSYM (Qfloat, "float"); |
| 3136 | Qwindow_configuration = intern_c_string ("window-configuration"); | 3072 | DEFSYM (Qwindow_configuration, "window-configuration"); |
| 3137 | Qprocess = intern_c_string ("process"); | 3073 | DEFSYM (Qprocess, "process"); |
| 3138 | Qwindow = intern_c_string ("window"); | 3074 | DEFSYM (Qwindow, "window"); |
| 3139 | /* Qsubr = intern_c_string ("subr"); */ | 3075 | /* DEFSYM (Qsubr, "subr"); */ |
| 3140 | Qcompiled_function = intern_c_string ("compiled-function"); | 3076 | DEFSYM (Qcompiled_function, "compiled-function"); |
| 3141 | Qbuffer = intern_c_string ("buffer"); | 3077 | DEFSYM (Qbuffer, "buffer"); |
| 3142 | Qframe = intern_c_string ("frame"); | 3078 | DEFSYM (Qframe, "frame"); |
| 3143 | Qvector = intern_c_string ("vector"); | 3079 | DEFSYM (Qvector, "vector"); |
| 3144 | Qchar_table = intern_c_string ("char-table"); | 3080 | DEFSYM (Qchar_table, "char-table"); |
| 3145 | Qbool_vector = intern_c_string ("bool-vector"); | 3081 | DEFSYM (Qbool_vector, "bool-vector"); |
| 3146 | Qhash_table = intern_c_string ("hash-table"); | 3082 | DEFSYM (Qhash_table, "hash-table"); |
| 3147 | 3083 | ||
| 3148 | DEFSYM (Qfont_spec, "font-spec"); | 3084 | DEFSYM (Qfont_spec, "font-spec"); |
| 3149 | DEFSYM (Qfont_entity, "font-entity"); | 3085 | DEFSYM (Qfont_entity, "font-entity"); |
| @@ -3151,25 +3087,6 @@ syms_of_data (void) | |||
| 3151 | 3087 | ||
| 3152 | DEFSYM (Qinteractive_form, "interactive-form"); | 3088 | DEFSYM (Qinteractive_form, "interactive-form"); |
| 3153 | 3089 | ||
| 3154 | staticpro (&Qinteger); | ||
| 3155 | staticpro (&Qsymbol); | ||
| 3156 | staticpro (&Qstring); | ||
| 3157 | staticpro (&Qcons); | ||
| 3158 | staticpro (&Qmarker); | ||
| 3159 | staticpro (&Qoverlay); | ||
| 3160 | staticpro (&Qfloat); | ||
| 3161 | staticpro (&Qwindow_configuration); | ||
| 3162 | staticpro (&Qprocess); | ||
| 3163 | staticpro (&Qwindow); | ||
| 3164 | /* staticpro (&Qsubr); */ | ||
| 3165 | staticpro (&Qcompiled_function); | ||
| 3166 | staticpro (&Qbuffer); | ||
| 3167 | staticpro (&Qframe); | ||
| 3168 | staticpro (&Qvector); | ||
| 3169 | staticpro (&Qchar_table); | ||
| 3170 | staticpro (&Qbool_vector); | ||
| 3171 | staticpro (&Qhash_table); | ||
| 3172 | |||
| 3173 | defsubr (&Sindirect_variable); | 3090 | defsubr (&Sindirect_variable); |
| 3174 | defsubr (&Sinteractive_form); | 3091 | defsubr (&Sinteractive_form); |
| 3175 | defsubr (&Seq); | 3092 | defsubr (&Seq); |
diff --git a/src/dispnew.c b/src/dispnew.c index 7ae6c61d0c7..cd20bd6e9aa 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1101,7 +1101,7 @@ swap_glyphs_in_rows (a, b) | |||
| 1101 | 1101 | ||
| 1102 | /* Exchange pointers to glyph memory between glyph rows A and B. */ | 1102 | /* Exchange pointers to glyph memory between glyph rows A and B. */ |
| 1103 | 1103 | ||
| 1104 | static INLINE void | 1104 | static inline void |
| 1105 | swap_glyph_pointers (struct glyph_row *a, struct glyph_row *b) | 1105 | swap_glyph_pointers (struct glyph_row *a, struct glyph_row *b) |
| 1106 | { | 1106 | { |
| 1107 | int i; | 1107 | int i; |
| @@ -1117,7 +1117,7 @@ swap_glyph_pointers (struct glyph_row *a, struct glyph_row *b) | |||
| 1117 | /* Copy glyph row structure FROM to glyph row structure TO, except | 1117 | /* Copy glyph row structure FROM to glyph row structure TO, except |
| 1118 | that glyph pointers in the structures are left unchanged. */ | 1118 | that glyph pointers in the structures are left unchanged. */ |
| 1119 | 1119 | ||
| 1120 | static INLINE void | 1120 | static inline void |
| 1121 | copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) | 1121 | copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) |
| 1122 | { | 1122 | { |
| 1123 | struct glyph *pointers[1 + LAST_AREA]; | 1123 | struct glyph *pointers[1 + LAST_AREA]; |
| @@ -1138,7 +1138,7 @@ copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) | |||
| 1138 | exchanged between TO and FROM. Pointers must be exchanged to avoid | 1138 | exchanged between TO and FROM. Pointers must be exchanged to avoid |
| 1139 | a memory leak. */ | 1139 | a memory leak. */ |
| 1140 | 1140 | ||
| 1141 | static INLINE void | 1141 | static inline void |
| 1142 | assign_row (struct glyph_row *to, struct glyph_row *from) | 1142 | assign_row (struct glyph_row *to, struct glyph_row *from) |
| 1143 | { | 1143 | { |
| 1144 | swap_glyph_pointers (to, from); | 1144 | swap_glyph_pointers (to, from); |
| @@ -1304,7 +1304,7 @@ line_draw_cost (struct glyph_matrix *matrix, int vpos) | |||
| 1304 | and B have equal contents. MOUSE_FACE_P non-zero means compare the | 1304 | and B have equal contents. MOUSE_FACE_P non-zero means compare the |
| 1305 | mouse_face_p flags of A and B, too. */ | 1305 | mouse_face_p flags of A and B, too. */ |
| 1306 | 1306 | ||
| 1307 | static INLINE int | 1307 | static inline int |
| 1308 | row_equal_p (struct glyph_row *a, struct glyph_row *b, int mouse_face_p) | 1308 | row_equal_p (struct glyph_row *a, struct glyph_row *b, int mouse_face_p) |
| 1309 | { | 1309 | { |
| 1310 | if (a == b) | 1310 | if (a == b) |
| @@ -2729,7 +2729,7 @@ fill_up_frame_row_with_spaces (struct glyph_row *row, int upto) | |||
| 2729 | function must be called before updates to make explicit that we are | 2729 | function must be called before updates to make explicit that we are |
| 2730 | working on frame matrices or not. */ | 2730 | working on frame matrices or not. */ |
| 2731 | 2731 | ||
| 2732 | static INLINE void | 2732 | static inline void |
| 2733 | set_frame_matrix_frame (struct frame *f) | 2733 | set_frame_matrix_frame (struct frame *f) |
| 2734 | { | 2734 | { |
| 2735 | frame_matrix_frame = f; | 2735 | frame_matrix_frame = f; |
| @@ -2744,7 +2744,7 @@ set_frame_matrix_frame (struct frame *f) | |||
| 2744 | done in frame matrices, and that we have to perform analogous | 2744 | done in frame matrices, and that we have to perform analogous |
| 2745 | operations in window matrices of frame_matrix_frame. */ | 2745 | operations in window matrices of frame_matrix_frame. */ |
| 2746 | 2746 | ||
| 2747 | static INLINE void | 2747 | static inline void |
| 2748 | make_current (struct glyph_matrix *desired_matrix, struct glyph_matrix *current_matrix, int row) | 2748 | make_current (struct glyph_matrix *desired_matrix, struct glyph_matrix *current_matrix, int row) |
| 2749 | { | 2749 | { |
| 2750 | struct glyph_row *current_row = MATRIX_ROW (current_matrix, row); | 2750 | struct glyph_row *current_row = MATRIX_ROW (current_matrix, row); |
| @@ -4246,7 +4246,7 @@ static struct run **runs; | |||
| 4246 | 4246 | ||
| 4247 | /* Add glyph row ROW to the scrolling hash table. */ | 4247 | /* Add glyph row ROW to the scrolling hash table. */ |
| 4248 | 4248 | ||
| 4249 | static INLINE struct row_entry * | 4249 | static inline struct row_entry * |
| 4250 | add_row_entry (struct glyph_row *row) | 4250 | add_row_entry (struct glyph_row *row) |
| 4251 | { | 4251 | { |
| 4252 | struct row_entry *entry; | 4252 | struct row_entry *entry; |
diff --git a/src/emacs.c b/src/emacs.c index cf74963a816..3a7c5c0bf3d 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1423,8 +1423,11 @@ main (int argc, char **argv) | |||
| 1423 | syms_of_callproc (); | 1423 | syms_of_callproc (); |
| 1424 | /* egetenv is a pretty low-level facility, which may get called in | 1424 | /* egetenv is a pretty low-level facility, which may get called in |
| 1425 | many circumstances; it seems flimsy to put off initializing it | 1425 | many circumstances; it seems flimsy to put off initializing it |
| 1426 | until calling init_callproc. */ | 1426 | until calling init_callproc. Do not do it when dumping. */ |
| 1427 | set_initial_environment (); | 1427 | if (initialized || ((strcmp (argv[argc-1], "dump") != 0 |
| 1428 | && strcmp (argv[argc-1], "bootstrap") != 0))) | ||
| 1429 | set_initial_environment (); | ||
| 1430 | |||
| 1428 | /* AIX crashes are reported in system versions 3.2.3 and 3.2.4 | 1431 | /* AIX crashes are reported in system versions 3.2.3 and 3.2.4 |
| 1429 | if this is not done. Do it after set_global_environment so that we | 1432 | if this is not done. Do it after set_global_environment so that we |
| 1430 | don't pollute Vglobal_environment. */ | 1433 | don't pollute Vglobal_environment. */ |
| @@ -3704,7 +3704,7 @@ copy_hash_table (struct Lisp_Hash_Table *h1) | |||
| 3704 | /* Resize hash table H if it's too full. If H cannot be resized | 3704 | /* Resize hash table H if it's too full. If H cannot be resized |
| 3705 | because it's already too large, throw an error. */ | 3705 | because it's already too large, throw an error. */ |
| 3706 | 3706 | ||
| 3707 | static INLINE void | 3707 | static inline void |
| 3708 | maybe_resize_hash_table (struct Lisp_Hash_Table *h) | 3708 | maybe_resize_hash_table (struct Lisp_Hash_Table *h) |
| 3709 | { | 3709 | { |
| 3710 | if (NILP (h->next_free)) | 3710 | if (NILP (h->next_free)) |
diff --git a/src/fontset.c b/src/fontset.c index a40a3dd5f9c..46637b53b3e 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -58,8 +58,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | #undef xassert | 58 | #undef xassert |
| 59 | #ifdef FONTSET_DEBUG | 59 | #ifdef FONTSET_DEBUG |
| 60 | #define xassert(X) do {if (!(X)) abort ();} while (0) | 60 | #define xassert(X) do {if (!(X)) abort ();} while (0) |
| 61 | #undef INLINE | ||
| 62 | #define INLINE | ||
| 63 | #else /* not FONTSET_DEBUG */ | 61 | #else /* not FONTSET_DEBUG */ |
| 64 | #define xassert(X) (void) 0 | 62 | #define xassert(X) (void) 0 |
| 65 | #endif /* not FONTSET_DEBUG */ | 63 | #endif /* not FONTSET_DEBUG */ |
diff --git a/src/gmalloc.c b/src/gmalloc.c index 5237432872d..a023d2d78e5 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -552,12 +552,8 @@ get_contiguous_space (size, position) | |||
| 552 | /* This is called when `_heapinfo' and `heapsize' have just | 552 | /* This is called when `_heapinfo' and `heapsize' have just |
| 553 | been set to describe a new info table. Set up the table | 553 | been set to describe a new info table. Set up the table |
| 554 | to describe itself and account for it in the statistics. */ | 554 | to describe itself and account for it in the statistics. */ |
| 555 | static void register_heapinfo PP ((void)); | 555 | static inline void |
| 556 | #ifdef __GNUC__ | 556 | register_heapinfo (void) |
| 557 | __inline__ | ||
| 558 | #endif | ||
| 559 | static void | ||
| 560 | register_heapinfo () | ||
| 561 | { | 557 | { |
| 562 | __malloc_size_t block, blocks; | 558 | __malloc_size_t block, blocks; |
| 563 | 559 | ||
| @@ -2170,4 +2166,3 @@ mprobe (__ptr_t ptr) | |||
| 2170 | } | 2166 | } |
| 2171 | 2167 | ||
| 2172 | #endif /* GC_MCHECK */ | 2168 | #endif /* GC_MCHECK */ |
| 2173 | |||
diff --git a/src/image.c b/src/image.c index 3e15ee95758..0f269f46492 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -623,7 +623,7 @@ define_image_type (struct image_type *type, int loaded) | |||
| 623 | /* Look up image type SYMBOL, and return a pointer to its image_type | 623 | /* Look up image type SYMBOL, and return a pointer to its image_type |
| 624 | structure. Value is null if SYMBOL is not a known image type. */ | 624 | structure. Value is null if SYMBOL is not a known image type. */ |
| 625 | 625 | ||
| 626 | static INLINE struct image_type * | 626 | static inline struct image_type * |
| 627 | lookup_image_type (Lisp_Object symbol) | 627 | lookup_image_type (Lisp_Object symbol) |
| 628 | { | 628 | { |
| 629 | struct image_type *type; | 629 | struct image_type *type; |
diff --git a/src/intervals.c b/src/intervals.c index e72bc146d16..f9e9c864e13 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -313,7 +313,7 @@ root_interval (interval) | |||
| 313 | c c | 313 | c c |
| 314 | */ | 314 | */ |
| 315 | 315 | ||
| 316 | static INLINE INTERVAL | 316 | static inline INTERVAL |
| 317 | rotate_right (INTERVAL interval) | 317 | rotate_right (INTERVAL interval) |
| 318 | { | 318 | { |
| 319 | INTERVAL i; | 319 | INTERVAL i; |
| @@ -360,7 +360,7 @@ rotate_right (INTERVAL interval) | |||
| 360 | c c | 360 | c c |
| 361 | */ | 361 | */ |
| 362 | 362 | ||
| 363 | static INLINE INTERVAL | 363 | static inline INTERVAL |
| 364 | rotate_left (INTERVAL interval) | 364 | rotate_left (INTERVAL interval) |
| 365 | { | 365 | { |
| 366 | INTERVAL i; | 366 | INTERVAL i; |
| @@ -438,7 +438,7 @@ balance_an_interval (INTERVAL i) | |||
| 438 | /* Balance INTERVAL, potentially stuffing it back into its parent | 438 | /* Balance INTERVAL, potentially stuffing it back into its parent |
| 439 | Lisp Object. */ | 439 | Lisp Object. */ |
| 440 | 440 | ||
| 441 | static INLINE INTERVAL | 441 | static inline INTERVAL |
| 442 | balance_possible_root_interval (register INTERVAL interval) | 442 | balance_possible_root_interval (register INTERVAL interval) |
| 443 | { | 443 | { |
| 444 | Lisp_Object parent; | 444 | Lisp_Object parent; |
| @@ -1427,7 +1427,7 @@ adjust_intervals_for_deletion (struct buffer *buffer, | |||
| 1427 | at position START. Addition or deletion is indicated by the sign | 1427 | at position START. Addition or deletion is indicated by the sign |
| 1428 | of LENGTH. */ | 1428 | of LENGTH. */ |
| 1429 | 1429 | ||
| 1430 | INLINE void | 1430 | inline void |
| 1431 | offset_intervals (struct buffer *buffer, EMACS_INT start, EMACS_INT length) | 1431 | offset_intervals (struct buffer *buffer, EMACS_INT start, EMACS_INT length) |
| 1432 | { | 1432 | { |
| 1433 | if (NULL_INTERVAL_P (BUF_INTERVALS (buffer)) || length == 0) | 1433 | if (NULL_INTERVAL_P (BUF_INTERVALS (buffer)) || length == 0) |
| @@ -1883,7 +1883,7 @@ lookup_char_property (Lisp_Object plist, register Lisp_Object prop, int textprop | |||
| 1883 | /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to | 1883 | /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to |
| 1884 | byte position BYTEPOS. */ | 1884 | byte position BYTEPOS. */ |
| 1885 | 1885 | ||
| 1886 | INLINE void | 1886 | inline void |
| 1887 | temp_set_point_both (struct buffer *buffer, | 1887 | temp_set_point_both (struct buffer *buffer, |
| 1888 | EMACS_INT charpos, EMACS_INT bytepos) | 1888 | EMACS_INT charpos, EMACS_INT bytepos) |
| 1889 | { | 1889 | { |
| @@ -1903,7 +1903,7 @@ temp_set_point_both (struct buffer *buffer, | |||
| 1903 | 1903 | ||
| 1904 | /* Set point "temporarily", without checking any text properties. */ | 1904 | /* Set point "temporarily", without checking any text properties. */ |
| 1905 | 1905 | ||
| 1906 | INLINE void | 1906 | inline void |
| 1907 | temp_set_point (struct buffer *buffer, EMACS_INT charpos) | 1907 | temp_set_point (struct buffer *buffer, EMACS_INT charpos) |
| 1908 | { | 1908 | { |
| 1909 | temp_set_point_both (buffer, charpos, | 1909 | temp_set_point_both (buffer, charpos, |
| @@ -2392,7 +2392,7 @@ copy_intervals (INTERVAL tree, EMACS_INT start, EMACS_INT length) | |||
| 2392 | 2392 | ||
| 2393 | /* Give STRING the properties of BUFFER from POSITION to LENGTH. */ | 2393 | /* Give STRING the properties of BUFFER from POSITION to LENGTH. */ |
| 2394 | 2394 | ||
| 2395 | INLINE void | 2395 | inline void |
| 2396 | copy_intervals_to_string (Lisp_Object string, struct buffer *buffer, | 2396 | copy_intervals_to_string (Lisp_Object string, struct buffer *buffer, |
| 2397 | EMACS_INT position, EMACS_INT length) | 2397 | EMACS_INT position, EMACS_INT length) |
| 2398 | { | 2398 | { |
diff --git a/src/keyboard.c b/src/keyboard.c index c471a91ebfb..7bc406aab31 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3742,7 +3742,7 @@ kbd_buffer_events_waiting (int discard) | |||
| 3742 | 3742 | ||
| 3743 | /* Clear input event EVENT. */ | 3743 | /* Clear input event EVENT. */ |
| 3744 | 3744 | ||
| 3745 | static INLINE void | 3745 | static inline void |
| 3746 | clear_event (struct input_event *event) | 3746 | clear_event (struct input_event *event) |
| 3747 | { | 3747 | { |
| 3748 | event->kind = NO_EVENT; | 3748 | event->kind = NO_EVENT; |
diff --git a/src/lisp.h b/src/lisp.h index ceaf7f49eb2..8df4b67bb45 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -317,7 +317,7 @@ Lisp_Object; | |||
| 317 | #endif /* WORDS_BIGENDIAN */ | 317 | #endif /* WORDS_BIGENDIAN */ |
| 318 | 318 | ||
| 319 | #ifdef __GNUC__ | 319 | #ifdef __GNUC__ |
| 320 | static __inline__ Lisp_Object | 320 | static inline Lisp_Object |
| 321 | LISP_MAKE_RVALUE (Lisp_Object o) | 321 | LISP_MAKE_RVALUE (Lisp_Object o) |
| 322 | { | 322 | { |
| 323 | return o; | 323 | return o; |
diff --git a/src/minibuf.c b/src/minibuf.c index fd51b0a2358..0c28dd91546 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -43,7 +43,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 43 | 43 | ||
| 44 | Lisp_Object Vminibuffer_list; | 44 | Lisp_Object Vminibuffer_list; |
| 45 | 45 | ||
| 46 | /* Data to remember during recursive minibuffer invocations */ | 46 | /* Data to remember during recursive minibuffer invocations. */ |
| 47 | 47 | ||
| 48 | static Lisp_Object minibuf_save_list; | 48 | static Lisp_Object minibuf_save_list; |
| 49 | 49 | ||
| @@ -55,7 +55,7 @@ int minibuf_level; | |||
| 55 | 55 | ||
| 56 | static Lisp_Object Qhistory_length; | 56 | static Lisp_Object Qhistory_length; |
| 57 | 57 | ||
| 58 | /* Fread_minibuffer leaves the input here as a string. */ | 58 | /* Fread_minibuffer leaves the input here as a string. */ |
| 59 | 59 | ||
| 60 | Lisp_Object last_minibuf_string; | 60 | Lisp_Object last_minibuf_string; |
| 61 | 61 | ||
| @@ -588,7 +588,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, | |||
| 588 | /* Empty out the minibuffers of all frames other than the one | 588 | /* Empty out the minibuffers of all frames other than the one |
| 589 | where we are going to display one now. | 589 | where we are going to display one now. |
| 590 | Set them to point to ` *Minibuf-0*', which is always empty. */ | 590 | Set them to point to ` *Minibuf-0*', which is always empty. */ |
| 591 | empty_minibuf = Fget_buffer (build_string (" *Minibuf-0*")); | 591 | empty_minibuf = get_minibuffer (0); |
| 592 | 592 | ||
| 593 | FOR_EACH_FRAME (dummy, frame) | 593 | FOR_EACH_FRAME (dummy, frame) |
| 594 | { | 594 | { |
| @@ -1137,8 +1137,8 @@ function, instead of the usual behavior. */) | |||
| 1137 | } | 1137 | } |
| 1138 | 1138 | ||
| 1139 | result = Fcompleting_read (prompt, intern ("internal-complete-buffer"), | 1139 | result = Fcompleting_read (prompt, intern ("internal-complete-buffer"), |
| 1140 | Qnil, require_match, Qnil, Qbuffer_name_history, | 1140 | Qnil, require_match, Qnil, |
| 1141 | def, Qnil); | 1141 | Qbuffer_name_history, def, Qnil); |
| 1142 | } | 1142 | } |
| 1143 | else | 1143 | else |
| 1144 | { | 1144 | { |
| @@ -1878,6 +1878,9 @@ the values STRING, PREDICATE and `lambda'. */) | |||
| 1878 | return Qt; | 1878 | return Qt; |
| 1879 | } | 1879 | } |
| 1880 | 1880 | ||
| 1881 | Lisp_Object Qmetadata; | ||
| 1882 | extern Lisp_Object Qbuffer; | ||
| 1883 | |||
| 1881 | DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, | 1884 | DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, |
| 1882 | doc: /* Perform completion on buffer names. | 1885 | doc: /* Perform completion on buffer names. |
| 1883 | If the argument FLAG is nil, invoke `try-completion', if it's t, invoke | 1886 | If the argument FLAG is nil, invoke `try-completion', if it's t, invoke |
| @@ -1912,8 +1915,12 @@ The arguments STRING and PREDICATE are as in `try-completion', | |||
| 1912 | return res; | 1915 | return res; |
| 1913 | } | 1916 | } |
| 1914 | } | 1917 | } |
| 1915 | else /* assume `lambda' */ | 1918 | else if (EQ (flag, Qlambda)) |
| 1916 | return Ftest_completion (string, Vbuffer_alist, predicate); | 1919 | return Ftest_completion (string, Vbuffer_alist, predicate); |
| 1920 | else if (EQ (flag, Qmetadata)) | ||
| 1921 | return Fcons (Qmetadata, Fcons (Fcons (Qcategory, Qbuffer), Qnil)); | ||
| 1922 | else | ||
| 1923 | return Qnil; | ||
| 1917 | } | 1924 | } |
| 1918 | 1925 | ||
| 1919 | /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ | 1926 | /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ |
| @@ -1989,66 +1996,38 @@ syms_of_minibuf (void) | |||
| 1989 | minibuf_save_list = Qnil; | 1996 | minibuf_save_list = Qnil; |
| 1990 | staticpro (&minibuf_save_list); | 1997 | staticpro (&minibuf_save_list); |
| 1991 | 1998 | ||
| 1992 | Qcompleting_read_default = intern_c_string ("completing-read-default"); | 1999 | DEFSYM (Qcompleting_read_default, "completing-read-default"); |
| 1993 | staticpro (&Qcompleting_read_default); | 2000 | DEFSYM (Qcompletion_ignore_case, "completion-ignore-case"); |
| 1994 | 2001 | DEFSYM (Qread_file_name_internal, "read-file-name-internal"); | |
| 1995 | Qcompletion_ignore_case = intern_c_string ("completion-ignore-case"); | 2002 | DEFSYM (Qminibuffer_default, "minibuffer-default"); |
| 1996 | staticpro (&Qcompletion_ignore_case); | ||
| 1997 | |||
| 1998 | Qread_file_name_internal = intern_c_string ("read-file-name-internal"); | ||
| 1999 | staticpro (&Qread_file_name_internal); | ||
| 2000 | |||
| 2001 | Qminibuffer_default = intern_c_string ("minibuffer-default"); | ||
| 2002 | staticpro (&Qminibuffer_default); | ||
| 2003 | Fset (Qminibuffer_default, Qnil); | 2003 | Fset (Qminibuffer_default, Qnil); |
| 2004 | 2004 | ||
| 2005 | Qminibuffer_completion_table = intern_c_string ("minibuffer-completion-table"); | 2005 | DEFSYM (Qminibuffer_completion_table, "minibuffer-completion-table"); |
| 2006 | staticpro (&Qminibuffer_completion_table); | 2006 | DEFSYM (Qminibuffer_completion_confirm, "minibuffer-completion-confirm"); |
| 2007 | 2007 | DEFSYM (Qminibuffer_completion_predicate, "minibuffer-completion-predicate"); | |
| 2008 | Qminibuffer_completion_confirm = intern_c_string ("minibuffer-completion-confirm"); | ||
| 2009 | staticpro (&Qminibuffer_completion_confirm); | ||
| 2010 | |||
| 2011 | Qminibuffer_completion_predicate = intern_c_string ("minibuffer-completion-predicate"); | ||
| 2012 | staticpro (&Qminibuffer_completion_predicate); | ||
| 2013 | 2008 | ||
| 2014 | staticpro (&last_minibuf_string); | 2009 | staticpro (&last_minibuf_string); |
| 2015 | last_minibuf_string = Qnil; | 2010 | last_minibuf_string = Qnil; |
| 2016 | 2011 | ||
| 2017 | Quser_variable_p = intern_c_string ("user-variable-p"); | 2012 | DEFSYM (Quser_variable_p, "user-variable-p"); |
| 2018 | staticpro (&Quser_variable_p); | 2013 | DEFSYM (Qminibuffer_history, "minibuffer-history"); |
| 2019 | 2014 | DEFSYM (Qbuffer_name_history, "buffer-name-history"); | |
| 2020 | Qminibuffer_history = intern_c_string ("minibuffer-history"); | ||
| 2021 | staticpro (&Qminibuffer_history); | ||
| 2022 | |||
| 2023 | Qbuffer_name_history = intern_c_string ("buffer-name-history"); | ||
| 2024 | staticpro (&Qbuffer_name_history); | ||
| 2025 | Fset (Qbuffer_name_history, Qnil); | 2015 | Fset (Qbuffer_name_history, Qnil); |
| 2026 | 2016 | ||
| 2027 | Qminibuffer_setup_hook = intern_c_string ("minibuffer-setup-hook"); | 2017 | DEFSYM (Qminibuffer_setup_hook, "minibuffer-setup-hook"); |
| 2028 | staticpro (&Qminibuffer_setup_hook); | 2018 | DEFSYM (Qminibuffer_exit_hook, "minibuffer-exit-hook"); |
| 2029 | 2019 | DEFSYM (Qhistory_length, "history-length"); | |
| 2030 | Qminibuffer_exit_hook = intern_c_string ("minibuffer-exit-hook"); | 2020 | DEFSYM (Qcurrent_input_method, "current-input-method"); |
| 2031 | staticpro (&Qminibuffer_exit_hook); | 2021 | DEFSYM (Qactivate_input_method, "activate-input-method"); |
| 2032 | 2022 | DEFSYM (Qcase_fold_search, "case-fold-search"); | |
| 2033 | Qhistory_length = intern_c_string ("history-length"); | 2023 | DEFSYM (Qmetadata, "metadata"); |
| 2034 | staticpro (&Qhistory_length); | ||
| 2035 | |||
| 2036 | Qcurrent_input_method = intern_c_string ("current-input-method"); | ||
| 2037 | staticpro (&Qcurrent_input_method); | ||
| 2038 | |||
| 2039 | Qactivate_input_method = intern_c_string ("activate-input-method"); | ||
| 2040 | staticpro (&Qactivate_input_method); | ||
| 2041 | |||
| 2042 | Qcase_fold_search = intern_c_string ("case-fold-search"); | ||
| 2043 | staticpro (&Qcase_fold_search); | ||
| 2044 | 2024 | ||
| 2045 | DEFVAR_LISP ("read-expression-history", Vread_expression_history, | 2025 | DEFVAR_LISP ("read-expression-history", Vread_expression_history, |
| 2046 | doc: /* A history list for arguments that are Lisp expressions to evaluate. | 2026 | doc: /* A history list for arguments that are Lisp expressions to evaluate. |
| 2047 | For example, `eval-expression' uses this. */); | 2027 | For example, `eval-expression' uses this. */); |
| 2048 | Vread_expression_history = Qnil; | 2028 | Vread_expression_history = Qnil; |
| 2049 | 2029 | ||
| 2050 | Qread_expression_history = intern_c_string ("read-expression-history"); | 2030 | DEFSYM (Qread_expression_history, "read-expression-history"); |
| 2051 | staticpro (&Qread_expression_history); | ||
| 2052 | 2031 | ||
| 2053 | DEFVAR_LISP ("read-buffer-function", Vread_buffer_function, | 2032 | DEFVAR_LISP ("read-buffer-function", Vread_buffer_function, |
| 2054 | doc: /* If this is non-nil, `read-buffer' does its work by calling this function. | 2033 | doc: /* If this is non-nil, `read-buffer' does its work by calling this function. |
diff --git a/src/process.c b/src/process.c index 8a94b3e6047..51deb1c933f 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4162,7 +4162,7 @@ wait_reading_process_output_1 (void) | |||
| 4162 | impossible to step through wait_reading_process_output. */ | 4162 | impossible to step through wait_reading_process_output. */ |
| 4163 | 4163 | ||
| 4164 | #ifndef select | 4164 | #ifndef select |
| 4165 | static INLINE int | 4165 | static inline int |
| 4166 | select_wrapper (int n, fd_set *rfd, fd_set *wfd, fd_set *xfd, struct timeval *tmo) | 4166 | select_wrapper (int n, fd_set *rfd, fd_set *wfd, fd_set *xfd, struct timeval *tmo) |
| 4167 | { | 4167 | { |
| 4168 | return select (n, rfd, wfd, xfd, tmo); | 4168 | return select (n, rfd, wfd, xfd, tmo); |
diff --git a/src/syntax.c b/src/syntax.c index cff6d50f510..82103cfa3d4 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -367,7 +367,7 @@ char_quoted (EMACS_INT charpos, EMACS_INT bytepos) | |||
| 367 | /* Return the bytepos one character before BYTEPOS. | 367 | /* Return the bytepos one character before BYTEPOS. |
| 368 | We assume that BYTEPOS is not at the start of the buffer. */ | 368 | We assume that BYTEPOS is not at the start of the buffer. */ |
| 369 | 369 | ||
| 370 | static INLINE EMACS_INT | 370 | static inline EMACS_INT |
| 371 | dec_bytepos (EMACS_INT bytepos) | 371 | dec_bytepos (EMACS_INT bytepos) |
| 372 | { | 372 | { |
| 373 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) | 373 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) |
diff --git a/src/textprop.c b/src/textprop.c index 566b2962a63..350892cdad6 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -248,7 +248,7 @@ interval_has_all_properties (Lisp_Object plist, INTERVAL i) | |||
| 248 | /* Return nonzero if the plist of interval I has any of the | 248 | /* Return nonzero if the plist of interval I has any of the |
| 249 | properties of PLIST, regardless of their values. */ | 249 | properties of PLIST, regardless of their values. */ |
| 250 | 250 | ||
| 251 | static INLINE int | 251 | static inline int |
| 252 | interval_has_some_properties (Lisp_Object plist, INTERVAL i) | 252 | interval_has_some_properties (Lisp_Object plist, INTERVAL i) |
| 253 | { | 253 | { |
| 254 | register Lisp_Object tail1, tail2, sym; | 254 | register Lisp_Object tail1, tail2, sym; |
| @@ -270,7 +270,7 @@ interval_has_some_properties (Lisp_Object plist, INTERVAL i) | |||
| 270 | /* Return nonzero if the plist of interval I has any of the | 270 | /* Return nonzero if the plist of interval I has any of the |
| 271 | property names in LIST, regardless of their values. */ | 271 | property names in LIST, regardless of their values. */ |
| 272 | 272 | ||
| 273 | static INLINE int | 273 | static inline int |
| 274 | interval_has_some_properties_list (Lisp_Object list, INTERVAL i) | 274 | interval_has_some_properties_list (Lisp_Object list, INTERVAL i) |
| 275 | { | 275 | { |
| 276 | register Lisp_Object tail1, tail2, sym; | 276 | register Lisp_Object tail1, tail2, sym; |
| @@ -499,7 +499,7 @@ remove_properties (Lisp_Object plist, Lisp_Object list, INTERVAL i, Lisp_Object | |||
| 499 | /* Remove all properties from interval I. Return non-zero | 499 | /* Remove all properties from interval I. Return non-zero |
| 500 | if this changes the interval. */ | 500 | if this changes the interval. */ |
| 501 | 501 | ||
| 502 | static INLINE int | 502 | static inline int |
| 503 | erase_properties (INTERVAL i) | 503 | erase_properties (INTERVAL i) |
| 504 | { | 504 | { |
| 505 | if (NILP (i->plist)) | 505 | if (NILP (i->plist)) |
diff --git a/src/w32term.c b/src/w32term.c index d22aee6dc76..b7c0d61b633 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1002,7 +1002,7 @@ x_set_mouse_face_gc (struct glyph_string *s) | |||
| 1002 | Faces to use in the mode line have already been computed when the | 1002 | Faces to use in the mode line have already been computed when the |
| 1003 | matrix was built, so there isn't much to do, here. */ | 1003 | matrix was built, so there isn't much to do, here. */ |
| 1004 | 1004 | ||
| 1005 | static INLINE void | 1005 | static inline void |
| 1006 | x_set_mode_line_face_gc (struct glyph_string *s) | 1006 | x_set_mode_line_face_gc (struct glyph_string *s) |
| 1007 | { | 1007 | { |
| 1008 | s->gc = s->face->gc; | 1008 | s->gc = s->face->gc; |
| @@ -1013,7 +1013,7 @@ x_set_mode_line_face_gc (struct glyph_string *s) | |||
| 1013 | S->stippled_p to a non-zero value if the face of S has a stipple | 1013 | S->stippled_p to a non-zero value if the face of S has a stipple |
| 1014 | pattern. */ | 1014 | pattern. */ |
| 1015 | 1015 | ||
| 1016 | static INLINE void | 1016 | static inline void |
| 1017 | x_set_glyph_string_gc (struct glyph_string *s) | 1017 | x_set_glyph_string_gc (struct glyph_string *s) |
| 1018 | { | 1018 | { |
| 1019 | PREPARE_FACE_FOR_DISPLAY (s->f, s->face); | 1019 | PREPARE_FACE_FOR_DISPLAY (s->f, s->face); |
| @@ -1058,7 +1058,7 @@ x_set_glyph_string_gc (struct glyph_string *s) | |||
| 1058 | /* Set clipping for output of glyph string S. S may be part of a mode | 1058 | /* Set clipping for output of glyph string S. S may be part of a mode |
| 1059 | line or menu if we don't have X toolkit support. */ | 1059 | line or menu if we don't have X toolkit support. */ |
| 1060 | 1060 | ||
| 1061 | static INLINE void | 1061 | static inline void |
| 1062 | x_set_glyph_string_clipping (struct glyph_string *s) | 1062 | x_set_glyph_string_clipping (struct glyph_string *s) |
| 1063 | { | 1063 | { |
| 1064 | RECT *r = s->clip; | 1064 | RECT *r = s->clip; |
| @@ -1128,7 +1128,7 @@ w32_compute_glyph_string_overhangs (struct glyph_string *s) | |||
| 1128 | 1128 | ||
| 1129 | /* Fill rectangle X, Y, W, H with background color of glyph string S. */ | 1129 | /* Fill rectangle X, Y, W, H with background color of glyph string S. */ |
| 1130 | 1130 | ||
| 1131 | static INLINE void | 1131 | static inline void |
| 1132 | x_clear_glyph_string_rect (struct glyph_string *s, | 1132 | x_clear_glyph_string_rect (struct glyph_string *s, |
| 1133 | int x, int y, int w, int h) | 1133 | int x, int y, int w, int h) |
| 1134 | { | 1134 | { |
diff --git a/src/xdisp.c b/src/xdisp.c index c1ed3d9cdae..d67cc63be79 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -926,7 +926,7 @@ static int coords_in_mouse_face_p (struct window *, int, int); | |||
| 926 | 926 | ||
| 927 | This is the height of W minus the height of a mode line, if any. */ | 927 | This is the height of W minus the height of a mode line, if any. */ |
| 928 | 928 | ||
| 929 | INLINE int | 929 | inline int |
| 930 | window_text_bottom_y (struct window *w) | 930 | window_text_bottom_y (struct window *w) |
| 931 | { | 931 | { |
| 932 | int height = WINDOW_TOTAL_HEIGHT (w); | 932 | int height = WINDOW_TOTAL_HEIGHT (w); |
| @@ -940,7 +940,7 @@ window_text_bottom_y (struct window *w) | |||
| 940 | means return the total width of W, not including fringes to | 940 | means return the total width of W, not including fringes to |
| 941 | the left and right of the window. */ | 941 | the left and right of the window. */ |
| 942 | 942 | ||
| 943 | INLINE int | 943 | inline int |
| 944 | window_box_width (struct window *w, int area) | 944 | window_box_width (struct window *w, int area) |
| 945 | { | 945 | { |
| 946 | int cols = XFASTINT (w->total_cols); | 946 | int cols = XFASTINT (w->total_cols); |
| @@ -979,7 +979,7 @@ window_box_width (struct window *w, int area) | |||
| 979 | /* Return the pixel height of the display area of window W, not | 979 | /* Return the pixel height of the display area of window W, not |
| 980 | including mode lines of W, if any. */ | 980 | including mode lines of W, if any. */ |
| 981 | 981 | ||
| 982 | INLINE int | 982 | inline int |
| 983 | window_box_height (struct window *w) | 983 | window_box_height (struct window *w) |
| 984 | { | 984 | { |
| 985 | struct frame *f = XFRAME (w->frame); | 985 | struct frame *f = XFRAME (w->frame); |
| @@ -1026,7 +1026,7 @@ window_box_height (struct window *w) | |||
| 1026 | area AREA of window W. AREA < 0 means return the left edge of the | 1026 | area AREA of window W. AREA < 0 means return the left edge of the |
| 1027 | whole window, to the right of the left fringe of W. */ | 1027 | whole window, to the right of the left fringe of W. */ |
| 1028 | 1028 | ||
| 1029 | INLINE int | 1029 | inline int |
| 1030 | window_box_left_offset (struct window *w, int area) | 1030 | window_box_left_offset (struct window *w, int area) |
| 1031 | { | 1031 | { |
| 1032 | int x; | 1032 | int x; |
| @@ -1058,7 +1058,7 @@ window_box_left_offset (struct window *w, int area) | |||
| 1058 | area AREA of window W. AREA < 0 means return the right edge of the | 1058 | area AREA of window W. AREA < 0 means return the right edge of the |
| 1059 | whole window, to the left of the right fringe of W. */ | 1059 | whole window, to the left of the right fringe of W. */ |
| 1060 | 1060 | ||
| 1061 | INLINE int | 1061 | inline int |
| 1062 | window_box_right_offset (struct window *w, int area) | 1062 | window_box_right_offset (struct window *w, int area) |
| 1063 | { | 1063 | { |
| 1064 | return window_box_left_offset (w, area) + window_box_width (w, area); | 1064 | return window_box_left_offset (w, area) + window_box_width (w, area); |
| @@ -1068,7 +1068,7 @@ window_box_right_offset (struct window *w, int area) | |||
| 1068 | area AREA of window W. AREA < 0 means return the left edge of the | 1068 | area AREA of window W. AREA < 0 means return the left edge of the |
| 1069 | whole window, to the right of the left fringe of W. */ | 1069 | whole window, to the right of the left fringe of W. */ |
| 1070 | 1070 | ||
| 1071 | INLINE int | 1071 | inline int |
| 1072 | window_box_left (struct window *w, int area) | 1072 | window_box_left (struct window *w, int area) |
| 1073 | { | 1073 | { |
| 1074 | struct frame *f = XFRAME (w->frame); | 1074 | struct frame *f = XFRAME (w->frame); |
| @@ -1088,7 +1088,7 @@ window_box_left (struct window *w, int area) | |||
| 1088 | area AREA of window W. AREA < 0 means return the right edge of the | 1088 | area AREA of window W. AREA < 0 means return the right edge of the |
| 1089 | whole window, to the left of the right fringe of W. */ | 1089 | whole window, to the left of the right fringe of W. */ |
| 1090 | 1090 | ||
| 1091 | INLINE int | 1091 | inline int |
| 1092 | window_box_right (struct window *w, int area) | 1092 | window_box_right (struct window *w, int area) |
| 1093 | { | 1093 | { |
| 1094 | return window_box_left (w, area) + window_box_width (w, area); | 1094 | return window_box_left (w, area) + window_box_width (w, area); |
| @@ -1101,7 +1101,7 @@ window_box_right (struct window *w, int area) | |||
| 1101 | coordinates of the upper-left corner of the box. Return in | 1101 | coordinates of the upper-left corner of the box. Return in |
| 1102 | *BOX_WIDTH, and *BOX_HEIGHT the pixel width and height of the box. */ | 1102 | *BOX_WIDTH, and *BOX_HEIGHT the pixel width and height of the box. */ |
| 1103 | 1103 | ||
| 1104 | INLINE void | 1104 | inline void |
| 1105 | window_box (struct window *w, int area, int *box_x, int *box_y, | 1105 | window_box (struct window *w, int area, int *box_x, int *box_y, |
| 1106 | int *box_width, int *box_height) | 1106 | int *box_width, int *box_height) |
| 1107 | { | 1107 | { |
| @@ -1128,7 +1128,7 @@ window_box (struct window *w, int area, int *box_x, int *box_y, | |||
| 1128 | *BOTTOM_RIGHT_Y the coordinates of the bottom-right corner of the | 1128 | *BOTTOM_RIGHT_Y the coordinates of the bottom-right corner of the |
| 1129 | box. */ | 1129 | box. */ |
| 1130 | 1130 | ||
| 1131 | static INLINE void | 1131 | static inline void |
| 1132 | window_box_edges (struct window *w, int area, int *top_left_x, int *top_left_y, | 1132 | window_box_edges (struct window *w, int area, int *top_left_x, int *top_left_y, |
| 1133 | int *bottom_right_x, int *bottom_right_y) | 1133 | int *bottom_right_x, int *bottom_right_y) |
| 1134 | { | 1134 | { |
| @@ -1328,7 +1328,7 @@ pos_visible_p (struct window *w, EMACS_INT charpos, int *x, int *y, | |||
| 1328 | returns an invalid character. If we find one, we return a `?', but | 1328 | returns an invalid character. If we find one, we return a `?', but |
| 1329 | with the length of the invalid character. */ | 1329 | with the length of the invalid character. */ |
| 1330 | 1330 | ||
| 1331 | static INLINE int | 1331 | static inline int |
| 1332 | string_char_and_length (const unsigned char *str, int *len) | 1332 | string_char_and_length (const unsigned char *str, int *len) |
| 1333 | { | 1333 | { |
| 1334 | int c; | 1334 | int c; |
| @@ -1376,7 +1376,7 @@ string_pos_nchars_ahead (struct text_pos pos, Lisp_Object string, EMACS_INT ncha | |||
| 1376 | /* Value is the text position, i.e. character and byte position, | 1376 | /* Value is the text position, i.e. character and byte position, |
| 1377 | for character position CHARPOS in STRING. */ | 1377 | for character position CHARPOS in STRING. */ |
| 1378 | 1378 | ||
| 1379 | static INLINE struct text_pos | 1379 | static inline struct text_pos |
| 1380 | string_pos (EMACS_INT charpos, Lisp_Object string) | 1380 | string_pos (EMACS_INT charpos, Lisp_Object string) |
| 1381 | { | 1381 | { |
| 1382 | struct text_pos pos; | 1382 | struct text_pos pos; |
| @@ -11061,7 +11061,7 @@ debug_method_add (w, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9) | |||
| 11061 | buffer position, END is given as a distance from Z. Used in | 11061 | buffer position, END is given as a distance from Z. Used in |
| 11062 | redisplay_internal for display optimization. */ | 11062 | redisplay_internal for display optimization. */ |
| 11063 | 11063 | ||
| 11064 | static INLINE int | 11064 | static inline int |
| 11065 | text_outside_line_unchanged_p (struct window *w, | 11065 | text_outside_line_unchanged_p (struct window *w, |
| 11066 | EMACS_INT start, EMACS_INT end) | 11066 | EMACS_INT start, EMACS_INT end) |
| 11067 | { | 11067 | { |
| @@ -11322,7 +11322,7 @@ check_point_in_composition (struct buffer *prev_buf, EMACS_INT prev_pt, | |||
| 11322 | /* Reconsider the setting of B->clip_changed which is displayed | 11322 | /* Reconsider the setting of B->clip_changed which is displayed |
| 11323 | in window W. */ | 11323 | in window W. */ |
| 11324 | 11324 | ||
| 11325 | static INLINE void | 11325 | static inline void |
| 11326 | reconsider_clip_changes (struct window *w, struct buffer *b) | 11326 | reconsider_clip_changes (struct window *w, struct buffer *b) |
| 11327 | { | 11327 | { |
| 11328 | if (b->clip_changed | 11328 | if (b->clip_changed |
| @@ -12883,7 +12883,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, | |||
| 12883 | 12883 | ||
| 12884 | We assume that the window's buffer is really current. */ | 12884 | We assume that the window's buffer is really current. */ |
| 12885 | 12885 | ||
| 12886 | static INLINE struct text_pos | 12886 | static inline struct text_pos |
| 12887 | run_window_scroll_functions (Lisp_Object window, struct text_pos startp) | 12887 | run_window_scroll_functions (Lisp_Object window, struct text_pos startp) |
| 12888 | { | 12888 | { |
| 12889 | struct window *w = XWINDOW (window); | 12889 | struct window *w = XWINDOW (window); |
| @@ -20417,7 +20417,7 @@ init_glyph_string (struct glyph_string *s, | |||
| 20417 | /* Append the list of glyph strings with head H and tail T to the list | 20417 | /* Append the list of glyph strings with head H and tail T to the list |
| 20418 | with head *HEAD and tail *TAIL. Set *HEAD and *TAIL to the result. */ | 20418 | with head *HEAD and tail *TAIL. Set *HEAD and *TAIL to the result. */ |
| 20419 | 20419 | ||
| 20420 | static INLINE void | 20420 | static inline void |
| 20421 | append_glyph_string_lists (struct glyph_string **head, struct glyph_string **tail, | 20421 | append_glyph_string_lists (struct glyph_string **head, struct glyph_string **tail, |
| 20422 | struct glyph_string *h, struct glyph_string *t) | 20422 | struct glyph_string *h, struct glyph_string *t) |
| 20423 | { | 20423 | { |
| @@ -20437,7 +20437,7 @@ append_glyph_string_lists (struct glyph_string **head, struct glyph_string **tai | |||
| 20437 | list with head *HEAD and tail *TAIL. Set *HEAD and *TAIL to the | 20437 | list with head *HEAD and tail *TAIL. Set *HEAD and *TAIL to the |
| 20438 | result. */ | 20438 | result. */ |
| 20439 | 20439 | ||
| 20440 | static INLINE void | 20440 | static inline void |
| 20441 | prepend_glyph_string_lists (struct glyph_string **head, struct glyph_string **tail, | 20441 | prepend_glyph_string_lists (struct glyph_string **head, struct glyph_string **tail, |
| 20442 | struct glyph_string *h, struct glyph_string *t) | 20442 | struct glyph_string *h, struct glyph_string *t) |
| 20443 | { | 20443 | { |
| @@ -20456,7 +20456,7 @@ prepend_glyph_string_lists (struct glyph_string **head, struct glyph_string **ta | |||
| 20456 | /* Append glyph string S to the list with head *HEAD and tail *TAIL. | 20456 | /* Append glyph string S to the list with head *HEAD and tail *TAIL. |
| 20457 | Set *HEAD and *TAIL to the resulting list. */ | 20457 | Set *HEAD and *TAIL to the resulting list. */ |
| 20458 | 20458 | ||
| 20459 | static INLINE void | 20459 | static inline void |
| 20460 | append_glyph_string (struct glyph_string **head, struct glyph_string **tail, | 20460 | append_glyph_string (struct glyph_string **head, struct glyph_string **tail, |
| 20461 | struct glyph_string *s) | 20461 | struct glyph_string *s) |
| 20462 | { | 20462 | { |
| @@ -20471,7 +20471,7 @@ append_glyph_string (struct glyph_string **head, struct glyph_string **tail, | |||
| 20471 | Value is a pointer to a realized face that is ready for display if | 20471 | Value is a pointer to a realized face that is ready for display if |
| 20472 | DISPLAY_P is non-zero. */ | 20472 | DISPLAY_P is non-zero. */ |
| 20473 | 20473 | ||
| 20474 | static INLINE struct face * | 20474 | static inline struct face * |
| 20475 | get_char_face_and_encoding (struct frame *f, int c, int face_id, | 20475 | get_char_face_and_encoding (struct frame *f, int c, int face_id, |
| 20476 | XChar2b *char2b, int display_p) | 20476 | XChar2b *char2b, int display_p) |
| 20477 | { | 20477 | { |
| @@ -20504,7 +20504,7 @@ get_char_face_and_encoding (struct frame *f, int c, int face_id, | |||
| 20504 | The encoding of GLYPH->u.ch is returned in *CHAR2B. Value is | 20504 | The encoding of GLYPH->u.ch is returned in *CHAR2B. Value is |
| 20505 | a pointer to a realized face that is ready for display. */ | 20505 | a pointer to a realized face that is ready for display. */ |
| 20506 | 20506 | ||
| 20507 | static INLINE struct face * | 20507 | static inline struct face * |
| 20508 | get_glyph_face_and_encoding (struct frame *f, struct glyph *glyph, | 20508 | get_glyph_face_and_encoding (struct frame *f, struct glyph *glyph, |
| 20509 | XChar2b *char2b, int *two_byte_p) | 20509 | XChar2b *char2b, int *two_byte_p) |
| 20510 | { | 20510 | { |
| @@ -20541,7 +20541,7 @@ get_glyph_face_and_encoding (struct frame *f, struct glyph *glyph, | |||
| 20541 | /* Get glyph code of character C in FONT in the two-byte form CHAR2B. | 20541 | /* Get glyph code of character C in FONT in the two-byte form CHAR2B. |
| 20542 | Retunr 1 if FONT has a glyph for C, otherwise return 0. */ | 20542 | Retunr 1 if FONT has a glyph for C, otherwise return 0. */ |
| 20543 | 20543 | ||
| 20544 | static INLINE int | 20544 | static inline int |
| 20545 | get_char_glyph_code (int c, struct font *font, XChar2b *char2b) | 20545 | get_char_glyph_code (int c, struct font *font, XChar2b *char2b) |
| 20546 | { | 20546 | { |
| 20547 | unsigned code; | 20547 | unsigned code; |
| @@ -21005,7 +21005,7 @@ right_overwriting (struct glyph_string *s) | |||
| 21005 | first glyph following S. LAST_X is the right-most x-position + 1 | 21005 | first glyph following S. LAST_X is the right-most x-position + 1 |
| 21006 | in the drawing area. */ | 21006 | in the drawing area. */ |
| 21007 | 21007 | ||
| 21008 | static INLINE void | 21008 | static inline void |
| 21009 | set_glyph_string_background_width (struct glyph_string *s, int start, int last_x) | 21009 | set_glyph_string_background_width (struct glyph_string *s, int start, int last_x) |
| 21010 | { | 21010 | { |
| 21011 | /* If the face of this glyph string has to be drawn to the end of | 21011 | /* If the face of this glyph string has to be drawn to the end of |
| @@ -21567,7 +21567,7 @@ draw_glyphs (struct window *w, int x, struct glyph_row *row, | |||
| 21567 | /* Store one glyph for IT->char_to_display in IT->glyph_row. | 21567 | /* Store one glyph for IT->char_to_display in IT->glyph_row. |
| 21568 | Called from x_produce_glyphs when IT->glyph_row is non-null. */ | 21568 | Called from x_produce_glyphs when IT->glyph_row is non-null. */ |
| 21569 | 21569 | ||
| 21570 | static INLINE void | 21570 | static inline void |
| 21571 | append_glyph (struct it *it) | 21571 | append_glyph (struct it *it) |
| 21572 | { | 21572 | { |
| 21573 | struct glyph *glyph; | 21573 | struct glyph *glyph; |
| @@ -21641,7 +21641,7 @@ append_glyph (struct it *it) | |||
| 21641 | IT->glyph_row. Called from x_produce_glyphs when IT->glyph_row is | 21641 | IT->glyph_row. Called from x_produce_glyphs when IT->glyph_row is |
| 21642 | non-null. */ | 21642 | non-null. */ |
| 21643 | 21643 | ||
| 21644 | static INLINE void | 21644 | static inline void |
| 21645 | append_composite_glyph (struct it *it) | 21645 | append_composite_glyph (struct it *it) |
| 21646 | { | 21646 | { |
| 21647 | struct glyph *glyph; | 21647 | struct glyph *glyph; |
| @@ -21710,7 +21710,7 @@ append_composite_glyph (struct it *it) | |||
| 21710 | /* Change IT->ascent and IT->height according to the setting of | 21710 | /* Change IT->ascent and IT->height according to the setting of |
| 21711 | IT->voffset. */ | 21711 | IT->voffset. */ |
| 21712 | 21712 | ||
| 21713 | static INLINE void | 21713 | static inline void |
| 21714 | take_vertical_position_into_account (struct it *it) | 21714 | take_vertical_position_into_account (struct it *it) |
| 21715 | { | 21715 | { |
| 21716 | if (it->voffset) | 21716 | if (it->voffset) |
diff --git a/src/xfaces.c b/src/xfaces.c index a26289e8a88..b14710245b1 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -646,7 +646,7 @@ x_free_dpy_colors (Display *dpy, Screen *screen, Colormap cmap, long unsigned in | |||
| 646 | /* Create and return a GC for use on frame F. GC values and mask | 646 | /* Create and return a GC for use on frame F. GC values and mask |
| 647 | are given by XGCV and MASK. */ | 647 | are given by XGCV and MASK. */ |
| 648 | 648 | ||
| 649 | static INLINE GC | 649 | static inline GC |
| 650 | x_create_gc (struct frame *f, long unsigned int mask, XGCValues *xgcv) | 650 | x_create_gc (struct frame *f, long unsigned int mask, XGCValues *xgcv) |
| 651 | { | 651 | { |
| 652 | GC gc; | 652 | GC gc; |
| @@ -660,7 +660,7 @@ x_create_gc (struct frame *f, long unsigned int mask, XGCValues *xgcv) | |||
| 660 | 660 | ||
| 661 | /* Free GC which was used on frame F. */ | 661 | /* Free GC which was used on frame F. */ |
| 662 | 662 | ||
| 663 | static INLINE void | 663 | static inline void |
| 664 | x_free_gc (struct frame *f, GC gc) | 664 | x_free_gc (struct frame *f, GC gc) |
| 665 | { | 665 | { |
| 666 | eassert (interrupt_input_blocked); | 666 | eassert (interrupt_input_blocked); |
| @@ -673,7 +673,7 @@ x_free_gc (struct frame *f, GC gc) | |||
| 673 | #ifdef WINDOWSNT | 673 | #ifdef WINDOWSNT |
| 674 | /* W32 emulation of GCs */ | 674 | /* W32 emulation of GCs */ |
| 675 | 675 | ||
| 676 | static INLINE GC | 676 | static inline GC |
| 677 | x_create_gc (struct frame *f, unsigned long mask, XGCValues *xgcv) | 677 | x_create_gc (struct frame *f, unsigned long mask, XGCValues *xgcv) |
| 678 | { | 678 | { |
| 679 | GC gc; | 679 | GC gc; |
| @@ -687,7 +687,7 @@ x_create_gc (struct frame *f, unsigned long mask, XGCValues *xgcv) | |||
| 687 | 687 | ||
| 688 | /* Free GC which was used on frame F. */ | 688 | /* Free GC which was used on frame F. */ |
| 689 | 689 | ||
| 690 | static INLINE void | 690 | static inline void |
| 691 | x_free_gc (struct frame *f, GC gc) | 691 | x_free_gc (struct frame *f, GC gc) |
| 692 | { | 692 | { |
| 693 | IF_DEBUG (xassert (--ngcs >= 0)); | 693 | IF_DEBUG (xassert (--ngcs >= 0)); |
| @@ -699,7 +699,7 @@ x_free_gc (struct frame *f, GC gc) | |||
| 699 | #ifdef HAVE_NS | 699 | #ifdef HAVE_NS |
| 700 | /* NS emulation of GCs */ | 700 | /* NS emulation of GCs */ |
| 701 | 701 | ||
| 702 | static INLINE GC | 702 | static inline GC |
| 703 | x_create_gc (struct frame *f, | 703 | x_create_gc (struct frame *f, |
| 704 | unsigned long mask, | 704 | unsigned long mask, |
| 705 | XGCValues *xgcv) | 705 | XGCValues *xgcv) |
| @@ -710,7 +710,7 @@ x_create_gc (struct frame *f, | |||
| 710 | return gc; | 710 | return gc; |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | static INLINE void | 713 | static inline void |
| 714 | x_free_gc (struct frame *f, GC gc) | 714 | x_free_gc (struct frame *f, GC gc) |
| 715 | { | 715 | { |
| 716 | xfree (gc); | 716 | xfree (gc); |
| @@ -746,7 +746,7 @@ xstrcasecmp (const char *s1, const char *s2) | |||
| 746 | CHECK_LIVE_FRAME. This is here because it's a frequent pattern in | 746 | CHECK_LIVE_FRAME. This is here because it's a frequent pattern in |
| 747 | Lisp function definitions. */ | 747 | Lisp function definitions. */ |
| 748 | 748 | ||
| 749 | static INLINE struct frame * | 749 | static inline struct frame * |
| 750 | frame_or_selected_frame (Lisp_Object frame, int nparam) | 750 | frame_or_selected_frame (Lisp_Object frame, int nparam) |
| 751 | { | 751 | { |
| 752 | if (NILP (frame)) | 752 | if (NILP (frame)) |
| @@ -1976,7 +1976,7 @@ struct named_merge_point | |||
| 1976 | FACE_NAME and NAMED_MERGE_POINT_KIND, as the head of the linked list | 1976 | FACE_NAME and NAMED_MERGE_POINT_KIND, as the head of the linked list |
| 1977 | pointed to by NAMED_MERGE_POINTS, and return 1. */ | 1977 | pointed to by NAMED_MERGE_POINTS, and return 1. */ |
| 1978 | 1978 | ||
| 1979 | static INLINE int | 1979 | static inline int |
| 1980 | push_named_merge_point (struct named_merge_point *new_named_merge_point, | 1980 | push_named_merge_point (struct named_merge_point *new_named_merge_point, |
| 1981 | Lisp_Object face_name, | 1981 | Lisp_Object face_name, |
| 1982 | enum named_merge_point_kind named_merge_point_kind, | 1982 | enum named_merge_point_kind named_merge_point_kind, |
| @@ -2078,7 +2078,7 @@ resolve_face_name (Lisp_Object face_name, int signal_p) | |||
| 2078 | face text properties; Ediff uses that). If SIGNAL_P is non-zero, | 2078 | face text properties; Ediff uses that). If SIGNAL_P is non-zero, |
| 2079 | signal an error if FACE_NAME is not a valid face name. If SIGNAL_P | 2079 | signal an error if FACE_NAME is not a valid face name. If SIGNAL_P |
| 2080 | is zero, value is nil if FACE_NAME is not a valid face name. */ | 2080 | is zero, value is nil if FACE_NAME is not a valid face name. */ |
| 2081 | static INLINE Lisp_Object | 2081 | static inline Lisp_Object |
| 2082 | lface_from_face_name_no_resolve (struct frame *f, Lisp_Object face_name, int signal_p) | 2082 | lface_from_face_name_no_resolve (struct frame *f, Lisp_Object face_name, int signal_p) |
| 2083 | { | 2083 | { |
| 2084 | Lisp_Object lface; | 2084 | Lisp_Object lface; |
| @@ -2106,7 +2106,7 @@ lface_from_face_name_no_resolve (struct frame *f, Lisp_Object face_name, int sig | |||
| 2106 | non-zero, signal an error if FACE_NAME is not a valid face name. | 2106 | non-zero, signal an error if FACE_NAME is not a valid face name. |
| 2107 | If SIGNAL_P is zero, value is nil if FACE_NAME is not a valid face | 2107 | If SIGNAL_P is zero, value is nil if FACE_NAME is not a valid face |
| 2108 | name. */ | 2108 | name. */ |
| 2109 | static INLINE Lisp_Object | 2109 | static inline Lisp_Object |
| 2110 | lface_from_face_name (struct frame *f, Lisp_Object face_name, int signal_p) | 2110 | lface_from_face_name (struct frame *f, Lisp_Object face_name, int signal_p) |
| 2111 | { | 2111 | { |
| 2112 | face_name = resolve_face_name (face_name, signal_p); | 2112 | face_name = resolve_face_name (face_name, signal_p); |
| @@ -2120,7 +2120,7 @@ lface_from_face_name (struct frame *f, Lisp_Object face_name, int signal_p) | |||
| 2120 | is non-zero, signal an error if FACE_NAME does not name a face. | 2120 | is non-zero, signal an error if FACE_NAME does not name a face. |
| 2121 | Otherwise, value is zero if FACE_NAME is not a face. */ | 2121 | Otherwise, value is zero if FACE_NAME is not a face. */ |
| 2122 | 2122 | ||
| 2123 | static INLINE int | 2123 | static inline int |
| 2124 | get_lface_attributes_no_remap (struct frame *f, Lisp_Object face_name, Lisp_Object *attrs, int signal_p) | 2124 | get_lface_attributes_no_remap (struct frame *f, Lisp_Object face_name, Lisp_Object *attrs, int signal_p) |
| 2125 | { | 2125 | { |
| 2126 | Lisp_Object lface; | 2126 | Lisp_Object lface; |
| @@ -2141,7 +2141,7 @@ get_lface_attributes_no_remap (struct frame *f, Lisp_Object face_name, Lisp_Obje | |||
| 2141 | non-zero, signal an error if FACE_NAME does not name a face. | 2141 | non-zero, signal an error if FACE_NAME does not name a face. |
| 2142 | Otherwise, value is zero if FACE_NAME is not a face. */ | 2142 | Otherwise, value is zero if FACE_NAME is not a face. */ |
| 2143 | 2143 | ||
| 2144 | static INLINE int | 2144 | static inline int |
| 2145 | get_lface_attributes (struct frame *f, Lisp_Object face_name, Lisp_Object *attrs, int signal_p, struct named_merge_point *named_merge_points) | 2145 | get_lface_attributes (struct frame *f, Lisp_Object face_name, Lisp_Object *attrs, int signal_p, struct named_merge_point *named_merge_points) |
| 2146 | { | 2146 | { |
| 2147 | Lisp_Object face_remapping; | 2147 | Lisp_Object face_remapping; |
| @@ -2307,7 +2307,7 @@ merge_face_heights (Lisp_Object from, Lisp_Object to, Lisp_Object invalid) | |||
| 2307 | loops in face inheritance/remapping; it should be 0 when called from | 2307 | loops in face inheritance/remapping; it should be 0 when called from |
| 2308 | other places. */ | 2308 | other places. */ |
| 2309 | 2309 | ||
| 2310 | static INLINE void | 2310 | static inline void |
| 2311 | merge_face_vectors (struct frame *f, Lisp_Object *from, Lisp_Object *to, struct named_merge_point *named_merge_points) | 2311 | merge_face_vectors (struct frame *f, Lisp_Object *from, Lisp_Object *to, struct named_merge_point *named_merge_points) |
| 2312 | { | 2312 | { |
| 2313 | int i; | 2313 | int i; |
| @@ -3903,7 +3903,7 @@ return the font name used for CHARACTER. */) | |||
| 3903 | all attributes are `equal'. Tries to be fast because this function | 3903 | all attributes are `equal'. Tries to be fast because this function |
| 3904 | is called quite often. */ | 3904 | is called quite often. */ |
| 3905 | 3905 | ||
| 3906 | static INLINE int | 3906 | static inline int |
| 3907 | face_attr_equal_p (Lisp_Object v1, Lisp_Object v2) | 3907 | face_attr_equal_p (Lisp_Object v1, Lisp_Object v2) |
| 3908 | { | 3908 | { |
| 3909 | /* Type can differ, e.g. when one attribute is unspecified, i.e. nil, | 3909 | /* Type can differ, e.g. when one attribute is unspecified, i.e. nil, |
| @@ -3936,7 +3936,7 @@ face_attr_equal_p (Lisp_Object v1, Lisp_Object v2) | |||
| 3936 | all attributes are `equal'. Tries to be fast because this function | 3936 | all attributes are `equal'. Tries to be fast because this function |
| 3937 | is called quite often. */ | 3937 | is called quite often. */ |
| 3938 | 3938 | ||
| 3939 | static INLINE int | 3939 | static inline int |
| 3940 | lface_equal_p (Lisp_Object *v1, Lisp_Object *v2) | 3940 | lface_equal_p (Lisp_Object *v1, Lisp_Object *v2) |
| 3941 | { | 3941 | { |
| 3942 | int i, equal_p = 1; | 3942 | int i, equal_p = 1; |
| @@ -4021,7 +4021,7 @@ For internal use only. */) | |||
| 4021 | /* Return a hash code for Lisp string STRING with case ignored. Used | 4021 | /* Return a hash code for Lisp string STRING with case ignored. Used |
| 4022 | below in computing a hash value for a Lisp face. */ | 4022 | below in computing a hash value for a Lisp face. */ |
| 4023 | 4023 | ||
| 4024 | static INLINE unsigned | 4024 | static inline unsigned |
| 4025 | hash_string_case_insensitive (Lisp_Object string) | 4025 | hash_string_case_insensitive (Lisp_Object string) |
| 4026 | { | 4026 | { |
| 4027 | const unsigned char *s; | 4027 | const unsigned char *s; |
| @@ -4035,7 +4035,7 @@ hash_string_case_insensitive (Lisp_Object string) | |||
| 4035 | 4035 | ||
| 4036 | /* Return a hash code for face attribute vector V. */ | 4036 | /* Return a hash code for face attribute vector V. */ |
| 4037 | 4037 | ||
| 4038 | static INLINE unsigned | 4038 | static inline unsigned |
| 4039 | lface_hash (Lisp_Object *v) | 4039 | lface_hash (Lisp_Object *v) |
| 4040 | { | 4040 | { |
| 4041 | return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX]) | 4041 | return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX]) |
| @@ -4054,7 +4054,7 @@ lface_hash (Lisp_Object *v) | |||
| 4054 | family, point size, weight, width, slant, and font. Both | 4054 | family, point size, weight, width, slant, and font. Both |
| 4055 | LFACE1 and LFACE2 must be fully-specified. */ | 4055 | LFACE1 and LFACE2 must be fully-specified. */ |
| 4056 | 4056 | ||
| 4057 | static INLINE int | 4057 | static inline int |
| 4058 | lface_same_font_attributes_p (Lisp_Object *lface1, Lisp_Object *lface2) | 4058 | lface_same_font_attributes_p (Lisp_Object *lface1, Lisp_Object *lface2) |
| 4059 | { | 4059 | { |
| 4060 | xassert (lface_fully_specified_p (lface1) | 4060 | xassert (lface_fully_specified_p (lface1) |
| @@ -4460,7 +4460,7 @@ uncache_face (struct face_cache *c, struct face *face) | |||
| 4460 | Value is the ID of the face found. If no suitable face is found, | 4460 | Value is the ID of the face found. If no suitable face is found, |
| 4461 | realize a new one. */ | 4461 | realize a new one. */ |
| 4462 | 4462 | ||
| 4463 | static INLINE int | 4463 | static inline int |
| 4464 | lookup_face (struct frame *f, Lisp_Object *attr) | 4464 | lookup_face (struct frame *f, Lisp_Object *attr) |
| 4465 | { | 4465 | { |
| 4466 | struct face_cache *cache = FRAME_FACE_CACHE (f); | 4466 | struct face_cache *cache = FRAME_FACE_CACHE (f); |
diff --git a/src/xterm.c b/src/xterm.c index 56d2ce0e9e5..d6d6457f522 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1010,7 +1010,7 @@ x_set_mouse_face_gc (struct glyph_string *s) | |||
| 1010 | Faces to use in the mode line have already been computed when the | 1010 | Faces to use in the mode line have already been computed when the |
| 1011 | matrix was built, so there isn't much to do, here. */ | 1011 | matrix was built, so there isn't much to do, here. */ |
| 1012 | 1012 | ||
| 1013 | static INLINE void | 1013 | static inline void |
| 1014 | x_set_mode_line_face_gc (struct glyph_string *s) | 1014 | x_set_mode_line_face_gc (struct glyph_string *s) |
| 1015 | { | 1015 | { |
| 1016 | s->gc = s->face->gc; | 1016 | s->gc = s->face->gc; |
| @@ -1021,7 +1021,7 @@ x_set_mode_line_face_gc (struct glyph_string *s) | |||
| 1021 | S->stippled_p to a non-zero value if the face of S has a stipple | 1021 | S->stippled_p to a non-zero value if the face of S has a stipple |
| 1022 | pattern. */ | 1022 | pattern. */ |
| 1023 | 1023 | ||
| 1024 | static INLINE void | 1024 | static inline void |
| 1025 | x_set_glyph_string_gc (struct glyph_string *s) | 1025 | x_set_glyph_string_gc (struct glyph_string *s) |
| 1026 | { | 1026 | { |
| 1027 | PREPARE_FACE_FOR_DISPLAY (s->f, s->face); | 1027 | PREPARE_FACE_FOR_DISPLAY (s->f, s->face); |
| @@ -1066,7 +1066,7 @@ x_set_glyph_string_gc (struct glyph_string *s) | |||
| 1066 | /* Set clipping for output of glyph string S. S may be part of a mode | 1066 | /* Set clipping for output of glyph string S. S may be part of a mode |
| 1067 | line or menu if we don't have X toolkit support. */ | 1067 | line or menu if we don't have X toolkit support. */ |
| 1068 | 1068 | ||
| 1069 | static INLINE void | 1069 | static inline void |
| 1070 | x_set_glyph_string_clipping (struct glyph_string *s) | 1070 | x_set_glyph_string_clipping (struct glyph_string *s) |
| 1071 | { | 1071 | { |
| 1072 | XRectangle *r = s->clip; | 1072 | XRectangle *r = s->clip; |
| @@ -1139,7 +1139,7 @@ x_compute_glyph_string_overhangs (struct glyph_string *s) | |||
| 1139 | 1139 | ||
| 1140 | /* Fill rectangle X, Y, W, H with background color of glyph string S. */ | 1140 | /* Fill rectangle X, Y, W, H with background color of glyph string S. */ |
| 1141 | 1141 | ||
| 1142 | static INLINE void | 1142 | static inline void |
| 1143 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) | 1143 | x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h) |
| 1144 | { | 1144 | { |
| 1145 | XGCValues xgcv; | 1145 | XGCValues xgcv; |