aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-05-28 15:39:39 -0700
committerPaul Eggert2011-05-28 15:39:39 -0700
commit55d4c1b248e84d347ae73278faff623741f52691 (patch)
treeabc6d768607b08bbf51eeb7a12cb693c4660db13 /src/alloc.c
parent4ac619f07bc6d7560a04f5aa505c6ef084975d93 (diff)
downloademacs-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.c26
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 *);
408static void mem_rotate_right (struct mem_node *); 404static void mem_rotate_right (struct mem_node *);
409static void mem_delete (struct mem_node *); 405static void mem_delete (struct mem_node *);
410static void mem_delete_fixup (struct mem_node *); 406static void mem_delete_fixup (struct mem_node *);
411static INLINE struct mem_node *mem_find (void *); 407static 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
3379static INLINE struct mem_node * 3375static inline struct mem_node *
3380mem_find (void *start) 3376mem_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
3755static INLINE int 3751static inline int
3756live_string_p (struct mem_node *m, void *p) 3752live_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
3778static INLINE int 3774static inline int
3779live_cons_p (struct mem_node *m, void *p) 3775live_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
3804static INLINE int 3800static inline int
3805live_symbol_p (struct mem_node *m, void *p) 3801live_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
3830static INLINE int 3826static inline int
3831live_float_p (struct mem_node *m, void *p) 3827live_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
3854static INLINE int 3850static inline int
3855live_misc_p (struct mem_node *m, void *p) 3851live_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
3880static INLINE int 3876static inline int
3881live_vector_p (struct mem_node *m, void *p) 3877live_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
3890static INLINE int 3886static inline int
3891live_buffer_p (struct mem_node *m, void *p) 3887live_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
3956static INLINE void 3952static inline void
3957mark_maybe_object (Lisp_Object obj) 3953mark_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
4025static INLINE void 4021static inline void
4026mark_maybe_pointer (void *p) 4022mark_maybe_pointer (void *p)
4027{ 4023{
4028 struct mem_node *m; 4024 struct mem_node *m;