diff src/gc.c @ 4124:9a633a00c3f2

[xemacs-hg @ 2007-08-17 08:08:05 by crestani] 2007-08-15 Marcus Crestani <crestani@xemacs.org> * database.c (dbm_map): Add typecast. * database.c (dbm_get): Add typecast. * gc.c (gc_state_type): Declare type. * objects-tty.c (tty_find_charset_font): Add typecast. * objects-xlike-inc.c (count_hyphens): Add typecast. * objects-xlike-inc.c (endif): Add typecast.
author crestani
date Fri, 17 Aug 2007 08:08:10 +0000
parents 6595286b4bed
children 8748a3f7ceb4
line wrap: on
line diff
--- a/src/gc.c	Fri Aug 17 08:04:28 2007 +0000
+++ b/src/gc.c	Fri Aug 17 08:08:10 2007 +0000
@@ -107,10 +107,10 @@
 };
 
 #ifndef ERROR_CHECK_GC
-struct
+typedef struct gc_state_type
 {
   enum gc_phase phase;
-} gc_state;
+} gc_state_type;
 #else /* ERROR_CHECK_GC */
 enum gc_stat_id
 {
@@ -122,7 +122,7 @@
   GC_STAT_COUNT /* has to be last */
 };
 
-struct
+typedef struct gc_state_type
 {
   enum gc_phase phase;
   double n_gc[GC_STAT_COUNT];
@@ -134,9 +134,11 @@
   double dequeued2[GC_STAT_COUNT];
   double finalized[GC_STAT_COUNT];
   double freed[GC_STAT_COUNT];
-} gc_state;
+} gc_state_type;
 #endif /* ERROR_CHECK_GC */
 
+gc_state_type gc_state;
+
 #define GC_PHASE gc_state.phase
 #define GC_SET_PHASE(p) GC_PHASE = p