aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorStefan Monnier2003-06-15 21:49:23 +0000
committerStefan Monnier2003-06-15 21:49:23 +0000
commit6793bc632203b11d4d869b9ab89e323f915a2944 (patch)
tree240ed435957db05286fb4fa49519c6a2111e9257 /src/alloc.c
parent1269a76123e137f23bfed176b58254f8d8bd9aeb (diff)
downloademacs-6793bc632203b11d4d869b9ab89e323f915a2944.tar.gz
emacs-6793bc632203b11d4d869b9ab89e323f915a2944.zip
(mark_kboards): Move to keyboard.c.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 391d63691c6..53513a722b9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -249,7 +249,7 @@ Lisp_Object Vgc_elapsed; /* accumulated elapsed time in GC */
249EMACS_INT gcs_done; /* accumulated GCs */ 249EMACS_INT gcs_done; /* accumulated GCs */
250 250
251static void mark_buffer P_ ((Lisp_Object)); 251static void mark_buffer P_ ((Lisp_Object));
252static void mark_kboards P_ ((void)); 252extern void mark_kboards P_ ((void));
253static void gc_sweep P_ ((void)); 253static void gc_sweep P_ ((void));
254static void mark_glyph_matrix P_ ((struct glyph_matrix *)); 254static void mark_glyph_matrix P_ ((struct glyph_matrix *));
255static void mark_face_cache P_ ((struct face_cache *)); 255static void mark_face_cache P_ ((struct face_cache *));
@@ -4964,34 +4964,6 @@ mark_buffer (buf)
4964} 4964}
4965 4965
4966 4966
4967/* Mark the pointers in the kboard objects. */
4968
4969static void
4970mark_kboards ()
4971{
4972 KBOARD *kb;
4973 Lisp_Object *p;
4974 for (kb = all_kboards; kb; kb = kb->next_kboard)
4975 {
4976 if (kb->kbd_macro_buffer)
4977 for (p = kb->kbd_macro_buffer; p < kb->kbd_macro_ptr; p++)
4978 mark_object (p);
4979 mark_object (&kb->Voverriding_terminal_local_map);
4980 mark_object (&kb->Vlast_command);
4981 mark_object (&kb->Vreal_last_command);
4982 mark_object (&kb->Vprefix_arg);
4983 mark_object (&kb->Vlast_prefix_arg);
4984 mark_object (&kb->kbd_queue);
4985 mark_object (&kb->defining_kbd_macro);
4986 mark_object (&kb->Vlast_kbd_macro);
4987 mark_object (&kb->Vsystem_key_alist);
4988 mark_object (&kb->system_key_syms);
4989 mark_object (&kb->Vdefault_minibuffer_frame);
4990 mark_object (&kb->echo_string);
4991 }
4992}
4993
4994
4995/* Value is non-zero if OBJ will survive the current GC because it's 4967/* Value is non-zero if OBJ will survive the current GC because it's
4996 either marked or does not need to be marked to survive. */ 4968 either marked or does not need to be marked to survive. */
4997 4969