Mercurial > hg > xemacs-beta
view src/symsinit.h @ 788:026c5bf9c134
[xemacs-hg @ 2002-03-21 07:29:57 by ben]
chartab.c: Fix bugs in implementation and doc strings.
config.h.in: Add foo_checking_assert_at_line() macros. Not clear whether these
are actually useful, though; I'll take them out if not.
symsinit.h, emacs.c: Some improvements to the timeline. Rearrange a bit the init
calls. Add call for reinit_vars_of_object_mswindows() and
declare in symsinit.h.
event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, events.c, events.h: Introduce new event methods for printing, comparing, and hashing
magic events, to avoid event-type-specific stuff that had crept
into events.c. (And was crashing, since the channel in MS Windows
magic events may be nil.) Implement the methods in
event-{tty,gtk,Xt,mswindows}.c. Make wrapping functions
event_stream_{compare,hash,format}_magic_event() to check if
everything's OK and call the actual callback. Fix events.c to use
the new methods. Add a new event-stream-operation
EVENT_STREAM_NOTHING -- event stream not actually required to be
able to do anything, just be open. (#### This
event-stream-operation stuff needs to be rethought.)
Fixed describe_event() in event-Xt.c to print its output to a
stream, not always to stderr, so it can be used
elsewhere. (e.g. in print-event when a magic event is
encountered?)
lisp.h, lrecord.h: Define new assert_at_line(), for use in asserts inside of inline
functions. The assert will report the line and file of the inline
function, which is almost certainly not what you want as it's
useless. what you want to see is where the pseudo-macro was
called from. So, when error-checking is on, we pass in the line
and file into the macros, for accurate printout using
assert_at_line(). Happens only when error-checking is defined so
doesn't slow down non-error-checking builds. Fix XCHAR, XINT,
XCHAR_OR_INT, XFOO, and wrap_foo() in this fashion.
lstream.c, lstream.h: Add resizing_buffer_to_lisp_string().
objects-gtk.c: Fix typo.
objects-msw.c: Implement a smarter way of determining whether a font matches a
charset. Formerly we just looked at the "script" element of the
font spec, converted it to a code page, and compared it with the
code page derived from the charset. Now, as well as doing this,
we ask the font for the list of unicode ranges it supports, see
what range the charset falls into (#### bogus! need to do this
char-by-char), and see if any of the font's supported ranges
include the charset's range. also do some caching in
Vfont_signature_data of previous inquiries.
charset.h, text.c, mule-charset.c: New fun; extracted out of
Fmake_char() and declare prototype in charset.h.
text.h: introduce assert_by_line() to make
REP_BYTES_BY_FIRST_BYTE report the file and line more accurately
in an assertion failure.
unicode.c: make non-static (used in objects-msw.c), declare in charset.h.
mule\mule-category.el: Start implementing a category API compatible with FSF. Not there yet.
We need improvements to char-tables.
mule\mule-charset.el: Copy translation table code from FSF 21.1 and fix up. Eventually
we'll have them in XEmacs. (used in ccl) Not here quite yet, and
we need some improvements to char-tables.
mule\cyril-util.el, mule\cyrillic.el, mule\devan-util.el, mule\ethio-util.el, mule\korea-util.el, mule\mule-tty-init.el, mule\tibet-util.el, mule\viet-util.el, mule\vietnamese.el: Fix numerous compilation warnings. Fix up code related to
translation tables and other types of char-tables.
menubar-items.el: Move the frame commands from
the View menu to the File menu, to be consistent with how most other
programs do things. Move less-used revert/recover items to a submenu.
Make "recover" not prompt for a file, but recover the current buffer.
TODO.ben-mule-21-5: Create bug list for latest problems.
author | ben |
---|---|
date | Thu, 21 Mar 2002 07:31:30 +0000 |
parents | 2923009caf47 |
children | a634e3b7acc8 |
line wrap: on
line source
/* Various initialization function prototypes. Copyright (C) 1995 Board of Trustees, University of Illinois. Copyright (C) 2001, 2002 Ben Wing. This file is part of XEmacs. XEmacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. XEmacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with XEmacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Synched up with: Not in FSF. */ #ifndef INCLUDED_symsinit_h_ #define INCLUDED_symsinit_h_ /* Earliest environment initializations (dump-time and run-time). */ void init_data_very_early (void); void init_floatfns_very_early (void); void init_free_hook (void); void init_process_times_very_early (void); void init_ralloc (void); void init_signals_very_early (void); void init_win32_very_early (void); void init_mswindows_dde_very_early (void); /* Early Lisp-engine initialization (dump-time only for init, dump-time and post-pdump-load-time for reinit). */ void init_alloc_once_early (void); void reinit_alloc_once_early (void); void init_symbols_once_early (void); void reinit_symbols_once_early (void); void init_errors_once_early (void); void reinit_opaque_once_early (void); void init_opaque_once_early (void); void init_elhash_once_early (void); void init_eistring_once_early (void); /* Declare the built-in symbols and primitives (dump-time only). */ void syms_of_abbrev (void); void syms_of_alloc (void); void syms_of_balloon_x (void); void syms_of_buffer (void); void syms_of_bytecode (void); void syms_of_callint (void); void syms_of_callproc (void); void syms_of_casefiddle (void); void syms_of_casetab (void); void syms_of_chartab (void); void syms_of_cmdloop (void); void syms_of_cmds (void); void syms_of_console (void); void syms_of_console_mswindows (void); void syms_of_console_tty (void); void syms_of_data (void); void syms_of_database (void); void syms_of_debug (void); void syms_of_device (void); void syms_of_device_mswindows (void); void syms_of_device_tty (void); void syms_of_device_x (void); void syms_of_dialog (void); void syms_of_dialog_mswindows (void); void syms_of_dialog_x (void); void syms_of_dired (void); void syms_of_dired_mswindows (void); void syms_of_doc (void); void syms_of_dragdrop (void); void syms_of_editfns (void); void syms_of_eldap (void); void syms_of_elhash (void); void syms_of_emacs (void); void syms_of_eval (void); void syms_of_event_Xt (void); void syms_of_event_mswindows (void); void syms_of_event_stream (void); void syms_of_events (void); void syms_of_extents (void); void syms_of_faces (void); void syms_of_file_coding (void); void syms_of_fileio (void); void syms_of_filelock (void); void syms_of_floatfns (void); void syms_of_fns (void); void syms_of_font_lock (void); void syms_of_frame (void); void syms_of_frame_mswindows (void); void syms_of_frame_tty (void); void syms_of_frame_x (void); void syms_of_free_hook (void); void syms_of_general (void); void syms_of_glyphs (void); void syms_of_glyphs_eimage (void); void syms_of_glyphs_mswindows (void); void syms_of_glyphs_shared (void); void syms_of_glyphs_widget (void); void syms_of_glyphs_x (void); void syms_of_gpmevent (void); void syms_of_gui (void); void syms_of_gui_mswindows (void); void syms_of_gui_x (void); void syms_of_gutter (void); void syms_of_indent (void); void syms_of_input_method_xlib (void); void syms_of_intl (void); void syms_of_intl_win32 (void); void syms_of_intl_x (void); void syms_of_keymap (void); void syms_of_lread (void); void syms_of_macros (void); void syms_of_marker (void); void syms_of_md5 (void); void syms_of_menubar (void); void syms_of_menubar_mswindows (void); void syms_of_menubar_x (void); void syms_of_minibuf (void); void syms_of_module (void); void syms_of_mule_canna (void); void syms_of_mule_ccl (void); void syms_of_mule_charset (void); void syms_of_mule_coding (void); void syms_of_mule_wnn (void); void syms_of_nt (void); void syms_of_objects (void); void syms_of_objects_mswindows (void); void syms_of_objects_tty (void); void syms_of_objects_x (void); void syms_of_postgresql (void); void syms_of_print (void); void syms_of_process (void); void syms_of_process_nt (void); void syms_of_profile (void); void syms_of_ralloc (void); void syms_of_rangetab (void); void syms_of_redisplay (void); void syms_of_scrollbar (void); void syms_of_scrollbar_mswindows(void); void syms_of_search (void); void syms_of_select (void); void syms_of_select_mswindows (void); void syms_of_select_x (void); void syms_of_signal (void); void syms_of_sound (void); void syms_of_specifier (void); void syms_of_sunpro (void); void syms_of_symbols (void); void syms_of_syntax (void); void syms_of_tests (void); void syms_of_text (void); void syms_of_toolbar (void); void syms_of_tooltalk (void); void syms_of_undo (void); void syms_of_unicode (void); void syms_of_widget (void); void syms_of_win32 (void); void syms_of_window (void); /* Initialize the console types (dump-time only for console_type_(), post-pdump-load-time only for reinit_). */ void console_type_create (void); void console_type_create_stream (void); void reinit_console_type_create_stream (void); void console_type_create_tty (void); void reinit_console_type_create_tty (void); void console_type_create_device_tty (void); void console_type_create_frame_tty (void); void console_type_create_objects_tty (void); void console_type_create_redisplay_tty (void); void console_type_create_x (void); void reinit_console_type_create_x (void); void console_type_create_device_x (void); void reinit_console_type_create_device_x (void); void console_type_create_frame_x (void); void console_type_create_glyphs_x (void); void console_type_create_menubar_x (void); void console_type_create_objects_x (void); void console_type_create_redisplay_x (void); void console_type_create_scrollbar_x (void); void console_type_create_select_x (void); void console_type_create_toolbar_x (void); void console_type_create_dialog_x (void); void console_type_create_mswindows (void); void reinit_console_type_create_mswindows (void); void console_type_create_device_mswindows (void); void console_type_create_frame_mswindows (void); void console_type_create_menubar_mswindows (void); void console_type_create_objects_mswindows (void); void console_type_create_redisplay_mswindows (void); void console_type_create_scrollbar_mswindows (void); void console_type_create_toolbar_mswindows (void); void console_type_create_glyphs_mswindows (void); void console_type_create_dialog_mswindows (void); void console_type_create_select_mswindows (void); /* Initialize the specifier types (dump-time only for specifier_type_(), post-pdump-load-time only for reinit_). */ void specifier_type_create (void); void reinit_specifier_type_create (void); void specifier_type_create_image (void); void reinit_specifier_type_create_image (void); void specifier_type_create_gutter (void); void reinit_specifier_type_create_gutter (void); void specifier_type_create_objects (void); void reinit_specifier_type_create_objects (void); void specifier_type_create_toolbar (void); void reinit_specifier_type_create_toolbar (void); /* Initialize the coding system types (dump-time only for coding_system_type_(), post-pdump-load-time only for reinit_). */ void coding_system_type_create (void); void reinit_coding_system_type_create (void); void coding_system_type_create_unicode (void); void reinit_coding_system_type_create_unicode (void); void coding_system_type_create_intl_win32 (void); void reinit_coding_system_type_create_intl_win32 (void); void coding_system_type_create_mule_coding (void); void reinit_coding_system_type_create_mule_coding (void); /* Initialize the structure types (dump-time only). */ void structure_type_create (void); void structure_type_create_chartab (void); void structure_type_create_faces (void); void structure_type_create_rangetab (void); void structure_type_create_hash_table (void); /* Initialize the image instantiator types (dump-time only). */ void image_instantiator_format_create (void); void image_instantiator_format_create_glyphs_eimage (void); void image_instantiator_format_create_glyphs_widget (void); void image_instantiator_format_create_glyphs_x (void); void image_instantiator_format_create_glyphs_mswindows (void); void image_instantiator_format_create_glyphs_tty (void); /* Initialize the lstream types (dump-time only). */ void lstream_type_create (void); void lstream_type_create_file_coding (void); void lstream_type_create_print (void); void lstream_type_create_mswindows_selectable (void); /* Initialize process types */ void process_type_create_nt (void); void process_type_create_unix (void); /* Allow for Fprovide() (dump-time only). */ void init_provide_once (void); /* Initialize most variables (dump-time for vars_, dump-time and post-pdump-load-time for reinit_vars). #### The reinit_() functions should be called from emacs.c, not the corresponding vars_of_(). */ void vars_of_abbrev (void); void vars_of_alloc (void); void vars_of_balloon_x (void); void vars_of_buffer (void); void reinit_vars_of_buffer (void); void vars_of_bytecode (void); void vars_of_callint (void); void vars_of_callproc (void); void vars_of_chartab (void); void vars_of_cmdloop (void); void vars_of_cmds (void); void vars_of_console (void); void reinit_vars_of_console (void); void vars_of_console_stream (void); void vars_of_console_mswindows (void); void vars_of_console_tty (void); void vars_of_data (void); void vars_of_database (void); void vars_of_debug (void); void reinit_vars_of_debug (void); void vars_of_device (void); void reinit_vars_of_device (void); void vars_of_device_mswindows (void); void vars_of_device_x (void); void reinit_vars_of_device_x (void); void vars_of_dialog (void); void vars_of_dialog_x (void); void vars_of_dialog_mswindows (void); void vars_of_dired (void); void vars_of_dired_mswindows (void); void vars_of_doc (void); void vars_of_dragdrop (void); void vars_of_editfns (void); void vars_of_emacs (void); void vars_of_eval (void); void reinit_vars_of_eval (void); void vars_of_event_stream (void); void reinit_vars_of_event_stream (void); void vars_of_event_tty (void); void reinit_vars_of_event_tty (void); void vars_of_event_mswindows (void); void reinit_vars_of_event_mswindows (void); void vars_of_event_Xt (void); void reinit_vars_of_event_Xt (void); void vars_of_events (void); void reinit_vars_of_events (void); void vars_of_extents (void); void reinit_vars_of_extents (void); void vars_of_faces (void); void vars_of_file_coding (void); void reinit_vars_of_file_coding (void); void vars_of_fileio (void); void reinit_vars_of_fileio (void); void vars_of_filelock (void); void vars_of_floatfns (void); void vars_of_fns (void); void vars_of_font_lock (void); void reinit_vars_of_font_lock (void); void vars_of_frame_tty (void); void vars_of_frame_mswindows (void); void reinit_vars_of_frame_mswindows (void); void vars_of_frame_x (void); void vars_of_frame (void); void vars_of_glyphs_x (void); void vars_of_glyphs_eimage (void); void vars_of_glyphs_widget (void); void reinit_vars_of_glyphs_widget (void); void vars_of_glyphs_mswindows (void); void vars_of_glyphs (void); void reinit_vars_of_glyphs (void); void vars_of_gui_x (void); void reinit_vars_of_gui_x (void); void vars_of_gui (void); void vars_of_gutter (void); void vars_of_input_method_motif (void); void vars_of_input_method_xlib (void); void vars_of_indent (void); void vars_of_insdel (void); void reinit_vars_of_insdel (void); void vars_of_intl (void); void vars_of_intl_win32 (void); void vars_of_keymap (void); void vars_of_lread (void); void reinit_vars_of_lread (void); void vars_of_lstream (void); void reinit_vars_of_lstream (void); void vars_of_macros (void); void vars_of_md5 (void); void vars_of_menubar_x (void); void reinit_vars_of_menubar_x (void); void vars_of_menubar (void); void vars_of_menubar_mswindows (void); void vars_of_minibuf (void); void reinit_vars_of_minibuf (void); void vars_of_module (void); void reinit_vars_of_module (void); void vars_of_mule_canna (void); void vars_of_mule_ccl(void); void vars_of_mule_charset (void); void vars_of_mule_coding (void); void reinit_vars_of_mule_coding (void); void vars_of_mule_wnn (void); void reinit_vars_of_mule_wnn (void); void vars_of_nt (void); void vars_of_ntproc (void); void vars_of_objects (void); void reinit_vars_of_objects (void); void vars_of_objects_tty (void); void vars_of_objects_mswindows (void); void reinit_vars_of_object_mswindows (void); void vars_of_objects_x (void); void vars_of_print (void); void reinit_vars_of_print (void); void vars_of_process (void); void vars_of_process_nt (void); void vars_of_process_unix (void); void vars_of_profile (void); void vars_of_ralloc (void); void vars_of_redisplay (void); void vars_of_scrollbar_x (void); void reinit_vars_of_scrollbar_x (void); void vars_of_scrollbar (void); void vars_of_scrollbar_mswindows (void); void vars_of_search (void); void reinit_vars_of_search (void); void vars_of_select (void); void vars_of_select_mswindows (void); void vars_of_sound (void); void vars_of_specifier (void); void vars_of_sunpro (void); void vars_of_symbols (void); void vars_of_syntax (void); void vars_of_tests (void); void vars_of_text (void); void reinit_vars_of_text (void); void vars_of_toolbar (void); void vars_of_tooltalk (void); void vars_of_undo (void); void reinit_vars_of_undo (void); void vars_of_unicode (void); void reinit_vars_of_unicode (void); void vars_of_window (void); void reinit_vars_of_window (void); void vars_of_win32 (void); void vars_of_select_x (void); void reinit_vars_of_select_x (void); void vars_of_eldap (void); void vars_of_postgresql (void); void vars_of_gpmevent (void); /* Initialize specifier variables (dump-time only). */ void specifier_vars_of_glyphs (void); void specifier_vars_of_gutter (void); void specifier_vars_of_menubar (void); void specifier_vars_of_redisplay (void); void specifier_vars_of_scrollbar (void); void specifier_vars_of_toolbar (void); void specifier_vars_of_window (void); /* Initialize variables with complex dependencies on other variables (dump-time for complex_vars_, dump-time and post-pdump-load-time for reinit_(), pdump-load-time-only for reinit_..._runtime_only()). #### The reinit_() functions should be called from emacs.c, not the corresponding complex_vars_of_(). */ void complex_vars_of_regex (void); void complex_vars_of_search (void); void complex_vars_of_faces (void); void complex_vars_of_mule_charset (void); void complex_vars_of_file_coding (void); void complex_vars_of_intl_win32 (void); void complex_vars_of_glyphs (void); void complex_vars_of_glyphs_x (void); void complex_vars_of_glyphs_mswindows (void); void complex_vars_of_alloc (void); void complex_vars_of_menubar (void); void complex_vars_of_scrollbar (void); void complex_vars_of_scrollbar_mswindows (void); void complex_vars_of_frame (void); void complex_vars_of_casetab (void); void complex_vars_of_syntax (void); void complex_vars_of_chartab (void); void complex_vars_of_buffer (void); void reinit_complex_vars_of_buffer_runtime_only (void); void complex_vars_of_console (void); void reinit_complex_vars_of_console_runtime_only (void); void complex_vars_of_emacs (void); void complex_vars_of_minibuf (void); void reinit_complex_vars_of_minibuf (void); void complex_vars_of_keymap (void); /* Reset the Lisp engine. Called both at dump-time and run-time; at dump-time, it's called early, before any of the vars() or complex_vars() routines. */ void init_alloc_early (void); void init_eval_early (void); /* Late initialization -- stuff pertaining only to interactive usage, I/O, or Lisp reading. (Dump-time and run-time, but the code itself may conditionalize on this by checking the `initialized' variable.) */ void init_buffer_1 (void); void init_buffer_2 (void); void init_callproc (void); void init_console_stream (int reinit); void init_device_tty (void); void init_editfns (void); void init_environment (void); void init_event_Xt_late (void); void init_event_stream (void); void init_event_tty_late (void); void init_event_mswindows_late (void); void init_event_unixoid (void); void init_file_coding (void); void init_hpplay (void); void init_intl (void); void init_intl_win32 (void); void init_lread (void); void init_macros (void); void init_mule_charset (void); void init_ntproc (void); /* #### delete me, please! */ /* Not named init_process in order to avoid conflict with NS 3.3 */ void init_xemacs_process (void); void init_postgresql_from_environment (void); void init_redisplay (void); void init_select_mswindows (void); void init_sunpro (void); void init_win32 (void); void syms_of_device_gtk (void); void syms_of_dialog_gtk (void); void syms_of_event_gtk (void); void syms_of_frame_gtk (void); void syms_of_glyphs_gtk (void); void syms_of_gui_gtk (void); void syms_of_menubar_gtk (void); void syms_of_objects_gtk (void); void syms_of_select_gtk (void); void syms_of_ui_gtk (void); void syms_of_widget_accessors (void); void syms_of_ui_byhand (void); void console_type_create_gtk (void); void console_type_create_device_gtk (void); void console_type_create_frame_gtk (void); void console_type_create_glyphs_gtk (void); void console_type_create_menubar_gtk (void); void console_type_create_objects_gtk (void); void console_type_create_redisplay_gtk (void); void console_type_create_scrollbar_gtk (void); void console_type_create_toolbar_gtk (void); void console_type_create_dialog_gtk (void); void image_instantiator_format_create_glyphs_gtk (void); void vars_of_device_gtk (void); void vars_of_dialog_gtk (void); void vars_of_event_gtk (void); void vars_of_frame_gtk (void); void vars_of_glyphs_gtk (void); void vars_of_gui_gtk (void); void vars_of_menubar_gtk (void); void vars_of_objects_gtk (void); void vars_of_scrollbar_gtk (void); void vars_of_select_gtk (void); void vars_of_ui_gtk (void); void complex_vars_of_glyphs_gtk (void); void init_event_gtk_late (void); void console_type_create_select_gtk (void); #endif /* INCLUDED_symsinit_h_ */