diff options
| author | Paul Eggert | 2011-10-29 10:25:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-10-29 10:25:44 -0700 |
| commit | 196e41e4aec1a44ec5b6e9bed485185ba872ae67 (patch) | |
| tree | 26716d36f6e3e430393dce221fda3b5b03df34b3 /src/alloc.c | |
| parent | 021f2e1a47272350a4ab4f1a67baa32e1b41b68e (diff) | |
| download | emacs-196e41e4aec1a44ec5b6e9bed485185ba872ae67.tar.gz emacs-196e41e4aec1a44ec5b6e9bed485185ba872ae67.zip | |
* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,
so that this new function doesn't get optimized away by a
whole-program optimizer. Make the 2nd arg EMACS_INT, not int.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index ac5da1c2fa1..210dd7d1687 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -279,6 +279,7 @@ static void compact_small_strings (void); | |||
| 279 | static void free_large_strings (void); | 279 | static void free_large_strings (void); |
| 280 | static void sweep_strings (void); | 280 | static void sweep_strings (void); |
| 281 | static void free_misc (Lisp_Object); | 281 | static void free_misc (Lisp_Object); |
| 282 | extern Lisp_Object which_symbols (Lisp_Object, EMACS_INT) EXTERNALLY_VISIBLE; | ||
| 282 | 283 | ||
| 283 | /* When scanning the C stack for live Lisp objects, Emacs keeps track | 284 | /* When scanning the C stack for live Lisp objects, Emacs keeps track |
| 284 | of what memory allocated via lisp_malloc is intended for what | 285 | of what memory allocated via lisp_malloc is intended for what |
| @@ -6254,7 +6255,7 @@ Frames, windows, buffers, and subprocesses count as vectors | |||
| 6254 | function. This is used in gdbinit's `xwhichsymbols' command. */ | 6255 | function. This is used in gdbinit's `xwhichsymbols' command. */ |
| 6255 | 6256 | ||
| 6256 | Lisp_Object | 6257 | Lisp_Object |
| 6257 | which_symbols (Lisp_Object obj, int find_max) | 6258 | which_symbols (Lisp_Object obj, EMACS_INT find_max) |
| 6258 | { | 6259 | { |
| 6259 | struct symbol_block *sblk; | 6260 | struct symbol_block *sblk; |
| 6260 | int gc_count = inhibit_garbage_collection (); | 6261 | int gc_count = inhibit_garbage_collection (); |