comparison src/symsinit.h @ 4908:b3ce27ca7647

various fixes related to gtk, redisplay-xlike-inc.c -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-01 Ben Wing <ben@xemacs.org> * compiler.h: Create a USED() macro to force unused-var warnings to go away, in certain cases where it's inconvenient to do otherwise (e.g. when THIS_IS_GTK in redisplay-xlike-inc.c). * console-x.h: Remove unneeded decls, make some static. * redisplay-xlike-inc.c: * console-xlike-inc.h: New file. Include defns from redisplay-xlike-inc.c that may be useful in other XLIKE files. Correct the handling of colors and font-style setting functions in the xlike defns. Lots of fixes in the GTK-specific defns. * depend: Regenerate. * event-xlike-inc.c: * event-xlike-inc.c (USE_UNICODE_MAP): * event-xlike-inc.c (endif): * gccache-gtk.c: * gtk-glue.c (xemacs_list_to_gtklist): * gtk-glue.c (xemacs_gtklist_to_list): * gtk-glue.c (FROB): * gtk-glue.c (face_to_gc): * gtk-glue.c (face_to_style): * gtk-glue.c (gdk_event_to_emacs_event): * gtk-xemacs.h (struct _GtkXEmacs): * gtk-xemacs.h (struct _GtkXEmacsClass): * objects-xlike-inc.c: Cosmetic, comment fixes. * glyphs.c (pixmap_to_lisp_data): Unused var fixes. * gtk-glue.c: * gccache-gtk.c: * gtk-xemacs.c: * gtk-xemacs.h: * objects-xlike-inc.c: * ui-gtk.c: * ui-gtk.h: * xgccache.c: * xgccache.c (GC_CACHE_SIZE): * xgccache.h: Misc include-file fixes. * objects-xlike-inc.c (XFUN): * objects-xlike-inc.c (xlistfonts_checking_charset): Combine some ifdeffed stuff using defs in console-xlike-inc.h. * redisplay-gtk.c: * redisplay-gtk.c (THIS_IS_GTK): * redisplay-gtk.c (XLIKE_bevel_area): * redisplay-gtk.c (XLIKE_ring_bell): * redisplay-gtk.c (gdk_draw_text_image): Fix numerous compile problems. Delete gtk_output_shadows(), which mostly duplicates generic bevel_modeline(). Fix up gtk_bevel_modeline() into XLIKE_bevel_area() and make use of the style var properly to set the appropriate GTK constant. * redisplay-x.c: * redisplay-x.c (XLIKE_window_output_begin): * redisplay-x.c (XLIKE_window_output_end): * redisplay-x.c (XLIKE_bevel_area): * redisplay-x.c (x_output_shadows): * redisplay-x.c (XLIKE_ring_bell): Make x_output_shadows be static. Change the defn of various functions to look like XLIKE_foo() so it matches the calling convention elsewhere. * redisplay-xlike-inc.c: * redisplay-xlike-inc.c (NEED_GCCACHE_H): * redisplay-xlike-inc.c (XLIKE_text_width): * redisplay-xlike-inc.c (XLIKE_get_gc): * redisplay-xlike-inc.c (XLIKE_text_width_single_run): * redisplay-xlike-inc.c (XFT_FROB_LISP_COLOR): * redisplay-xlike-inc.c (XLIKE_output_xlike_pixmap): * redisplay-xlike-inc.c (XLIKE_output_pixmap): * redisplay-xlike-inc.c (XLIKE_output_vertical_divider): * redisplay-xlike-inc.c (XLIKE_flash): Lots of header fixes. Lots of stuff moved to console-xlike-inc.h. Use XFUN() to generate function names instead of directly calling XLIKE_PASTE(). Remove unnecessary prototypes. Unify calls to text_width funs. Make XLIKE_get_gc non-static since it's called from gtk. Change the color-function calls and fill-style-setting calls to match the changes in console-xlike-inc.h. Use USED() to avoid some warnings. * symsinit.h: Sort the prototypes, and add a fun `sort-symsinit' in a comment that does the sorting (using sort-regexp-fields). * symsinit.h (init_number): * sysgtk.h: New file, wraps the various GTK headers. * sysgdkx.h: New file, wraps <gtk/gdkx.h>. Keep this separate to * event-gtk.h: Delete. Combine stuff into console-gtk.h. help isolate X-specific code from GTK. * device-gtk.c: * event-gtk.c: * console-gtk.h: * frame-gtk.c: * gccache-gtk.c: * gccache-gtk.h: * glyphs-gtk.c (gtk_colorize_image_instance): * glyphs-gtk.h: * gtk-xemacs.h: * objects-gtk.c: * objects-gtk.c (MAX_FONT_COUNT): * ui-gtk.h: Use sysgtk.h or sysgdkx.h instead of directly including GTK headers. Don't include event-gtk.h.
author Ben Wing <ben@xemacs.org>
date Mon, 01 Feb 2010 02:15:28 -0600
parents b3ea9c582280
children 17362f371cc2
comparison
equal deleted inserted replaced
4907:9e7f5a77cc84 4908:b3ce27ca7647
1 /* Various initialization function prototypes. 1 /* Various initialization function prototypes.
2 Copyright (C) 1995 Board of Trustees, University of Illinois. 2 Copyright (C) 1995 Board of Trustees, University of Illinois.
3 Copyright (C) 2001, 2002 Ben Wing. 3 Copyright (C) 2001, 2002, 2010 Ben Wing.
4 4
5 This file is part of XEmacs. 5 This file is part of XEmacs.
6 6
7 XEmacs is free software; you can redistribute it and/or modify it 7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
19 the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, 19 the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor,
20 Boston, MA 02111-1301, USA. */ 20 Boston, MA 02111-1301, USA. */
21 21
22 /* Synched up with: Not in FSF. */ 22 /* Synched up with: Not in FSF. */
23 23
24 /* There is no need to put ifdefs around the prototypes here. Extra
25 prototypes won't hurt anything. */
26
24 #ifndef INCLUDED_symsinit_h_ 27 #ifndef INCLUDED_symsinit_h_
25 #define INCLUDED_symsinit_h_ 28 #define INCLUDED_symsinit_h_
26 29
27 /* Earliest environment initializations (dump-time and run-time). */ 30 /* Earliest environment initializations (dump-time and run-time). */
28 31
29 void init_win32_very_very_early (void); 32 void init_win32_very_very_early (void);
30 33
31 void init_data_very_early (void); 34 void init_data_very_early (void);
32 void init_floatfns_very_early (void); 35 void init_floatfns_very_early (void);
33 void init_free_hook (void); 36 void init_free_hook (void);
37 void init_mswindows_dde_very_early (void);
34 void init_process_times_very_early (void); 38 void init_process_times_very_early (void);
35 void init_ralloc (void); 39 void init_ralloc (void);
36 void init_signals_very_early (void); 40 void init_signals_very_early (void);
37 void init_mswindows_dde_very_early (void);
38 41
39 /* Early Lisp-engine initialization -- dump-time only for init, dump-time 42 /* Early Lisp-engine initialization -- dump-time only for init, dump-time
40 and post-pdump-load-time for reinit. We call the reinit() routine 43 and post-pdump-load-time for reinit. We call the reinit() routine
41 ourselves at post-pdump-load-time, but the init_() routine calls the 44 ourselves at post-pdump-load-time, but the init_() routine calls the
42 reinit() routine itself. (This is because sometimes the timing of when 45 reinit() routine itself. (This is because sometimes the timing of when
43 to call the routine is tricky -- the init routine might need to do some 46 to call the routine is tricky -- the init routine might need to do some
44 stuff, call the reinit() routine, and do some more stuff.) */ 47 stuff, call the reinit() routine, and do some more stuff.) */
45 48
49 void reinit_alloc_early (void);
46 void init_alloc_once_early (void); 50 void init_alloc_once_early (void);
47 void reinit_alloc_early (void); 51 void reinit_eistring_early (void);
48 void init_symbols_once_early (void); 52 void init_eistring_once_early (void);
49 void reinit_symbols_early (void); 53 void init_elhash_once_early (void);
50 void init_errors_once_early (void); 54 void init_errors_once_early (void);
51 void reinit_opaque_early (void); 55 void reinit_opaque_early (void);
52 void init_opaque_once_early (void); 56 void init_opaque_once_early (void);
53 void init_elhash_once_early (void); 57 void reinit_symbols_early (void);
54 void init_eistring_once_early (void); 58 void init_symbols_once_early (void);
55 void reinit_eistring_early (void);
56 59
57 /* Reset the Lisp engine. Called both at dump-time, run-time and 60 /* Reset the Lisp engine. Called both at dump-time, run-time and
58 run-temacs-time; at dump-time, it's called early, before any of the 61 run-temacs-time; at dump-time, it's called early, before any of the
59 vars() or complex_vars() routines. Currently does almost nothing. */ 62 vars() or complex_vars() routines. Currently does almost nothing. */
60 63
71 void syms_of_alloc (void); 74 void syms_of_alloc (void);
72 void syms_of_balloon_x (void); 75 void syms_of_balloon_x (void);
73 void syms_of_buffer (void); 76 void syms_of_buffer (void);
74 void syms_of_bytecode (void); 77 void syms_of_bytecode (void);
75 void syms_of_callint (void); 78 void syms_of_callint (void);
79 EXTERN_C void syms_of_canna_api (void);
76 void syms_of_casefiddle (void); 80 void syms_of_casefiddle (void);
77 void syms_of_casetab (void); 81 void syms_of_casetab (void);
78 void syms_of_chartab (void); 82 void syms_of_chartab (void);
79 void syms_of_cmdloop (void); 83 void syms_of_cmdloop (void);
80 void syms_of_cmds (void); 84 void syms_of_cmds (void);
83 void syms_of_console_tty (void); 87 void syms_of_console_tty (void);
84 void syms_of_data (void); 88 void syms_of_data (void);
85 void syms_of_database (void); 89 void syms_of_database (void);
86 void syms_of_debug (void); 90 void syms_of_debug (void);
87 void syms_of_device (void); 91 void syms_of_device (void);
92 void syms_of_device_gtk (void);
88 void syms_of_device_mswindows (void); 93 void syms_of_device_mswindows (void);
89 void syms_of_device_tty (void); 94 void syms_of_device_tty (void);
90 void syms_of_device_x (void); 95 void syms_of_device_x (void);
91 void syms_of_dialog (void); 96 void syms_of_dialog (void);
97 void syms_of_dialog_gtk (void);
92 void syms_of_dialog_mswindows (void); 98 void syms_of_dialog_mswindows (void);
93 void syms_of_dialog_x (void); 99 void syms_of_dialog_x (void);
94 void syms_of_dired (void); 100 void syms_of_dired (void);
95 void syms_of_dired_mswindows (void); 101 void syms_of_dired_mswindows (void);
96 void syms_of_doc (void); 102 void syms_of_doc (void);
99 EXTERN_C void syms_of_eldap (void); 105 EXTERN_C void syms_of_eldap (void);
100 void syms_of_elhash (void); 106 void syms_of_elhash (void);
101 void syms_of_emacs (void); 107 void syms_of_emacs (void);
102 void syms_of_eval (void); 108 void syms_of_eval (void);
103 void syms_of_event_Xt (void); 109 void syms_of_event_Xt (void);
110 void syms_of_event_gtk (void);
104 void syms_of_event_mswindows (void); 111 void syms_of_event_mswindows (void);
105 void syms_of_event_stream (void); 112 void syms_of_event_stream (void);
106 void syms_of_events (void); 113 void syms_of_events (void);
107 void syms_of_extents (void); 114 void syms_of_extents (void);
108 void syms_of_faces (void); 115 void syms_of_faces (void);
109 void syms_of_file_coding (void); 116 void syms_of_file_coding (void);
110 void syms_of_fileio (void); 117 void syms_of_fileio (void);
111 void syms_of_filelock (void); 118 void syms_of_filelock (void);
112 void syms_of_floatfns (void); 119 void syms_of_floatfns (void);
113 void syms_of_fns (void); 120 void syms_of_fns (void);
114 #ifdef USE_C_FONT_LOCK
115 void syms_of_font_lock (void); 121 void syms_of_font_lock (void);
116 #endif /* USE_C_FONT_LOCK */ 122 void syms_of_font_mgr (void);
117 void syms_of_frame (void); 123 void syms_of_frame (void);
124 void syms_of_frame_gtk (void);
118 void syms_of_frame_mswindows (void); 125 void syms_of_frame_mswindows (void);
119 void syms_of_frame_tty (void); 126 void syms_of_frame_tty (void);
120 void syms_of_frame_x (void); 127 void syms_of_frame_x (void);
121 void syms_of_free_hook (void); 128 void syms_of_free_hook (void);
122 void syms_of_general (void); 129 void syms_of_general (void);
123 void syms_of_glyphs (void); 130 void syms_of_glyphs (void);
124 void syms_of_glyphs_eimage (void); 131 void syms_of_glyphs_eimage (void);
132 void syms_of_glyphs_gtk (void);
125 void syms_of_glyphs_mswindows (void); 133 void syms_of_glyphs_mswindows (void);
126 void syms_of_glyphs_shared (void); 134 void syms_of_glyphs_shared (void);
127 void syms_of_glyphs_widget (void); 135 void syms_of_glyphs_widget (void);
128 void syms_of_glyphs_x (void); 136 void syms_of_glyphs_x (void);
129 void syms_of_gpmevent (void); 137 void syms_of_gpmevent (void);
130 void syms_of_gui (void); 138 void syms_of_gui (void);
139 void syms_of_gui_gtk (void);
131 void syms_of_gui_mswindows (void); 140 void syms_of_gui_mswindows (void);
132 void syms_of_gui_x (void); 141 void syms_of_gui_x (void);
133 void syms_of_gutter (void); 142 void syms_of_gutter (void);
134 void syms_of_indent (void); 143 void syms_of_indent (void);
135 void syms_of_input_method_xlib (void); 144 void syms_of_input_method_xlib (void);
138 void syms_of_intl_x (void); 147 void syms_of_intl_x (void);
139 void syms_of_keymap (void); 148 void syms_of_keymap (void);
140 void syms_of_lread (void); 149 void syms_of_lread (void);
141 void syms_of_macros (void); 150 void syms_of_macros (void);
142 void syms_of_marker (void); 151 void syms_of_marker (void);
143 #ifdef NEW_GC
144 void syms_of_mc_alloc (void); 152 void syms_of_mc_alloc (void);
145 #endif /* NEW_GC */
146 void syms_of_md5 (void); 153 void syms_of_md5 (void);
147 void syms_of_menubar (void); 154 void syms_of_menubar (void);
155 void syms_of_menubar_gtk (void);
148 void syms_of_menubar_mswindows (void); 156 void syms_of_menubar_mswindows (void);
149 void syms_of_menubar_x (void); 157 void syms_of_menubar_x (void);
150 void syms_of_minibuf (void); 158 void syms_of_minibuf (void);
151 void syms_of_module (void); 159 void syms_of_module (void);
152 EXTERN_C void syms_of_canna_api (void);
153 void syms_of_mule_ccl (void); 160 void syms_of_mule_ccl (void);
154 void syms_of_mule_charset (void); 161 void syms_of_mule_charset (void);
155 void syms_of_mule_coding (void); 162 void syms_of_mule_coding (void);
156 void syms_of_mule_wnn (void); 163 void syms_of_mule_wnn (void);
157 void syms_of_nt (void); 164 void syms_of_nt (void);
158 void syms_of_number (void); 165 void syms_of_number (void);
159 void syms_of_objects (void); 166 void syms_of_objects (void);
167 void syms_of_objects_gtk (void);
160 void syms_of_objects_mswindows (void); 168 void syms_of_objects_mswindows (void);
161 void syms_of_objects_tty (void); 169 void syms_of_objects_tty (void);
162 void syms_of_objects_x (void); 170 void syms_of_objects_x (void);
163 void syms_of_font_mgr (void);
164 EXTERN_C void syms_of_postgresql (void); 171 EXTERN_C void syms_of_postgresql (void);
165 void syms_of_print (void); 172 void syms_of_print (void);
166 void syms_of_process (void); 173 void syms_of_process (void);
167 void syms_of_process_nt (void); 174 void syms_of_process_nt (void);
168 void syms_of_profile (void); 175 void syms_of_profile (void);
171 void syms_of_redisplay (void); 178 void syms_of_redisplay (void);
172 void syms_of_scrollbar (void); 179 void syms_of_scrollbar (void);
173 void syms_of_scrollbar_mswindows(void); 180 void syms_of_scrollbar_mswindows(void);
174 void syms_of_search (void); 181 void syms_of_search (void);
175 void syms_of_select (void); 182 void syms_of_select (void);
183 void syms_of_select_gtk (void);
176 void syms_of_select_mswindows (void); 184 void syms_of_select_mswindows (void);
177 void syms_of_select_x (void); 185 void syms_of_select_x (void);
178 void syms_of_signal (void); 186 void syms_of_signal (void);
179 void syms_of_sound (void); 187 void syms_of_sound (void);
180 void syms_of_specifier (void); 188 void syms_of_specifier (void);
183 void syms_of_syntax (void); 191 void syms_of_syntax (void);
184 void syms_of_tests (void); 192 void syms_of_tests (void);
185 void syms_of_text (void); 193 void syms_of_text (void);
186 void syms_of_toolbar (void); 194 void syms_of_toolbar (void);
187 void syms_of_tooltalk (void); 195 void syms_of_tooltalk (void);
196 void syms_of_ui_byhand (void);
197 void syms_of_ui_gtk (void);
188 void syms_of_undo (void); 198 void syms_of_undo (void);
189 void syms_of_unicode (void); 199 void syms_of_unicode (void);
190 void syms_of_widget (void); 200 void syms_of_widget (void);
201 void syms_of_widget_accessors (void);
191 void syms_of_win32 (void); 202 void syms_of_win32 (void);
192 void syms_of_window (void); 203 void syms_of_window (void);
193 204
194 /* Initialize the console types (dump-time only for console_type_(), 205 /* Initialize the console types (dump-time only for console_type_(),
195 post-pdump-load-time only for reinit_). */ 206 post-pdump-load-time only for reinit_). */
196 207
197 void console_type_create (void); 208 void console_type_create (void);
209 void console_type_create_device_gtk (void);
210 void console_type_create_device_mswindows (void);
211 void console_type_create_device_tty (void);
212 void console_type_create_device_x (void);
213 void reinit_console_type_create_device_x (void);
214 void console_type_create_dialog_gtk (void);
215 void console_type_create_dialog_mswindows (void);
216 void console_type_create_dialog_x (void);
217 void console_type_create_frame_gtk (void);
218 void console_type_create_frame_mswindows (void);
219 void console_type_create_frame_tty (void);
220 void console_type_create_frame_x (void);
221 void console_type_create_glyphs_gtk (void);
222 void console_type_create_glyphs_mswindows (void);
223 void console_type_create_glyphs_x (void);
224 void console_type_create_gtk (void);
225 void reinit_console_type_create_gtk (void);
226 void console_type_create_menubar_gtk (void);
227 void console_type_create_menubar_mswindows (void);
228 void console_type_create_menubar_x (void);
229 void console_type_create_mswindows (void);
230 void reinit_console_type_create_mswindows (void);
231 void console_type_create_objects_gtk (void);
232 void console_type_create_objects_mswindows (void);
233 void console_type_create_objects_tty (void);
234 void console_type_create_objects_x (void);
235 void console_type_create_redisplay_gtk (void);
236 void console_type_create_redisplay_mswindows (void);
237 void console_type_create_redisplay_tty (void);
238 void console_type_create_redisplay_x (void);
239 void console_type_create_scrollbar_gtk (void);
240 void console_type_create_scrollbar_mswindows (void);
241 void console_type_create_scrollbar_x (void);
242 void console_type_create_select_gtk (void);
243 void console_type_create_select_mswindows (void);
244 void console_type_create_select_x (void);
198 void console_type_create_stream (void); 245 void console_type_create_stream (void);
199 void reinit_console_type_create_stream (void); 246 void reinit_console_type_create_stream (void);
247 void console_type_create_toolbar_gtk (void);
248 void console_type_create_toolbar_mswindows (void);
249 void console_type_create_toolbar_x (void);
200 void console_type_create_tty (void); 250 void console_type_create_tty (void);
201 void reinit_console_type_create_tty (void); 251 void reinit_console_type_create_tty (void);
202 void console_type_create_device_tty (void);
203 void console_type_create_frame_tty (void);
204 void console_type_create_objects_tty (void);
205 void console_type_create_redisplay_tty (void);
206 void console_type_create_x (void); 252 void console_type_create_x (void);
207 void reinit_console_type_create_x (void); 253 void reinit_console_type_create_x (void);
208 void console_type_create_device_x (void);
209 void reinit_console_type_create_device_x (void);
210 void console_type_create_frame_x (void);
211 void console_type_create_glyphs_x (void);
212 void console_type_create_menubar_x (void);
213 void console_type_create_objects_x (void);
214 void console_type_create_redisplay_x (void);
215 void console_type_create_scrollbar_x (void);
216 void console_type_create_select_x (void);
217 void console_type_create_toolbar_x (void);
218 void console_type_create_dialog_x (void);
219 void console_type_create_mswindows (void);
220 void reinit_console_type_create_mswindows (void);
221 void console_type_create_device_mswindows (void);
222 void console_type_create_frame_mswindows (void);
223 void console_type_create_menubar_mswindows (void);
224 void console_type_create_objects_mswindows (void);
225 void console_type_create_redisplay_mswindows (void);
226 void console_type_create_scrollbar_mswindows (void);
227 void console_type_create_toolbar_mswindows (void);
228 void console_type_create_glyphs_mswindows (void);
229 void console_type_create_dialog_mswindows (void);
230 void console_type_create_select_mswindows (void);
231 254
232 /* Initialize the specifier types (dump-time only for specifier_type_(), 255 /* Initialize the specifier types (dump-time only for specifier_type_(),
233 post-pdump-load-time only for reinit_). */ 256 post-pdump-load-time only for reinit_). */
234 257
235 void specifier_type_create (void); 258 void specifier_type_create (void);
236 void reinit_specifier_type_create (void); 259 void reinit_specifier_type_create (void);
260 void specifier_type_create_gutter (void);
261 void reinit_specifier_type_create_gutter (void);
237 void specifier_type_create_image (void); 262 void specifier_type_create_image (void);
238 void reinit_specifier_type_create_image (void); 263 void reinit_specifier_type_create_image (void);
239 void specifier_type_create_gutter (void);
240 void reinit_specifier_type_create_gutter (void);
241 void specifier_type_create_objects (void); 264 void specifier_type_create_objects (void);
242 void reinit_specifier_type_create_objects (void); 265 void reinit_specifier_type_create_objects (void);
243 void specifier_type_create_toolbar (void); 266 void specifier_type_create_toolbar (void);
244 void reinit_specifier_type_create_toolbar (void); 267 void reinit_specifier_type_create_toolbar (void);
245 268
246 /* Initialize the coding system types (dump-time only for 269 /* Initialize the coding system types (dump-time only for
247 coding_system_type_(), post-pdump-load-time only for reinit_). */ 270 coding_system_type_(), post-pdump-load-time only for reinit_). */
248 271
249 void coding_system_type_create (void); 272 void coding_system_type_create (void);
250 void reinit_coding_system_type_create (void); 273 void reinit_coding_system_type_create (void);
251 void coding_system_type_create_unicode (void);
252 void reinit_coding_system_type_create_unicode (void);
253 void coding_system_type_create_intl_win32 (void); 274 void coding_system_type_create_intl_win32 (void);
254 void reinit_coding_system_type_create_intl_win32 (void); 275 void reinit_coding_system_type_create_intl_win32 (void);
255 void coding_system_type_create_mule_coding (void); 276 void coding_system_type_create_mule_coding (void);
256 void reinit_coding_system_type_create_mule_coding (void); 277 void reinit_coding_system_type_create_mule_coding (void);
278 void coding_system_type_create_unicode (void);
279 void reinit_coding_system_type_create_unicode (void);
257 280
258 /* Initialize the structure types (dump-time only). */ 281 /* Initialize the structure types (dump-time only). */
259 282
260 void structure_type_create (void); 283 void structure_type_create (void);
261 void structure_type_create_chartab (void); 284 void structure_type_create_chartab (void);
262 void structure_type_create_faces (void); 285 void structure_type_create_faces (void);
286 void structure_type_create_hash_table (void);
263 void structure_type_create_rangetab (void); 287 void structure_type_create_rangetab (void);
264 void structure_type_create_hash_table (void);
265 288
266 /* Initialize the image instantiator types (dump-time only). */ 289 /* Initialize the image instantiator types (dump-time only). */
267 290
268 void image_instantiator_format_create (void); 291 void image_instantiator_format_create (void);
269 void image_instantiator_format_create_glyphs_eimage (void); 292 void image_instantiator_format_create_glyphs_eimage (void);
293 void image_instantiator_format_create_glyphs_gtk (void);
294 void image_instantiator_format_create_glyphs_mswindows (void);
295 void image_instantiator_format_create_glyphs_tty (void);
270 void image_instantiator_format_create_glyphs_widget (void); 296 void image_instantiator_format_create_glyphs_widget (void);
271 void image_instantiator_format_create_glyphs_x (void); 297 void image_instantiator_format_create_glyphs_x (void);
272 void image_instantiator_format_create_glyphs_mswindows (void);
273 void image_instantiator_format_create_glyphs_tty (void);
274 298
275 /* Initialize the lstream types (dump-time only). */ 299 /* Initialize the lstream types (dump-time only). */
276 300
277 void lstream_type_create (void); 301 void lstream_type_create (void);
278 void lstream_type_create_file_coding (void); 302 void lstream_type_create_file_coding (void);
303 void lstream_type_create_mswindows_selectable (void);
279 void lstream_type_create_print (void); 304 void lstream_type_create_print (void);
280 void lstream_type_create_mswindows_selectable (void);
281 305
282 /* Initialize process types */ 306 /* Initialize process types */
283 307
284 void process_type_create_nt (void); 308 void process_type_create_nt (void);
285 void process_type_create_unix (void); 309 void process_type_create_unix (void);
286 310
287 /* Allow for Fprovide() (dump-time only). */ 311 /* Allow for Fprovide() (dump-time only). */
288 312
289 void init_provide_once (void); 313 void init_provide_once (void);
314
315 /* Lisp interactive function to sort groups of initialization functions by
316 name, ignoring any reinit_ or init_ at the beginning. Put the cursor
317 after the last right paren, type C-x C-e, then select some text and
318 M-x sort-symsinit.
319
320 (defun sort-symsinit (start end)
321 (interactive "r")
322 (sort-regexp-fields nil "^.*?void \\(?:re\\)?\\(init_\\)?\\([A-Za-z0-9_]+\\).*$" "\\2"
323 start end))
324
325 */
290 326
291 /* Initialize most variables (dump-time for vars_, dump-time and 327 /* Initialize most variables (dump-time for vars_, dump-time and
292 post-pdump-load-time for reinit_vars). */ 328 post-pdump-load-time for reinit_vars). */
293 329
294 void vars_of_abbrev (void); 330 void vars_of_abbrev (void);
296 void vars_of_balloon_x (void); 332 void vars_of_balloon_x (void);
297 void vars_of_buffer (void); 333 void vars_of_buffer (void);
298 void reinit_vars_of_buffer (void); 334 void reinit_vars_of_buffer (void);
299 void vars_of_bytecode (void); 335 void vars_of_bytecode (void);
300 void vars_of_callint (void); 336 void vars_of_callint (void);
337 EXTERN_C void vars_of_canna_api (void);
301 void vars_of_chartab (void); 338 void vars_of_chartab (void);
302 void vars_of_cmdloop (void); 339 void vars_of_cmdloop (void);
303 void vars_of_cmds (void); 340 void vars_of_cmds (void);
304 void vars_of_console (void); 341 void vars_of_console (void);
305 void reinit_vars_of_console (void); 342 void reinit_vars_of_console (void);
343 void vars_of_console_gtk (void);
344 void vars_of_console_mswindows (void);
306 void vars_of_console_stream (void); 345 void vars_of_console_stream (void);
307 void vars_of_console_mswindows (void);
308 void vars_of_console_tty (void); 346 void vars_of_console_tty (void);
309 void vars_of_console_x (void); 347 void vars_of_console_x (void);
310 void vars_of_data (void); 348 void vars_of_data (void);
311 void vars_of_database (void); 349 void vars_of_database (void);
312 void vars_of_debug (void); 350 void vars_of_debug (void);
313 void reinit_vars_of_debug (void); 351 void reinit_vars_of_debug (void);
314 void vars_of_device (void); 352 void vars_of_device (void);
315 void reinit_vars_of_device (void); 353 void reinit_vars_of_device (void);
354 void vars_of_device_gtk (void);
316 void vars_of_device_mswindows (void); 355 void vars_of_device_mswindows (void);
317 void vars_of_device_x (void); 356 void vars_of_device_x (void);
318 void reinit_vars_of_device_x (void); 357 void reinit_vars_of_device_x (void);
319 void vars_of_dialog (void); 358 void vars_of_dialog (void);
359 void vars_of_dialog_gtk (void);
360 void vars_of_dialog_mswindows (void);
320 void vars_of_dialog_x (void); 361 void vars_of_dialog_x (void);
321 void vars_of_dialog_mswindows (void);
322 void vars_of_dired (void); 362 void vars_of_dired (void);
323 void vars_of_dired_mswindows (void); 363 void vars_of_dired_mswindows (void);
324 void vars_of_doc (void); 364 void vars_of_doc (void);
325 void vars_of_dragdrop (void); 365 void vars_of_dragdrop (void);
326 void vars_of_editfns (void); 366 void vars_of_editfns (void);
367 EXTERN_C void vars_of_eldap (void);
327 void vars_of_emacs (void); 368 void vars_of_emacs (void);
328 void vars_of_eval (void); 369 void vars_of_eval (void);
329 void reinit_vars_of_eval (void); 370 void reinit_vars_of_eval (void);
371 void vars_of_event_Xt (void);
372 void reinit_vars_of_event_Xt (void);
373 void vars_of_event_gtk (void);
374 void reinit_vars_of_event_gtk (void);
375 void vars_of_event_mswindows (void);
376 void reinit_vars_of_event_mswindows (void);
330 void vars_of_event_stream (void); 377 void vars_of_event_stream (void);
331 void reinit_vars_of_event_stream (void); 378 void reinit_vars_of_event_stream (void);
332 void vars_of_event_tty (void); 379 void vars_of_event_tty (void);
333 void reinit_vars_of_event_tty (void); 380 void reinit_vars_of_event_tty (void);
334 void vars_of_event_mswindows (void);
335 void reinit_vars_of_event_mswindows (void);
336 void vars_of_event_Xt (void);
337 void reinit_vars_of_event_Xt (void);
338 void vars_of_events (void); 381 void vars_of_events (void);
339 void reinit_vars_of_events (void); 382 void reinit_vars_of_events (void);
340 void vars_of_extents (void); 383 void vars_of_extents (void);
341 void reinit_vars_of_extents (void); 384 void reinit_vars_of_extents (void);
342 void vars_of_faces (void); 385 void vars_of_faces (void);
343 void vars_of_file_coding (void); 386 void vars_of_file_coding (void);
344 void reinit_vars_of_file_coding (void); 387 void reinit_vars_of_file_coding (void);
345 void vars_of_fileio (void); 388 void vars_of_fileio (void);
389 #ifdef USE_C_FONT_LOCK
346 void reinit_vars_of_fileio (void); 390 void reinit_vars_of_fileio (void);
347 void vars_of_filelock (void); 391 void vars_of_filelock (void);
392 #endif /* USE_C_FONT_LOCK */
348 void vars_of_floatfns (void); 393 void vars_of_floatfns (void);
349 void vars_of_fns (void); 394 void vars_of_fns (void);
350 #ifdef USE_C_FONT_LOCK
351 void vars_of_font_lock (void); 395 void vars_of_font_lock (void);
352 void reinit_vars_of_font_lock (void); 396 void reinit_vars_of_font_lock (void);
353 #endif /* USE_C_FONT_LOCK */ 397 void vars_of_font_mgr (void);
354 void vars_of_frame_tty (void); 398 void reinit_vars_of_font_mgr (void);
399 void vars_of_frame (void);
400 void vars_of_frame_gtk (void);
355 void vars_of_frame_mswindows (void); 401 void vars_of_frame_mswindows (void);
356 void reinit_vars_of_frame_mswindows (void); 402 void reinit_vars_of_frame_mswindows (void);
403 void vars_of_frame_tty (void);
357 void vars_of_frame_x (void); 404 void vars_of_frame_x (void);
358 void vars_of_frame (void); 405 void vars_of_glyphs (void);
359 void vars_of_glyphs_x (void); 406 void reinit_vars_of_glyphs (void);
360 void vars_of_glyphs_eimage (void); 407 void vars_of_glyphs_eimage (void);
408 void vars_of_glyphs_gtk (void);
409 void vars_of_glyphs_mswindows (void);
361 void vars_of_glyphs_widget (void); 410 void vars_of_glyphs_widget (void);
362 void reinit_vars_of_glyphs_widget (void); 411 void reinit_vars_of_glyphs_widget (void);
363 void vars_of_glyphs_mswindows (void); 412 void vars_of_glyphs_x (void);
364 void vars_of_glyphs (void); 413 void vars_of_gpmevent (void);
365 void reinit_vars_of_glyphs (void); 414 void vars_of_gui (void);
415 void vars_of_gui_gtk (void);
366 void vars_of_gui_x (void); 416 void vars_of_gui_x (void);
367 void reinit_vars_of_gui_x (void); 417 void reinit_vars_of_gui_x (void);
368 void vars_of_gui (void);
369 void vars_of_gutter (void); 418 void vars_of_gutter (void);
419 void vars_of_indent (void);
370 void vars_of_input_method_motif (void); 420 void vars_of_input_method_motif (void);
371 void vars_of_input_method_xlib (void); 421 void vars_of_input_method_xlib (void);
372 void vars_of_indent (void);
373 void vars_of_insdel (void); 422 void vars_of_insdel (void);
374 void reinit_vars_of_insdel (void); 423 void reinit_vars_of_insdel (void);
375 void vars_of_intl (void); 424 void vars_of_intl (void);
376 void vars_of_intl_win32 (void); 425 void vars_of_intl_win32 (void);
377 void vars_of_keymap (void); 426 void vars_of_keymap (void);
379 void reinit_vars_of_lread (void); 428 void reinit_vars_of_lread (void);
380 void vars_of_lstream (void); 429 void vars_of_lstream (void);
381 void reinit_vars_of_lstream (void); 430 void reinit_vars_of_lstream (void);
382 void vars_of_macros (void); 431 void vars_of_macros (void);
383 void vars_of_md5 (void); 432 void vars_of_md5 (void);
433 void vars_of_menubar (void);
434 void vars_of_menubar_gtk (void);
435 void reinit_vars_of_menubar_gtk (void);
436 void vars_of_menubar_mswindows (void);
384 void vars_of_menubar_x (void); 437 void vars_of_menubar_x (void);
385 void reinit_vars_of_menubar_x (void); 438 void reinit_vars_of_menubar_x (void);
386 void vars_of_menubar (void);
387 void vars_of_menubar_mswindows (void);
388 void vars_of_minibuf (void); 439 void vars_of_minibuf (void);
389 void reinit_vars_of_minibuf (void); 440 void reinit_vars_of_minibuf (void);
390 void vars_of_module (void); 441 void vars_of_module (void);
391 void reinit_vars_of_module (void); 442 void reinit_vars_of_module (void);
392 EXTERN_C void vars_of_canna_api (void);
393 void vars_of_mule_ccl(void); 443 void vars_of_mule_ccl(void);
394 void vars_of_mule_charset (void); 444 void vars_of_mule_charset (void);
395 void vars_of_mule_coding (void); 445 void vars_of_mule_coding (void);
396 void reinit_vars_of_mule_coding (void); 446 void reinit_vars_of_mule_coding (void);
397 void vars_of_mule_wnn (void); 447 void vars_of_mule_wnn (void);
398 void reinit_vars_of_mule_wnn (void); 448 void reinit_vars_of_mule_wnn (void);
399 void vars_of_nt (void); 449 void vars_of_nt (void);
400 void vars_of_number (void); 450 void vars_of_number (void);
401 void reinit_vars_of_number (void); 451 void reinit_vars_of_number (void);
452 void reinit_vars_of_object_mswindows (void);
402 void vars_of_objects (void); 453 void vars_of_objects (void);
403 void vars_of_font_mgr (void);
404 void reinit_vars_of_font_mgr (void);
405 void reinit_vars_of_objects (void); 454 void reinit_vars_of_objects (void);
455 void vars_of_objects_gtk (void);
456 void vars_of_objects_mswindows (void);
406 void vars_of_objects_tty (void); 457 void vars_of_objects_tty (void);
407 void vars_of_objects_mswindows (void);
408 void reinit_vars_of_object_mswindows (void);
409 void vars_of_objects_x (void); 458 void vars_of_objects_x (void);
459 EXTERN_C void vars_of_postgresql (void);
410 void vars_of_print (void); 460 void vars_of_print (void);
411 void reinit_vars_of_print (void); 461 void reinit_vars_of_print (void);
412 void vars_of_process (void); 462 void vars_of_process (void);
413 void vars_of_process_nt (void); 463 void vars_of_process_nt (void);
414 void vars_of_process_unix (void); 464 void vars_of_process_unix (void);
415 void vars_of_profile (void); 465 void vars_of_profile (void);
416 void vars_of_ralloc (void); 466 void vars_of_ralloc (void);
417 void vars_of_realpath (void); 467 void vars_of_realpath (void);
418 void vars_of_redisplay (void); 468 void vars_of_redisplay (void);
419 void vars_of_regex (void); 469 void vars_of_regex (void);
470 void vars_of_scrollbar (void);
471 void vars_of_scrollbar_gtk (void);
472 void vars_of_scrollbar_mswindows (void);
420 void vars_of_scrollbar_x (void); 473 void vars_of_scrollbar_x (void);
421 void reinit_vars_of_scrollbar_x (void); 474 void reinit_vars_of_scrollbar_x (void);
422 void vars_of_scrollbar (void);
423 void vars_of_scrollbar_mswindows (void);
424 void vars_of_search (void); 475 void vars_of_search (void);
425 void reinit_vars_of_search (void); 476 void reinit_vars_of_search (void);
426 void vars_of_select (void); 477 void vars_of_select (void);
478 void vars_of_select_gtk (void);
427 void vars_of_select_mswindows (void); 479 void vars_of_select_mswindows (void);
480 void vars_of_select_x (void);
481 void reinit_vars_of_select_x (void);
428 void vars_of_sound (void); 482 void vars_of_sound (void);
429 void vars_of_specifier (void); 483 void vars_of_specifier (void);
430 void vars_of_sunpro (void); 484 void vars_of_sunpro (void);
431 void vars_of_symbols (void); 485 void vars_of_symbols (void);
432 void vars_of_syntax (void); 486 void vars_of_syntax (void);
433 void vars_of_tests (void); 487 void vars_of_tests (void);
434 void vars_of_text (void); 488 void vars_of_text (void);
435 void reinit_vars_of_text (void); 489 void reinit_vars_of_text (void);
436 void vars_of_toolbar (void); 490 void vars_of_toolbar (void);
437 void vars_of_tooltalk (void); 491 void vars_of_tooltalk (void);
492 void vars_of_ui_gtk (void);
438 void vars_of_undo (void); 493 void vars_of_undo (void);
439 void reinit_vars_of_undo (void); 494 void reinit_vars_of_undo (void);
440 void vars_of_unicode (void); 495 void vars_of_unicode (void);
496 void vars_of_win32 (void);
441 void vars_of_window (void); 497 void vars_of_window (void);
442 void reinit_vars_of_window (void); 498 void reinit_vars_of_window (void);
443 void vars_of_win32 (void);
444 void vars_of_select_x (void);
445 void reinit_vars_of_select_x (void);
446 EXTERN_C void vars_of_eldap (void);
447 EXTERN_C void vars_of_postgresql (void);
448 void vars_of_gpmevent (void);
449 499
450 /* Initialize specifier variables (dump-time only). */ 500 /* Initialize specifier variables (dump-time only). */
451 501
452 void specifier_vars_of_glyphs (void); 502 void specifier_vars_of_glyphs (void);
453 void specifier_vars_of_glyphs_widget (void); 503 void specifier_vars_of_glyphs_widget (void);
464 #### The reinit_() functions should be called from emacs.c, not the 514 #### The reinit_() functions should be called from emacs.c, not the
465 corresponding complex_vars_of_(). */ 515 corresponding complex_vars_of_(). */
466 516
467 void complex_vars_of_alloc (void); 517 void complex_vars_of_alloc (void);
468 void complex_vars_of_buffer (void); 518 void complex_vars_of_buffer (void);
519 void reinit_complex_vars_of_buffer_runtime_only (void);
469 void complex_vars_of_casetab (void); 520 void complex_vars_of_casetab (void);
470 void complex_vars_of_chartab (void); 521 void complex_vars_of_chartab (void);
471 void complex_vars_of_console (void); 522 void complex_vars_of_console (void);
523 void reinit_complex_vars_of_console_runtime_only (void);
472 void complex_vars_of_emacs (void); 524 void complex_vars_of_emacs (void);
473 void complex_vars_of_faces (void); 525 void complex_vars_of_faces (void);
474 void complex_vars_of_file_coding (void); 526 void complex_vars_of_file_coding (void);
475 void complex_vars_of_font_mgr (void); 527 void complex_vars_of_font_mgr (void);
476 void complex_vars_of_frame (void); 528 void complex_vars_of_frame (void);
477 void complex_vars_of_glyphs (void); 529 void complex_vars_of_glyphs (void);
530 void complex_vars_of_glyphs_gtk (void);
478 void complex_vars_of_glyphs_mswindows (void); 531 void complex_vars_of_glyphs_mswindows (void);
479 void complex_vars_of_glyphs_x (void); 532 void complex_vars_of_glyphs_x (void);
480 void complex_vars_of_intl_win32 (void); 533 void complex_vars_of_intl_win32 (void);
481 void complex_vars_of_keymap (void); 534 void complex_vars_of_keymap (void);
482 void complex_vars_of_menubar (void); 535 void complex_vars_of_menubar (void);
483 void complex_vars_of_minibuf (void); 536 void complex_vars_of_minibuf (void);
537 void reinit_complex_vars_of_minibuf (void);
484 void complex_vars_of_mule_charset (void); 538 void complex_vars_of_mule_charset (void);
485 void complex_vars_of_scrollbar (void); 539 void complex_vars_of_scrollbar (void);
486 void complex_vars_of_syntax (void); 540 void complex_vars_of_syntax (void);
487 void complex_vars_of_unicode (void); 541 void complex_vars_of_unicode (void);
488 void reinit_complex_vars_of_buffer_runtime_only (void);
489 void reinit_complex_vars_of_console_runtime_only (void);
490 void reinit_complex_vars_of_minibuf (void);
491 542
492 /* Late initialization -- stuff pertaining only to interactive usage, 543 /* Late initialization -- stuff pertaining only to interactive usage,
493 I/O, or Lisp reading. (Dump-time and run-time, but the code itself 544 I/O, or Lisp reading. (Dump-time and run-time, but the code itself
494 may conditionalize on this by checking the `initialized' variable.) */ 545 may conditionalize on this by checking the `initialized' variable.) */
495 546
497 void init_buffer_2 (void); 548 void init_buffer_2 (void);
498 void init_console_stream (int reinit); 549 void init_console_stream (int reinit);
499 void init_device_tty (void); 550 void init_device_tty (void);
500 void init_editfns (void); 551 void init_editfns (void);
501 void init_event_Xt_late (void); 552 void init_event_Xt_late (void);
553 void init_event_gtk_late (void);
502 void init_event_mswindows_late (void); 554 void init_event_mswindows_late (void);
503 void init_event_stream (void); 555 void init_event_stream (void);
504 void init_event_tty_late (void); 556 void init_event_tty_late (void);
505 void init_event_unixoid (void); 557 void init_event_unixoid (void);
506 void init_file_coding (void); 558 void init_file_coding (void);
516 void init_select_mswindows (void); 568 void init_select_mswindows (void);
517 void init_sunpro (void); 569 void init_sunpro (void);
518 void init_win32 (void); 570 void init_win32 (void);
519 void init_xemacs_process (void); 571 void init_xemacs_process (void);
520 572
521 void syms_of_device_gtk (void);
522 void syms_of_dialog_gtk (void);
523 void syms_of_event_gtk (void);
524 void syms_of_frame_gtk (void);
525 void syms_of_glyphs_gtk (void);
526 void syms_of_gui_gtk (void);
527 void syms_of_menubar_gtk (void);
528 void syms_of_objects_gtk (void);
529 void syms_of_select_gtk (void);
530 void syms_of_ui_gtk (void);
531 void syms_of_widget_accessors (void);
532 void syms_of_ui_byhand (void);
533 void console_type_create_gtk (void);
534 void reinit_console_type_create_gtk (void);
535 void console_type_create_device_gtk (void);
536 void console_type_create_frame_gtk (void);
537 void console_type_create_glyphs_gtk (void);
538 void console_type_create_menubar_gtk (void);
539 void console_type_create_objects_gtk (void);
540 void console_type_create_redisplay_gtk (void);
541 void console_type_create_scrollbar_gtk (void);
542 void console_type_create_toolbar_gtk (void);
543 void console_type_create_dialog_gtk (void);
544 void image_instantiator_format_create_glyphs_gtk (void);
545 void vars_of_device_gtk (void);
546 void vars_of_dialog_gtk (void);
547 void vars_of_event_gtk (void);
548 void reinit_vars_of_event_gtk (void);
549 void vars_of_frame_gtk (void);
550 void vars_of_glyphs_gtk (void);
551 void vars_of_gui_gtk (void);
552 void vars_of_menubar_gtk (void);
553 void reinit_vars_of_menubar_gtk (void);
554 void vars_of_objects_gtk (void);
555 void vars_of_scrollbar_gtk (void);
556 void vars_of_select_gtk (void);
557 void vars_of_ui_gtk (void);
558 void complex_vars_of_glyphs_gtk (void);
559 void init_event_gtk_late (void);
560 void console_type_create_select_gtk (void);
561
562 /* Enhanced number initialization: must be done only at runtime due to complex 573 /* Enhanced number initialization: must be done only at runtime due to complex
563 interactions with the supporting libraries. */ 574 interactions with the supporting libraries. */
564 void init_number (void); 575 void init_number (void);
565 576
566 #endif /* INCLUDED_symsinit_h_ */ 577 #endif /* INCLUDED_symsinit_h_ */