diff options
| author | Paul Eggert | 2022-03-19 12:35:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-03-19 12:48:53 -0700 |
| commit | 495d8519ca030de4367be14f703c44855c2186dd (patch) | |
| tree | c47492854a4eb354331723ac10ade825aeb44582 /src/alloc.c | |
| parent | c386f7e825b425c9f80f8bb42ce329c127aa4d62 (diff) | |
| download | emacs-495d8519ca030de4367be14f703c44855c2186dd.tar.gz emacs-495d8519ca030de4367be14f703c44855c2186dd.zip | |
Simplify alloc.c static function decls
* src/alloc.c: Omit unnecessary static function declarations.
Don’t use ‘inline static’ as the C standard says that keyword
order is obsolescent. Anyway, no need for ‘inline’ as compilers
inline without it well enough.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/alloc.c b/src/alloc.c index b0fbc91fe50..b06dd943ba5 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -445,26 +445,11 @@ static void compact_small_strings (void); | |||
| 445 | static void free_large_strings (void); | 445 | static void free_large_strings (void); |
| 446 | extern Lisp_Object which_symbols (Lisp_Object, EMACS_INT) EXTERNALLY_VISIBLE; | 446 | extern Lisp_Object which_symbols (Lisp_Object, EMACS_INT) EXTERNALLY_VISIBLE; |
| 447 | 447 | ||
| 448 | /* Forward declare mark accessor functions: they're used all over the | 448 | static bool vector_marked_p (struct Lisp_Vector const *); |
| 449 | place. */ | 449 | static bool vectorlike_marked_p (union vectorlike_header const *); |
| 450 | 450 | static void set_vectorlike_marked (union vectorlike_header *); | |
| 451 | inline static bool vector_marked_p (const struct Lisp_Vector *v); | 451 | static bool interval_marked_p (INTERVAL); |
| 452 | inline static void set_vector_marked (struct Lisp_Vector *v); | 452 | static void set_interval_marked (INTERVAL); |
| 453 | |||
| 454 | inline static bool vectorlike_marked_p (const union vectorlike_header *v); | ||
| 455 | inline static void set_vectorlike_marked (union vectorlike_header *v); | ||
| 456 | |||
| 457 | inline static bool cons_marked_p (const struct Lisp_Cons *c); | ||
| 458 | inline static void set_cons_marked (struct Lisp_Cons *c); | ||
| 459 | |||
| 460 | inline static bool string_marked_p (const struct Lisp_String *s); | ||
| 461 | inline static void set_string_marked (struct Lisp_String *s); | ||
| 462 | |||
| 463 | inline static bool symbol_marked_p (const struct Lisp_Symbol *s); | ||
| 464 | inline static void set_symbol_marked (struct Lisp_Symbol *s); | ||
| 465 | |||
| 466 | inline static bool interval_marked_p (INTERVAL i); | ||
| 467 | inline static void set_interval_marked (INTERVAL i); | ||
| 468 | 453 | ||
| 469 | /* When scanning the C stack for live Lisp objects, Emacs keeps track of | 454 | /* When scanning the C stack for live Lisp objects, Emacs keeps track of |
| 470 | what memory allocated via lisp_malloc and lisp_align_malloc is intended | 455 | what memory allocated via lisp_malloc and lisp_align_malloc is intended |