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/alloc.c | |
| 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/alloc.c')
| -rw-r--r-- | src/alloc.c | 26 |
1 files changed, 11 insertions, 15 deletions
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; |