diff options
| author | Gerd Moellmann | 1999-09-19 21:46:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-19 21:46:42 +0000 |
| commit | 96c5b0a7f97f0f25e6779ae1edd2410f5214df75 (patch) | |
| tree | d5b903164cd3c4f960f94c8d8eeea87590c6110c /src/alloc.c | |
| parent | 854f487a96a07c8fe7fbbc10184e395305d8abb1 (diff) | |
| download | emacs-96c5b0a7f97f0f25e6779ae1edd2410f5214df75.tar.gz emacs-96c5b0a7f97f0f25e6779ae1edd2410f5214df75.zip | |
(Fgarbage_collect): Remove unused variable.
(compact_strings): Add parentheses around assignments in
conditional context.
(toplevel): Put declaration of unused function clear_marks
in #if 0 like its definition.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c index 8cebe6d598a..7120cae26b6 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -198,10 +198,13 @@ int ignore_warnings; | |||
| 198 | Lisp_Object Qgc_cons_threshold, Qchar_table_extra_slots; | 198 | Lisp_Object Qgc_cons_threshold, Qchar_table_extra_slots; |
| 199 | 199 | ||
| 200 | static void mark_buffer (), mark_kboards (); | 200 | static void mark_buffer (), mark_kboards (); |
| 201 | static void clear_marks (), gc_sweep (); | 201 | static void gc_sweep (); |
| 202 | static void compact_strings (); | 202 | static void compact_strings (); |
| 203 | static void mark_glyph_matrix P_ ((struct glyph_matrix *)); | 203 | static void mark_glyph_matrix P_ ((struct glyph_matrix *)); |
| 204 | static void mark_face_cache P_ ((struct face_cache *)); | 204 | static void mark_face_cache P_ ((struct face_cache *)); |
| 205 | #if 0 | ||
| 206 | static void clear_marks (); | ||
| 207 | #endif | ||
| 205 | 208 | ||
| 206 | #ifdef HAVE_WINDOW_SYSTEM | 209 | #ifdef HAVE_WINDOW_SYSTEM |
| 207 | static void mark_image P_ ((struct image *)); | 210 | static void mark_image P_ ((struct image *)); |
| @@ -1750,7 +1753,6 @@ Garbage collection happens automatically if you cons more than\n\ | |||
| 1750 | struct catchtag *catch; | 1753 | struct catchtag *catch; |
| 1751 | struct handler *handler; | 1754 | struct handler *handler; |
| 1752 | register struct backtrace *backlist; | 1755 | register struct backtrace *backlist; |
| 1753 | register Lisp_Object tem; | ||
| 1754 | char stack_top_variable; | 1756 | char stack_top_variable; |
| 1755 | register int i; | 1757 | register int i; |
| 1756 | int message_p; | 1758 | int message_p; |
| @@ -3209,11 +3211,11 @@ compact_strings () | |||
| 3209 | unlikely that that one will become empty, so why bother checking? */ | 3211 | unlikely that that one will become empty, so why bother checking? */ |
| 3210 | 3212 | ||
| 3211 | from_sb = first_string_block; | 3213 | from_sb = first_string_block; |
| 3212 | while (to_sb = from_sb->next) | 3214 | while ((to_sb = from_sb->next) != 0) |
| 3213 | { | 3215 | { |
| 3214 | if (to_sb->pos == 0) | 3216 | if (to_sb->pos == 0) |
| 3215 | { | 3217 | { |
| 3216 | if (from_sb->next = to_sb->next) | 3218 | if ((from_sb->next = to_sb->next) != 0) |
| 3217 | from_sb->next->prev = from_sb; | 3219 | from_sb->next->prev = from_sb; |
| 3218 | lisp_free (to_sb); | 3220 | lisp_free (to_sb); |
| 3219 | n_string_blocks--; | 3221 | n_string_blocks--; |