diff options
| author | Paul Eggert | 2011-05-28 15:39:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-28 15:39:39 -0700 |
| commit | 55d4c1b248e84d347ae73278faff623741f52691 (patch) | |
| tree | abc6d768607b08bbf51eeb7a12cb693c4660db13 /src | |
| parent | 4ac619f07bc6d7560a04f5aa505c6ef084975d93 (diff) | |
| download | emacs-55d4c1b248e84d347ae73278faff623741f52691.tar.gz emacs-55d4c1b248e84d347ae73278faff623741f52691.zip | |
[ChangeLog]
Use 'inline', not 'INLINE'.
* configure.in, autogen/config.in (INLINE): Remove.
[lib-src/ChangeLog]
Use 'inline', not 'INLINE'.
* etags.c (hash): Now inline unconditionally.
* make-docfile.c (put_char): inline, not INLINE.
[nt/ChangeLog]
Use 'inline', not 'INLINE'.
* config.nt (INLINE): Remove.
[src/ChangeLog]
Use 'inline', not 'INLINE'.
* alloc.c, fontset.c (INLINE): Remove.
* alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c:
* intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c:
* xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline.
* gmalloc.c (register_heapinfo): Use inline unconditionally.
* lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/alloc.c | 26 | ||||
| -rw-r--r-- | src/bidi.c | 34 | ||||
| -rw-r--r-- | src/charset.c | 2 | ||||
| -rw-r--r-- | src/coding.c | 18 | ||||
| -rw-r--r-- | src/dispnew.c | 14 | ||||
| -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/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 |
20 files changed, 124 insertions, 125 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1546348bfbf..f31e68e9b7b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2011-05-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Use 'inline', not 'INLINE'. | ||
| 4 | * alloc.c, fontset.c (INLINE): Remove. | ||
| 5 | * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: | ||
| 6 | * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: | ||
| 7 | * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. | ||
| 8 | * gmalloc.c (register_heapinfo): Use inline unconditionally. | ||
| 9 | * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__. | ||
| 10 | |||
| 1 | 2011-05-28 William Xu <william.xwl@gmail.com> | 11 | 2011-05-28 William Xu <william.xwl@gmail.com> |
| 2 | 12 | ||
| 3 | * nsterm.m (ns_term_shutdown): Synchronize user defaults before | 13 | * nsterm.m (ns_term_shutdown): Synchronize user defaults before |
diff --git a/src/alloc.c b/src/alloc.c index 3f7bed571c7..f62ae125408 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 |
| @@ -3376,7 +3372,7 @@ mem_init (void) | |||
| 3376 | /* Value is a pointer to the mem_node containing START. Value is | 3372 | /* Value is a pointer to the mem_node containing START. Value is |
| 3377 | MEM_NIL if there is no node in the tree containing START. */ | 3373 | MEM_NIL if there is no node in the tree containing START. */ |
| 3378 | 3374 | ||
| 3379 | static INLINE struct mem_node * | 3375 | static inline struct mem_node * |
| 3380 | mem_find (void *start) | 3376 | mem_find (void *start) |
| 3381 | { | 3377 | { |
| 3382 | struct mem_node *p; | 3378 | struct mem_node *p; |
| @@ -3752,7 +3748,7 @@ mem_delete_fixup (struct mem_node *x) | |||
| 3752 | /* Value is non-zero if P is a pointer to a live Lisp string on | 3748 | /* Value is non-zero if P is a pointer to a live Lisp string on |
| 3753 | the heap. M is a pointer to the mem_block for P. */ | 3749 | the heap. M is a pointer to the mem_block for P. */ |
| 3754 | 3750 | ||
| 3755 | static INLINE int | 3751 | static inline int |
| 3756 | live_string_p (struct mem_node *m, void *p) | 3752 | live_string_p (struct mem_node *m, void *p) |
| 3757 | { | 3753 | { |
| 3758 | if (m->type == MEM_TYPE_STRING) | 3754 | if (m->type == MEM_TYPE_STRING) |
| @@ -3775,7 +3771,7 @@ live_string_p (struct mem_node *m, void *p) | |||
| 3775 | /* Value is non-zero if P is a pointer to a live Lisp cons on | 3771 | /* Value is non-zero if P is a pointer to a live Lisp cons on |
| 3776 | the heap. M is a pointer to the mem_block for P. */ | 3772 | the heap. M is a pointer to the mem_block for P. */ |
| 3777 | 3773 | ||
| 3778 | static INLINE int | 3774 | static inline int |
| 3779 | live_cons_p (struct mem_node *m, void *p) | 3775 | live_cons_p (struct mem_node *m, void *p) |
| 3780 | { | 3776 | { |
| 3781 | if (m->type == MEM_TYPE_CONS) | 3777 | if (m->type == MEM_TYPE_CONS) |
| @@ -3801,7 +3797,7 @@ live_cons_p (struct mem_node *m, void *p) | |||
| 3801 | /* Value is non-zero if P is a pointer to a live Lisp symbol on | 3797 | /* Value is non-zero if P is a pointer to a live Lisp symbol on |
| 3802 | the heap. M is a pointer to the mem_block for P. */ | 3798 | the heap. M is a pointer to the mem_block for P. */ |
| 3803 | 3799 | ||
| 3804 | static INLINE int | 3800 | static inline int |
| 3805 | live_symbol_p (struct mem_node *m, void *p) | 3801 | live_symbol_p (struct mem_node *m, void *p) |
| 3806 | { | 3802 | { |
| 3807 | if (m->type == MEM_TYPE_SYMBOL) | 3803 | if (m->type == MEM_TYPE_SYMBOL) |
| @@ -3827,7 +3823,7 @@ live_symbol_p (struct mem_node *m, void *p) | |||
| 3827 | /* Value is non-zero if P is a pointer to a live Lisp float on | 3823 | /* Value is non-zero if P is a pointer to a live Lisp float on |
| 3828 | the heap. M is a pointer to the mem_block for P. */ | 3824 | the heap. M is a pointer to the mem_block for P. */ |
| 3829 | 3825 | ||
| 3830 | static INLINE int | 3826 | static inline int |
| 3831 | live_float_p (struct mem_node *m, void *p) | 3827 | live_float_p (struct mem_node *m, void *p) |
| 3832 | { | 3828 | { |
| 3833 | if (m->type == MEM_TYPE_FLOAT) | 3829 | if (m->type == MEM_TYPE_FLOAT) |
| @@ -3851,7 +3847,7 @@ live_float_p (struct mem_node *m, void *p) | |||
| 3851 | /* Value is non-zero if P is a pointer to a live Lisp Misc on | 3847 | /* Value is non-zero if P is a pointer to a live Lisp Misc on |
| 3852 | the heap. M is a pointer to the mem_block for P. */ | 3848 | the heap. M is a pointer to the mem_block for P. */ |
| 3853 | 3849 | ||
| 3854 | static INLINE int | 3850 | static inline int |
| 3855 | live_misc_p (struct mem_node *m, void *p) | 3851 | live_misc_p (struct mem_node *m, void *p) |
| 3856 | { | 3852 | { |
| 3857 | if (m->type == MEM_TYPE_MISC) | 3853 | if (m->type == MEM_TYPE_MISC) |
| @@ -3877,7 +3873,7 @@ live_misc_p (struct mem_node *m, void *p) | |||
| 3877 | /* Value is non-zero if P is a pointer to a live vector-like object. | 3873 | /* Value is non-zero if P is a pointer to a live vector-like object. |
| 3878 | M is a pointer to the mem_block for P. */ | 3874 | M is a pointer to the mem_block for P. */ |
| 3879 | 3875 | ||
| 3880 | static INLINE int | 3876 | static inline int |
| 3881 | live_vector_p (struct mem_node *m, void *p) | 3877 | live_vector_p (struct mem_node *m, void *p) |
| 3882 | { | 3878 | { |
| 3883 | return (p == m->start && m->type == MEM_TYPE_VECTORLIKE); | 3879 | return (p == m->start && m->type == MEM_TYPE_VECTORLIKE); |
| @@ -3887,7 +3883,7 @@ live_vector_p (struct mem_node *m, void *p) | |||
| 3887 | /* Value is non-zero if P is a pointer to a live buffer. M is a | 3883 | /* Value is non-zero if P is a pointer to a live buffer. M is a |
| 3888 | pointer to the mem_block for P. */ | 3884 | pointer to the mem_block for P. */ |
| 3889 | 3885 | ||
| 3890 | static INLINE int | 3886 | static inline int |
| 3891 | live_buffer_p (struct mem_node *m, void *p) | 3887 | live_buffer_p (struct mem_node *m, void *p) |
| 3892 | { | 3888 | { |
| 3893 | /* P must point to the start of the block, and the buffer | 3889 | /* P must point to the start of the block, and the buffer |
| @@ -3953,7 +3949,7 @@ DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", | |||
| 3953 | 3949 | ||
| 3954 | /* Mark OBJ if we can prove it's a Lisp_Object. */ | 3950 | /* Mark OBJ if we can prove it's a Lisp_Object. */ |
| 3955 | 3951 | ||
| 3956 | static INLINE void | 3952 | static inline void |
| 3957 | mark_maybe_object (Lisp_Object obj) | 3953 | mark_maybe_object (Lisp_Object obj) |
| 3958 | { | 3954 | { |
| 3959 | void *po; | 3955 | void *po; |
| @@ -4022,7 +4018,7 @@ mark_maybe_object (Lisp_Object obj) | |||
| 4022 | /* If P points to Lisp data, mark that as live if it isn't already | 4018 | /* If P points to Lisp data, mark that as live if it isn't already |
| 4023 | marked. */ | 4019 | marked. */ |
| 4024 | 4020 | ||
| 4025 | static INLINE void | 4021 | static inline void |
| 4026 | mark_maybe_pointer (void *p) | 4022 | mark_maybe_pointer (void *p) |
| 4027 | { | 4023 | { |
| 4028 | struct mem_node *m; | 4024 | 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/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 71253df6469..e257790bbef 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/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; |
| @@ -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 2562d79a782..d3702a180c6 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 6618a754145..32d6b44d76a 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/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 3b8112d972b..0923bbb717a 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; |