diff src/device.c @ 3092:141c2920ea48

[xemacs-hg @ 2005-11-25 01:41:31 by crestani] Incremental Garbage Collector
author crestani
date Fri, 25 Nov 2005 01:42:08 +0000
parents facf3239ba30
children a98ca4640147 e0db3c197671
line wrap: on
line diff
--- a/src/device.c	Thu Nov 24 22:51:25 2005 +0000
+++ b/src/device.c	Fri Nov 25 01:42:08 2005 +0000
@@ -86,12 +86,26 @@
 
 
 
+#ifndef NEW_GC
 extern const struct sized_memory_description gtk_device_data_description;
 extern const struct sized_memory_description mswindows_device_data_description;
 extern const struct sized_memory_description msprinter_device_data_description;
 extern const struct sized_memory_description x_device_data_description;
+#endif /* not NEW_GC */
 
 static const struct memory_description device_data_description_1 []= {
+#ifdef NEW_GC
+#ifdef HAVE_GTK
+  { XD_LISP_OBJECT, gtk_console },
+#endif
+#ifdef HAVE_MS_WINDOWS
+  { XD_LISP_OBJECT, mswindows_console },
+  { XD_LISP_OBJECT, msprinter_console },
+#endif
+#ifdef HAVE_X_WINDOWS
+  { XD_LISP_OBJECT, x_console },
+#endif
+#else /* not NEW_GC */
 #ifdef HAVE_GTK
   { XD_BLOCK_PTR, gtk_console, 1, { &gtk_device_data_description} },
 #endif
@@ -102,6 +116,7 @@
 #ifdef HAVE_X_WINDOWS
   { XD_BLOCK_PTR, x_console, 1, { &x_device_data_description} },
 #endif
+#endif /* not NEW_GC */
   { XD_END }
 };