Mercurial > hg > xemacs-beta
comparison src/ChangeLog @ 5127:a9c41067dd88 ben-lisp-object
more cleanups, terminology clarification, lots of doc work
-------------------- ChangeLog entries follow: --------------------
man/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* internals/internals.texi (Introduction to Allocation):
* internals/internals.texi (Integers and Characters):
* internals/internals.texi (Allocation from Frob Blocks):
* internals/internals.texi (lrecords):
* internals/internals.texi (Low-level allocation):
Rewrite section on allocation of Lisp objects to reflect the new
reality. Remove references to nonexistent XSETINT and XSETCHAR.
modules/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* postgresql/postgresql.c (allocate_pgconn):
* postgresql/postgresql.c (allocate_pgresult):
* postgresql/postgresql.h (struct Lisp_PGconn):
* postgresql/postgresql.h (struct Lisp_PGresult):
* ldap/eldap.c (allocate_ldap):
* ldap/eldap.h (struct Lisp_LDAP):
Same changes as in src/ dir. See large log there in ChangeLog,
but basically:
ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT
LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER
../hlo/src/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (old_alloc_sized_lcrecord):
* alloc.c (very_old_free_lcrecord):
* alloc.c (copy_lisp_object):
* alloc.c (zero_sized_lisp_object):
* alloc.c (zero_nonsized_lisp_object):
* alloc.c (lisp_object_storage_size):
* alloc.c (free_normal_lisp_object):
* alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC):
* alloc.c (ALLOC_FROB_BLOCK_LISP_OBJECT):
* alloc.c (Fcons):
* alloc.c (noseeum_cons):
* alloc.c (make_float):
* alloc.c (make_bignum):
* alloc.c (make_bignum_bg):
* alloc.c (make_ratio):
* alloc.c (make_ratio_bg):
* alloc.c (make_ratio_rt):
* alloc.c (make_bigfloat):
* alloc.c (make_bigfloat_bf):
* alloc.c (size_vector):
* alloc.c (make_compiled_function):
* alloc.c (Fmake_symbol):
* alloc.c (allocate_extent):
* alloc.c (allocate_event):
* alloc.c (make_key_data):
* alloc.c (make_button_data):
* alloc.c (make_motion_data):
* alloc.c (make_process_data):
* alloc.c (make_timeout_data):
* alloc.c (make_magic_data):
* alloc.c (make_magic_eval_data):
* alloc.c (make_eval_data):
* alloc.c (make_misc_user_data):
* alloc.c (Fmake_marker):
* alloc.c (noseeum_make_marker):
* alloc.c (size_string_direct_data):
* alloc.c (make_uninit_string):
* alloc.c (make_string_nocopy):
* alloc.c (mark_lcrecord_list):
* alloc.c (alloc_managed_lcrecord):
* alloc.c (free_managed_lcrecord):
* alloc.c (sweep_lcrecords_1):
* alloc.c (malloced_storage_size):
* buffer.c (allocate_buffer):
* buffer.c (compute_buffer_usage):
* buffer.c (DEFVAR_BUFFER_LOCAL_1):
* buffer.c (nuke_all_buffer_slots):
* buffer.c (common_init_complex_vars_of_buffer):
* buffer.h (struct buffer_text):
* buffer.h (struct buffer):
* bytecode.c:
* bytecode.c (make_compiled_function_args):
* bytecode.c (size_compiled_function_args):
* bytecode.h (struct compiled_function_args):
* casetab.c (allocate_case_table):
* casetab.h (struct Lisp_Case_Table):
* charset.h (struct Lisp_Charset):
* chartab.c (fill_char_table):
* chartab.c (Fmake_char_table):
* chartab.c (make_char_table_entry):
* chartab.c (copy_char_table_entry):
* chartab.c (Fcopy_char_table):
* chartab.c (put_char_table):
* chartab.h (struct Lisp_Char_Table_Entry):
* chartab.h (struct Lisp_Char_Table):
* console-gtk-impl.h (struct gtk_device):
* console-gtk-impl.h (struct gtk_frame):
* console-impl.h (struct console):
* console-msw-impl.h (struct Lisp_Devmode):
* console-msw-impl.h (struct mswindows_device):
* console-msw-impl.h (struct msprinter_device):
* console-msw-impl.h (struct mswindows_frame):
* console-msw-impl.h (struct mswindows_dialog_id):
* console-stream-impl.h (struct stream_console):
* console-stream.c (stream_init_console):
* console-tty-impl.h (struct tty_console):
* console-tty-impl.h (struct tty_device):
* console-tty.c (allocate_tty_console_struct):
* console-x-impl.h (struct x_device):
* console-x-impl.h (struct x_frame):
* console.c (allocate_console):
* console.c (nuke_all_console_slots):
* console.c (DEFVAR_CONSOLE_LOCAL_1):
* console.c (common_init_complex_vars_of_console):
* data.c (make_weak_list):
* data.c (make_weak_box):
* data.c (make_ephemeron):
* database.c:
* database.c (struct Lisp_Database):
* database.c (allocate_database):
* database.c (finalize_database):
* device-gtk.c (allocate_gtk_device_struct):
* device-impl.h (struct device):
* device-msw.c:
* device-msw.c (mswindows_init_device):
* device-msw.c (msprinter_init_device):
* device-msw.c (finalize_devmode):
* device-msw.c (allocate_devmode):
* device-tty.c (allocate_tty_device_struct):
* device-x.c (allocate_x_device_struct):
* device.c:
* device.c (nuke_all_device_slots):
* device.c (allocate_device):
* dialog-msw.c (handle_question_dialog_box):
* elhash.c:
* elhash.c (struct Lisp_Hash_Table):
* elhash.c (finalize_hash_table):
* elhash.c (make_general_lisp_hash_table):
* elhash.c (Fcopy_hash_table):
* elhash.h (htentry):
* emacs.c (main_1):
* eval.c:
* eval.c (size_multiple_value):
* event-stream.c (finalize_command_builder):
* event-stream.c (allocate_command_builder):
* event-stream.c (free_command_builder):
* event-stream.c (event_stream_generate_wakeup):
* event-stream.c (event_stream_resignal_wakeup):
* event-stream.c (event_stream_disable_wakeup):
* event-stream.c (event_stream_wakeup_pending_p):
* events.h (struct Lisp_Timeout):
* events.h (struct command_builder):
* extents-impl.h:
* extents-impl.h (struct extent_auxiliary):
* extents-impl.h (struct extent_info):
* extents-impl.h (set_extent_no_chase_aux_field):
* extents-impl.h (set_extent_no_chase_normal_field):
* extents.c:
* extents.c (gap_array_marker):
* extents.c (gap_array):
* extents.c (extent_list_marker):
* extents.c (extent_list):
* extents.c (stack_of_extents):
* extents.c (gap_array_make_marker):
* extents.c (extent_list_make_marker):
* extents.c (allocate_extent_list):
* extents.c (SLOT):
* extents.c (mark_extent_auxiliary):
* extents.c (allocate_extent_auxiliary):
* extents.c (attach_extent_auxiliary):
* extents.c (size_gap_array):
* extents.c (finalize_extent_info):
* extents.c (allocate_extent_info):
* extents.c (uninit_buffer_extents):
* extents.c (allocate_soe):
* extents.c (copy_extent):
* extents.c (vars_of_extents):
* extents.h:
* faces.c (allocate_face):
* faces.h (struct Lisp_Face):
* faces.h (struct face_cachel):
* file-coding.c:
* file-coding.c (finalize_coding_system):
* file-coding.c (sizeof_coding_system):
* file-coding.c (Fcopy_coding_system):
* file-coding.h (struct Lisp_Coding_System):
* file-coding.h (MARKED_SLOT):
* fns.c (size_bit_vector):
* font-mgr.c:
* font-mgr.c (finalize_fc_pattern):
* font-mgr.c (print_fc_pattern):
* font-mgr.c (Ffc_pattern_p):
* font-mgr.c (Ffc_pattern_create):
* font-mgr.c (Ffc_name_parse):
* font-mgr.c (Ffc_name_unparse):
* font-mgr.c (Ffc_pattern_duplicate):
* font-mgr.c (Ffc_pattern_add):
* font-mgr.c (Ffc_pattern_del):
* font-mgr.c (Ffc_pattern_get):
* font-mgr.c (fc_config_create_using):
* font-mgr.c (fc_strlist_to_lisp_using):
* font-mgr.c (fontset_to_list):
* font-mgr.c (Ffc_config_p):
* font-mgr.c (Ffc_config_up_to_date):
* font-mgr.c (Ffc_config_build_fonts):
* font-mgr.c (Ffc_config_get_cache):
* font-mgr.c (Ffc_config_get_fonts):
* font-mgr.c (Ffc_config_set_current):
* font-mgr.c (Ffc_config_get_blanks):
* font-mgr.c (Ffc_config_get_rescan_interval):
* font-mgr.c (Ffc_config_set_rescan_interval):
* font-mgr.c (Ffc_config_app_font_add_file):
* font-mgr.c (Ffc_config_app_font_add_dir):
* font-mgr.c (Ffc_config_app_font_clear):
* font-mgr.c (size):
* font-mgr.c (Ffc_config_substitute):
* font-mgr.c (Ffc_font_render_prepare):
* font-mgr.c (Ffc_font_match):
* font-mgr.c (Ffc_font_sort):
* font-mgr.c (finalize_fc_config):
* font-mgr.c (print_fc_config):
* font-mgr.h:
* font-mgr.h (struct fc_pattern):
* font-mgr.h (XFC_PATTERN):
* font-mgr.h (struct fc_config):
* font-mgr.h (XFC_CONFIG):
* frame-gtk.c (allocate_gtk_frame_struct):
* frame-impl.h (struct frame):
* frame-msw.c (mswindows_init_frame_1):
* frame-x.c (allocate_x_frame_struct):
* frame.c (nuke_all_frame_slots):
* frame.c (allocate_frame_core):
* gc.c:
* gc.c (GC_CHECK_NOT_FREE):
* glyphs.c (finalize_image_instance):
* glyphs.c (allocate_image_instance):
* glyphs.c (Fcolorize_image_instance):
* glyphs.c (allocate_glyph):
* glyphs.c (unmap_subwindow_instance_cache_mapper):
* glyphs.c (register_ignored_expose):
* glyphs.h (struct Lisp_Image_Instance):
* glyphs.h (struct Lisp_Glyph):
* glyphs.h (struct glyph_cachel):
* glyphs.h (struct expose_ignore):
* gui.c (allocate_gui_item):
* gui.h (struct Lisp_Gui_Item):
* keymap.c (struct Lisp_Keymap):
* keymap.c (make_keymap):
* lisp.h:
* lisp.h (struct Lisp_String_Direct_Data):
* lisp.h (struct Lisp_String_Indirect_Data):
* lisp.h (struct Lisp_Vector):
* lisp.h (struct Lisp_Bit_Vector):
* lisp.h (DECLARE_INLINE_LISP_BIT_VECTOR):
* lisp.h (struct weak_box):
* lisp.h (struct ephemeron):
* lisp.h (struct weak_list):
* lrecord.h:
* lrecord.h (struct lrecord_implementation):
* lrecord.h (MC_ALLOC_CALL_FINALIZER):
* lrecord.h (struct lcrecord_list):
* lstream.c (finalize_lstream):
* lstream.c (sizeof_lstream):
* lstream.c (Lstream_new):
* lstream.c (Lstream_delete):
* lstream.h (struct lstream):
* marker.c:
* marker.c (finalize_marker):
* marker.c (compute_buffer_marker_usage):
* mule-charset.c:
* mule-charset.c (make_charset):
* mule-charset.c (compute_charset_usage):
* objects-impl.h (struct Lisp_Color_Instance):
* objects-impl.h (struct Lisp_Font_Instance):
* objects-tty-impl.h (struct tty_color_instance_data):
* objects-tty-impl.h (struct tty_font_instance_data):
* objects-tty.c (tty_initialize_color_instance):
* objects-tty.c (tty_initialize_font_instance):
* objects.c (finalize_color_instance):
* objects.c (Fmake_color_instance):
* objects.c (finalize_font_instance):
* objects.c (Fmake_font_instance):
* objects.c (reinit_vars_of_objects):
* opaque.c:
* opaque.c (sizeof_opaque):
* opaque.c (make_opaque_ptr):
* opaque.c (free_opaque_ptr):
* opaque.h:
* opaque.h (Lisp_Opaque):
* opaque.h (Lisp_Opaque_Ptr):
* print.c (printing_unreadable_lcrecord):
* print.c (external_object_printer):
* print.c (debug_p4):
* process.c (finalize_process):
* process.c (make_process_internal):
* procimpl.h (struct Lisp_Process):
* rangetab.c (Fmake_range_table):
* rangetab.c (Fcopy_range_table):
* rangetab.h (struct Lisp_Range_Table):
* scrollbar.c:
* scrollbar.c (create_scrollbar_instance):
* scrollbar.c (compute_scrollbar_instance_usage):
* scrollbar.h (struct scrollbar_instance):
* specifier.c (finalize_specifier):
* specifier.c (sizeof_specifier):
* specifier.c (set_specifier_caching):
* specifier.h (struct Lisp_Specifier):
* specifier.h (struct specifier_caching):
* symeval.h:
* symeval.h (SYMBOL_VALUE_MAGIC_P):
* symeval.h (DEFVAR_SYMVAL_FWD):
* symsinit.h:
* syntax.c (init_buffer_syntax_cache):
* syntax.h (struct syntax_cache):
* toolbar.c:
* toolbar.c (allocate_toolbar_button):
* toolbar.c (update_toolbar_button):
* toolbar.h (struct toolbar_button):
* tooltalk.c (struct Lisp_Tooltalk_Message):
* tooltalk.c (make_tooltalk_message):
* tooltalk.c (struct Lisp_Tooltalk_Pattern):
* tooltalk.c (make_tooltalk_pattern):
* ui-gtk.c:
* ui-gtk.c (allocate_ffi_data):
* ui-gtk.c (emacs_gtk_object_finalizer):
* ui-gtk.c (allocate_emacs_gtk_object_data):
* ui-gtk.c (allocate_emacs_gtk_boxed_data):
* ui-gtk.h:
* window-impl.h (struct window):
* window-impl.h (struct window_mirror):
* window.c (finalize_window):
* window.c (allocate_window):
* window.c (new_window_mirror):
* window.c (mark_window_as_deleted):
* window.c (make_dummy_parent):
* window.c (compute_window_mirror_usage):
* window.c (compute_window_usage):
Overall point of this change and previous ones in this repository:
(1) Introduce new, clearer terminology: everything other than int
or char is a "record" object, which comes in two types: "normal
objects" and "frob-block objects". Fix up all places that
referred to frob-block objects as "simple", "basic", etc.
(2) Provide an advertised interface for doing operations on Lisp
objects, including creating new types, that is clean and
consistent in its naming, uses the above-referenced terms and
avoids referencing "lrecords", "old lcrecords", etc., which should
hide under the surface.
(3) Make the size_in_bytes and finalizer methods take a
Lisp_Object rather than a void * for consistency with other methods.
(4) Separate finalizer method into finalizer and disksaver, so
that normal finalize methods don't have to worry about disksaving.
Other specifics:
(1) Renaming:
LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER
ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT
implementation->basic_p -> implementation->frob_block_p
ALLOCATE_FIXED_TYPE_AND_SET_IMPL -> ALLOC_FROB_BLOCK_LISP_OBJECT
*FCCONFIG*, wrap_fcconfig -> *FC_CONFIG*, wrap_fc_config
*FCPATTERN*, wrap_fcpattern -> *FC_PATTERN*, wrap_fc_pattern
(the last two changes make the naming of these macros consistent
with the naming of all other macros, since the objects are named
fc-config and fc-pattern with a hyphen)
(2) Lots of documentation fixes in lrecord.h.
(3) Eliminate macros for copying, freeing, zeroing objects, getting
their storage size. Instead, new functions:
zero_sized_lisp_object()
zero_nonsized_lisp_object()
lisp_object_storage_size()
free_normal_lisp_object()
(copy_lisp_object() already exists)
LISP_OBJECT_FROB_BLOCK_P() (actually a macro)
Eliminated:
free_lrecord()
zero_lrecord()
copy_lrecord()
copy_sized_lrecord()
old_copy_lcrecord()
old_copy_sized_lcrecord()
old_zero_lcrecord()
old_zero_sized_lcrecord()
LISP_OBJECT_STORAGE_SIZE()
COPY_SIZED_LISP_OBJECT()
COPY_SIZED_LCRECORD()
COPY_LISP_OBJECT()
ZERO_LISP_OBJECT()
FREE_LISP_OBJECT()
(4) Catch the remaining places where lrecord stuff was used directly
and use the advertised interface, e.g. alloc_sized_lrecord() ->
ALLOC_SIZED_LISP_OBJECT().
(5) Make certain statically-declared pseudo-objects
(buffer_local_flags, console_local_flags) have their lheader
initialized correctly, so things like copy_lisp_object() can work
on them. Make extent_auxiliary_defaults a proper heap object
Vextent_auxiliary_defaults, and make extent auxiliaries dumpable
so that this object can be dumped. allocate_extent_auxiliary()
now just creates the object, and attach_extent_auxiliary()
creates an extent auxiliary and attaches to an extent, like the
old allocate_extent_auxiliary().
(6) Create EXTENT_AUXILIARY_SLOTS macro, similar to the foo-slots.h
files but in a macro instead of a file. The purpose is to avoid
duplication when iterating over all the slots in an extent auxiliary.
Use it.
(7) In lstream.c, don't zero out object after allocation because
allocation routines take care of this.
(8) In marker.c, fix a mistake in computing marker overhead.
(9) In print.c, clean up printing_unreadable_lcrecord(),
external_object_printer() to avoid lots of ifdef NEW_GC's.
(10) Separate toolbar-button allocation into a separate
allocate_toolbar_button() function for use in the example code
in lrecord.h.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 05 Mar 2010 04:08:17 -0600 |
parents | 2a462149bd6a |
children | 7be849cb8828 |
comparison
equal
deleted
inserted
replaced
5126:2a462149bd6a | 5127:a9c41067dd88 |
---|---|
1 2010-03-05 Ben Wing <ben@xemacs.org> | |
2 | |
3 * alloc.c: | |
4 * alloc.c (old_alloc_sized_lcrecord): | |
5 * alloc.c (very_old_free_lcrecord): | |
6 * alloc.c (copy_lisp_object): | |
7 * alloc.c (zero_sized_lisp_object): | |
8 * alloc.c (zero_nonsized_lisp_object): | |
9 * alloc.c (lisp_object_storage_size): | |
10 * alloc.c (free_normal_lisp_object): | |
11 * alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC): | |
12 * alloc.c (ALLOC_FROB_BLOCK_LISP_OBJECT): | |
13 * alloc.c (Fcons): | |
14 * alloc.c (noseeum_cons): | |
15 * alloc.c (make_float): | |
16 * alloc.c (make_bignum): | |
17 * alloc.c (make_bignum_bg): | |
18 * alloc.c (make_ratio): | |
19 * alloc.c (make_ratio_bg): | |
20 * alloc.c (make_ratio_rt): | |
21 * alloc.c (make_bigfloat): | |
22 * alloc.c (make_bigfloat_bf): | |
23 * alloc.c (size_vector): | |
24 * alloc.c (make_compiled_function): | |
25 * alloc.c (Fmake_symbol): | |
26 * alloc.c (allocate_extent): | |
27 * alloc.c (allocate_event): | |
28 * alloc.c (make_key_data): | |
29 * alloc.c (make_button_data): | |
30 * alloc.c (make_motion_data): | |
31 * alloc.c (make_process_data): | |
32 * alloc.c (make_timeout_data): | |
33 * alloc.c (make_magic_data): | |
34 * alloc.c (make_magic_eval_data): | |
35 * alloc.c (make_eval_data): | |
36 * alloc.c (make_misc_user_data): | |
37 * alloc.c (Fmake_marker): | |
38 * alloc.c (noseeum_make_marker): | |
39 * alloc.c (size_string_direct_data): | |
40 * alloc.c (make_uninit_string): | |
41 * alloc.c (make_string_nocopy): | |
42 * alloc.c (mark_lcrecord_list): | |
43 * alloc.c (alloc_managed_lcrecord): | |
44 * alloc.c (free_managed_lcrecord): | |
45 * alloc.c (sweep_lcrecords_1): | |
46 * alloc.c (malloced_storage_size): | |
47 * buffer.c (allocate_buffer): | |
48 * buffer.c (compute_buffer_usage): | |
49 * buffer.c (DEFVAR_BUFFER_LOCAL_1): | |
50 * buffer.c (nuke_all_buffer_slots): | |
51 * buffer.c (common_init_complex_vars_of_buffer): | |
52 * buffer.h (struct buffer_text): | |
53 * buffer.h (struct buffer): | |
54 * bytecode.c: | |
55 * bytecode.c (make_compiled_function_args): | |
56 * bytecode.c (size_compiled_function_args): | |
57 * bytecode.h (struct compiled_function_args): | |
58 * casetab.c (allocate_case_table): | |
59 * casetab.h (struct Lisp_Case_Table): | |
60 * charset.h (struct Lisp_Charset): | |
61 * chartab.c (fill_char_table): | |
62 * chartab.c (Fmake_char_table): | |
63 * chartab.c (make_char_table_entry): | |
64 * chartab.c (copy_char_table_entry): | |
65 * chartab.c (Fcopy_char_table): | |
66 * chartab.c (put_char_table): | |
67 * chartab.h (struct Lisp_Char_Table_Entry): | |
68 * chartab.h (struct Lisp_Char_Table): | |
69 * console-gtk-impl.h (struct gtk_device): | |
70 * console-gtk-impl.h (struct gtk_frame): | |
71 * console-impl.h (struct console): | |
72 * console-msw-impl.h (struct Lisp_Devmode): | |
73 * console-msw-impl.h (struct mswindows_device): | |
74 * console-msw-impl.h (struct msprinter_device): | |
75 * console-msw-impl.h (struct mswindows_frame): | |
76 * console-msw-impl.h (struct mswindows_dialog_id): | |
77 * console-stream-impl.h (struct stream_console): | |
78 * console-stream.c (stream_init_console): | |
79 * console-tty-impl.h (struct tty_console): | |
80 * console-tty-impl.h (struct tty_device): | |
81 * console-tty.c (allocate_tty_console_struct): | |
82 * console-x-impl.h (struct x_device): | |
83 * console-x-impl.h (struct x_frame): | |
84 * console.c (allocate_console): | |
85 * console.c (nuke_all_console_slots): | |
86 * console.c (DEFVAR_CONSOLE_LOCAL_1): | |
87 * console.c (common_init_complex_vars_of_console): | |
88 * data.c (make_weak_list): | |
89 * data.c (make_weak_box): | |
90 * data.c (make_ephemeron): | |
91 * database.c: | |
92 * database.c (struct Lisp_Database): | |
93 * database.c (allocate_database): | |
94 * database.c (finalize_database): | |
95 * device-gtk.c (allocate_gtk_device_struct): | |
96 * device-impl.h (struct device): | |
97 * device-msw.c: | |
98 * device-msw.c (mswindows_init_device): | |
99 * device-msw.c (msprinter_init_device): | |
100 * device-msw.c (finalize_devmode): | |
101 * device-msw.c (allocate_devmode): | |
102 * device-tty.c (allocate_tty_device_struct): | |
103 * device-x.c (allocate_x_device_struct): | |
104 * device.c: | |
105 * device.c (nuke_all_device_slots): | |
106 * device.c (allocate_device): | |
107 * dialog-msw.c (handle_question_dialog_box): | |
108 * elhash.c: | |
109 * elhash.c (struct Lisp_Hash_Table): | |
110 * elhash.c (finalize_hash_table): | |
111 * elhash.c (make_general_lisp_hash_table): | |
112 * elhash.c (Fcopy_hash_table): | |
113 * elhash.h (htentry): | |
114 * emacs.c (main_1): | |
115 * eval.c: | |
116 * eval.c (size_multiple_value): | |
117 * event-stream.c (finalize_command_builder): | |
118 * event-stream.c (allocate_command_builder): | |
119 * event-stream.c (free_command_builder): | |
120 * event-stream.c (event_stream_generate_wakeup): | |
121 * event-stream.c (event_stream_resignal_wakeup): | |
122 * event-stream.c (event_stream_disable_wakeup): | |
123 * event-stream.c (event_stream_wakeup_pending_p): | |
124 * events.h (struct Lisp_Timeout): | |
125 * events.h (struct command_builder): | |
126 * extents-impl.h: | |
127 * extents-impl.h (struct extent_auxiliary): | |
128 * extents-impl.h (struct extent_info): | |
129 * extents-impl.h (set_extent_no_chase_aux_field): | |
130 * extents-impl.h (set_extent_no_chase_normal_field): | |
131 * extents.c: | |
132 * extents.c (gap_array_marker): | |
133 * extents.c (gap_array): | |
134 * extents.c (extent_list_marker): | |
135 * extents.c (extent_list): | |
136 * extents.c (stack_of_extents): | |
137 * extents.c (gap_array_make_marker): | |
138 * extents.c (extent_list_make_marker): | |
139 * extents.c (allocate_extent_list): | |
140 * extents.c (SLOT): | |
141 * extents.c (mark_extent_auxiliary): | |
142 * extents.c (allocate_extent_auxiliary): | |
143 * extents.c (attach_extent_auxiliary): | |
144 * extents.c (size_gap_array): | |
145 * extents.c (finalize_extent_info): | |
146 * extents.c (allocate_extent_info): | |
147 * extents.c (uninit_buffer_extents): | |
148 * extents.c (allocate_soe): | |
149 * extents.c (copy_extent): | |
150 * extents.c (vars_of_extents): | |
151 * extents.h: | |
152 * faces.c (allocate_face): | |
153 * faces.h (struct Lisp_Face): | |
154 * faces.h (struct face_cachel): | |
155 * file-coding.c: | |
156 * file-coding.c (finalize_coding_system): | |
157 * file-coding.c (sizeof_coding_system): | |
158 * file-coding.c (Fcopy_coding_system): | |
159 * file-coding.h (struct Lisp_Coding_System): | |
160 * file-coding.h (MARKED_SLOT): | |
161 * fns.c (size_bit_vector): | |
162 * font-mgr.c: | |
163 * font-mgr.c (finalize_fc_pattern): | |
164 * font-mgr.c (print_fc_pattern): | |
165 * font-mgr.c (Ffc_pattern_p): | |
166 * font-mgr.c (Ffc_pattern_create): | |
167 * font-mgr.c (Ffc_name_parse): | |
168 * font-mgr.c (Ffc_name_unparse): | |
169 * font-mgr.c (Ffc_pattern_duplicate): | |
170 * font-mgr.c (Ffc_pattern_add): | |
171 * font-mgr.c (Ffc_pattern_del): | |
172 * font-mgr.c (Ffc_pattern_get): | |
173 * font-mgr.c (fc_config_create_using): | |
174 * font-mgr.c (fc_strlist_to_lisp_using): | |
175 * font-mgr.c (fontset_to_list): | |
176 * font-mgr.c (Ffc_config_p): | |
177 * font-mgr.c (Ffc_config_up_to_date): | |
178 * font-mgr.c (Ffc_config_build_fonts): | |
179 * font-mgr.c (Ffc_config_get_cache): | |
180 * font-mgr.c (Ffc_config_get_fonts): | |
181 * font-mgr.c (Ffc_config_set_current): | |
182 * font-mgr.c (Ffc_config_get_blanks): | |
183 * font-mgr.c (Ffc_config_get_rescan_interval): | |
184 * font-mgr.c (Ffc_config_set_rescan_interval): | |
185 * font-mgr.c (Ffc_config_app_font_add_file): | |
186 * font-mgr.c (Ffc_config_app_font_add_dir): | |
187 * font-mgr.c (Ffc_config_app_font_clear): | |
188 * font-mgr.c (size): | |
189 * font-mgr.c (Ffc_config_substitute): | |
190 * font-mgr.c (Ffc_font_render_prepare): | |
191 * font-mgr.c (Ffc_font_match): | |
192 * font-mgr.c (Ffc_font_sort): | |
193 * font-mgr.c (finalize_fc_config): | |
194 * font-mgr.c (print_fc_config): | |
195 * font-mgr.h: | |
196 * font-mgr.h (struct fc_pattern): | |
197 * font-mgr.h (XFC_PATTERN): | |
198 * font-mgr.h (struct fc_config): | |
199 * font-mgr.h (XFC_CONFIG): | |
200 * frame-gtk.c (allocate_gtk_frame_struct): | |
201 * frame-impl.h (struct frame): | |
202 * frame-msw.c (mswindows_init_frame_1): | |
203 * frame-x.c (allocate_x_frame_struct): | |
204 * frame.c (nuke_all_frame_slots): | |
205 * frame.c (allocate_frame_core): | |
206 * gc.c: | |
207 * gc.c (GC_CHECK_NOT_FREE): | |
208 * glyphs.c (finalize_image_instance): | |
209 * glyphs.c (allocate_image_instance): | |
210 * glyphs.c (Fcolorize_image_instance): | |
211 * glyphs.c (allocate_glyph): | |
212 * glyphs.c (unmap_subwindow_instance_cache_mapper): | |
213 * glyphs.c (register_ignored_expose): | |
214 * glyphs.h (struct Lisp_Image_Instance): | |
215 * glyphs.h (struct Lisp_Glyph): | |
216 * glyphs.h (struct glyph_cachel): | |
217 * glyphs.h (struct expose_ignore): | |
218 * gui.c (allocate_gui_item): | |
219 * gui.h (struct Lisp_Gui_Item): | |
220 * keymap.c (struct Lisp_Keymap): | |
221 * keymap.c (make_keymap): | |
222 * lisp.h: | |
223 * lisp.h (struct Lisp_String_Direct_Data): | |
224 * lisp.h (struct Lisp_String_Indirect_Data): | |
225 * lisp.h (struct Lisp_Vector): | |
226 * lisp.h (struct Lisp_Bit_Vector): | |
227 * lisp.h (DECLARE_INLINE_LISP_BIT_VECTOR): | |
228 * lisp.h (struct weak_box): | |
229 * lisp.h (struct ephemeron): | |
230 * lisp.h (struct weak_list): | |
231 * lrecord.h: | |
232 * lrecord.h (struct lrecord_implementation): | |
233 * lrecord.h (MC_ALLOC_CALL_FINALIZER): | |
234 * lrecord.h (struct lcrecord_list): | |
235 * lstream.c (finalize_lstream): | |
236 * lstream.c (sizeof_lstream): | |
237 * lstream.c (Lstream_new): | |
238 * lstream.c (Lstream_delete): | |
239 * lstream.h (struct lstream): | |
240 * marker.c: | |
241 * marker.c (finalize_marker): | |
242 * marker.c (compute_buffer_marker_usage): | |
243 * mule-charset.c: | |
244 * mule-charset.c (make_charset): | |
245 * mule-charset.c (compute_charset_usage): | |
246 * objects-impl.h (struct Lisp_Color_Instance): | |
247 * objects-impl.h (struct Lisp_Font_Instance): | |
248 * objects-tty-impl.h (struct tty_color_instance_data): | |
249 * objects-tty-impl.h (struct tty_font_instance_data): | |
250 * objects-tty.c (tty_initialize_color_instance): | |
251 * objects-tty.c (tty_initialize_font_instance): | |
252 * objects.c (finalize_color_instance): | |
253 * objects.c (Fmake_color_instance): | |
254 * objects.c (finalize_font_instance): | |
255 * objects.c (Fmake_font_instance): | |
256 * objects.c (reinit_vars_of_objects): | |
257 * opaque.c: | |
258 * opaque.c (sizeof_opaque): | |
259 * opaque.c (make_opaque_ptr): | |
260 * opaque.c (free_opaque_ptr): | |
261 * opaque.h: | |
262 * opaque.h (Lisp_Opaque): | |
263 * opaque.h (Lisp_Opaque_Ptr): | |
264 * print.c (printing_unreadable_lcrecord): | |
265 * print.c (external_object_printer): | |
266 * print.c (debug_p4): | |
267 * process.c (finalize_process): | |
268 * process.c (make_process_internal): | |
269 * procimpl.h (struct Lisp_Process): | |
270 * rangetab.c (Fmake_range_table): | |
271 * rangetab.c (Fcopy_range_table): | |
272 * rangetab.h (struct Lisp_Range_Table): | |
273 * scrollbar.c: | |
274 * scrollbar.c (create_scrollbar_instance): | |
275 * scrollbar.c (compute_scrollbar_instance_usage): | |
276 * scrollbar.h (struct scrollbar_instance): | |
277 * specifier.c (finalize_specifier): | |
278 * specifier.c (sizeof_specifier): | |
279 * specifier.c (set_specifier_caching): | |
280 * specifier.h (struct Lisp_Specifier): | |
281 * specifier.h (struct specifier_caching): | |
282 * symeval.h: | |
283 * symeval.h (SYMBOL_VALUE_MAGIC_P): | |
284 * symeval.h (DEFVAR_SYMVAL_FWD): | |
285 * symsinit.h: | |
286 * syntax.c (init_buffer_syntax_cache): | |
287 * syntax.h (struct syntax_cache): | |
288 * toolbar.c: | |
289 * toolbar.c (allocate_toolbar_button): | |
290 * toolbar.c (update_toolbar_button): | |
291 * toolbar.h (struct toolbar_button): | |
292 * tooltalk.c (struct Lisp_Tooltalk_Message): | |
293 * tooltalk.c (make_tooltalk_message): | |
294 * tooltalk.c (struct Lisp_Tooltalk_Pattern): | |
295 * tooltalk.c (make_tooltalk_pattern): | |
296 * ui-gtk.c: | |
297 * ui-gtk.c (allocate_ffi_data): | |
298 * ui-gtk.c (emacs_gtk_object_finalizer): | |
299 * ui-gtk.c (allocate_emacs_gtk_object_data): | |
300 * ui-gtk.c (allocate_emacs_gtk_boxed_data): | |
301 * ui-gtk.h: | |
302 * window-impl.h (struct window): | |
303 * window-impl.h (struct window_mirror): | |
304 * window.c (finalize_window): | |
305 * window.c (allocate_window): | |
306 * window.c (new_window_mirror): | |
307 * window.c (mark_window_as_deleted): | |
308 * window.c (make_dummy_parent): | |
309 * window.c (compute_window_mirror_usage): | |
310 * window.c (compute_window_usage): | |
311 | |
312 Overall point of this change and previous ones in this repository: | |
313 | |
314 (1) Introduce new, clearer terminology: everything other than int | |
315 or char is a "record" object, which comes in two types: "normal | |
316 objects" and "frob-block objects". Fix up all places that | |
317 referred to frob-block objects as "simple", "basic", etc. | |
318 | |
319 (2) Provide an advertised interface for doing operations on Lisp | |
320 objects, including creating new types, that is clean and | |
321 consistent in its naming, uses the above-referenced terms and | |
322 avoids referencing "lrecords", "old lcrecords", etc., which should | |
323 hide under the surface. | |
324 | |
325 (3) Make the size_in_bytes and finalizer methods take a | |
326 Lisp_Object rather than a void * for consistency with other methods. | |
327 | |
328 (4) Separate finalizer method into finalizer and disksaver, so | |
329 that normal finalize methods don't have to worry about disksaving. | |
330 | |
331 Other specifics: | |
332 | |
333 (1) Renaming: | |
334 | |
335 LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER | |
336 ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT | |
337 implementation->basic_p -> implementation->frob_block_p | |
338 ALLOCATE_FIXED_TYPE_AND_SET_IMPL -> ALLOC_FROB_BLOCK_LISP_OBJECT | |
339 *FCCONFIG*, wrap_fcconfig -> *FC_CONFIG*, wrap_fc_config | |
340 *FCPATTERN*, wrap_fcpattern -> *FC_PATTERN*, wrap_fc_pattern | |
341 | |
342 (the last two changes make the naming of these macros consistent | |
343 with the naming of all other macros, since the objects are named | |
344 fc-config and fc-pattern with a hyphen) | |
345 | |
346 (2) Lots of documentation fixes in lrecord.h. | |
347 | |
348 (3) Eliminate macros for copying, freeing, zeroing objects, getting | |
349 their storage size. Instead, new functions: | |
350 | |
351 zero_sized_lisp_object() | |
352 zero_nonsized_lisp_object() | |
353 lisp_object_storage_size() | |
354 free_normal_lisp_object() | |
355 (copy_lisp_object() already exists) | |
356 LISP_OBJECT_FROB_BLOCK_P() (actually a macro) | |
357 | |
358 Eliminated: | |
359 | |
360 free_lrecord() | |
361 zero_lrecord() | |
362 copy_lrecord() | |
363 copy_sized_lrecord() | |
364 old_copy_lcrecord() | |
365 old_copy_sized_lcrecord() | |
366 old_zero_lcrecord() | |
367 old_zero_sized_lcrecord() | |
368 LISP_OBJECT_STORAGE_SIZE() | |
369 COPY_SIZED_LISP_OBJECT() | |
370 COPY_SIZED_LCRECORD() | |
371 COPY_LISP_OBJECT() | |
372 ZERO_LISP_OBJECT() | |
373 FREE_LISP_OBJECT() | |
374 | |
375 (4) Catch the remaining places where lrecord stuff was used directly | |
376 and use the advertised interface, e.g. alloc_sized_lrecord() -> | |
377 ALLOC_SIZED_LISP_OBJECT(). | |
378 | |
379 (5) Make certain statically-declared pseudo-objects | |
380 (buffer_local_flags, console_local_flags) have their lheader | |
381 initialized correctly, so things like copy_lisp_object() can work | |
382 on them. Make extent_auxiliary_defaults a proper heap object | |
383 Vextent_auxiliary_defaults, and make extent auxiliaries dumpable | |
384 so that this object can be dumped. allocate_extent_auxiliary() | |
385 now just creates the object, and attach_extent_auxiliary() | |
386 creates an extent auxiliary and attaches to an extent, like the | |
387 old allocate_extent_auxiliary(). | |
388 | |
389 (6) Create EXTENT_AUXILIARY_SLOTS macro, similar to the foo-slots.h | |
390 files but in a macro instead of a file. The purpose is to avoid | |
391 duplication when iterating over all the slots in an extent auxiliary. | |
392 Use it. | |
393 | |
394 (7) In lstream.c, don't zero out object after allocation because | |
395 allocation routines take care of this. | |
396 | |
397 (8) In marker.c, fix a mistake in computing marker overhead. | |
398 | |
399 (9) In print.c, clean up printing_unreadable_lcrecord(), | |
400 external_object_printer() to avoid lots of ifdef NEW_GC's. | |
401 | |
402 (10) Separate toolbar-button allocation into a separate | |
403 allocate_toolbar_button() function for use in the example code | |
404 in lrecord.h. | |
405 | |
1 2010-01-20 Ben Wing <ben@xemacs.org> | 406 2010-01-20 Ben Wing <ben@xemacs.org> |
2 | 407 |
3 * alloc.c: | 408 * alloc.c: |
4 * alloc.c (very_old_free_lcrecord): | 409 * alloc.c (very_old_free_lcrecord): |
5 * alloc.c (disksave_object_finalization_1): | 410 * alloc.c (disksave_object_finalization_1): |