comparison src/alloc.c @ 25762:515645780a5a

(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.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 19 Sep 1999 21:46:42 +0000
parents a14111a2a100
children b7aa6ac26872
comparison
equal deleted inserted replaced
25761:605bd4f82d45 25762:515645780a5a
196 int ignore_warnings; 196 int ignore_warnings;
197 197
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 *));
208 static void mark_image_cache P_ ((struct frame *)); 211 static void mark_image_cache P_ ((struct frame *));
209 #endif /* HAVE_WINDOW_SYSTEM */ 212 #endif /* HAVE_WINDOW_SYSTEM */
1748 register struct gcpro *tail; 1751 register struct gcpro *tail;
1749 register struct specbinding *bind; 1752 register struct specbinding *bind;
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;
1757 1759
1758 /* In case user calls debug_print during GC, 1760 /* In case user calls debug_print during GC,
3207 /* Free any empty string blocks further back in the chain. 3209 /* Free any empty string blocks further back in the chain.
3208 This loop will never free first_string_block, but it is very 3210 This loop will never free first_string_block, but it is very
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--;
3220 } 3222 }
3221 else 3223 else