Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
3091:c22d8984148c | 3092:141c2920ea48 |
---|---|
84 Lisp_Object Qdelete_device_hook; | 84 Lisp_Object Qdelete_device_hook; |
85 Lisp_Object Vdevice_class_list; | 85 Lisp_Object Vdevice_class_list; |
86 | 86 |
87 | 87 |
88 | 88 |
89 #ifndef NEW_GC | |
89 extern const struct sized_memory_description gtk_device_data_description; | 90 extern const struct sized_memory_description gtk_device_data_description; |
90 extern const struct sized_memory_description mswindows_device_data_description; | 91 extern const struct sized_memory_description mswindows_device_data_description; |
91 extern const struct sized_memory_description msprinter_device_data_description; | 92 extern const struct sized_memory_description msprinter_device_data_description; |
92 extern const struct sized_memory_description x_device_data_description; | 93 extern const struct sized_memory_description x_device_data_description; |
94 #endif /* not NEW_GC */ | |
93 | 95 |
94 static const struct memory_description device_data_description_1 []= { | 96 static const struct memory_description device_data_description_1 []= { |
97 #ifdef NEW_GC | |
98 #ifdef HAVE_GTK | |
99 { XD_LISP_OBJECT, gtk_console }, | |
100 #endif | |
101 #ifdef HAVE_MS_WINDOWS | |
102 { XD_LISP_OBJECT, mswindows_console }, | |
103 { XD_LISP_OBJECT, msprinter_console }, | |
104 #endif | |
105 #ifdef HAVE_X_WINDOWS | |
106 { XD_LISP_OBJECT, x_console }, | |
107 #endif | |
108 #else /* not NEW_GC */ | |
95 #ifdef HAVE_GTK | 109 #ifdef HAVE_GTK |
96 { XD_BLOCK_PTR, gtk_console, 1, { >k_device_data_description} }, | 110 { XD_BLOCK_PTR, gtk_console, 1, { >k_device_data_description} }, |
97 #endif | 111 #endif |
98 #ifdef HAVE_MS_WINDOWS | 112 #ifdef HAVE_MS_WINDOWS |
99 { XD_BLOCK_PTR, mswindows_console, 1, { &mswindows_device_data_description} }, | 113 { XD_BLOCK_PTR, mswindows_console, 1, { &mswindows_device_data_description} }, |
100 { XD_BLOCK_PTR, msprinter_console, 1, { &msprinter_device_data_description} }, | 114 { XD_BLOCK_PTR, msprinter_console, 1, { &msprinter_device_data_description} }, |
101 #endif | 115 #endif |
102 #ifdef HAVE_X_WINDOWS | 116 #ifdef HAVE_X_WINDOWS |
103 { XD_BLOCK_PTR, x_console, 1, { &x_device_data_description} }, | 117 { XD_BLOCK_PTR, x_console, 1, { &x_device_data_description} }, |
104 #endif | 118 #endif |
119 #endif /* not NEW_GC */ | |
105 { XD_END } | 120 { XD_END } |
106 }; | 121 }; |
107 | 122 |
108 static const struct sized_memory_description device_data_description = { | 123 static const struct sized_memory_description device_data_description = { |
109 sizeof (void *), device_data_description_1 | 124 sizeof (void *), device_data_description_1 |