comparison src/ChangeLog @ 5140:e5380fdaf8f1

merge
author Ben Wing <ben@xemacs.org>
date Sat, 13 Mar 2010 05:38:34 -0600
parents a48ef26d87ee 4f4672e2aa34
children 186aebf7f6c6
comparison
equal deleted inserted replaced
5139:a48ef26d87ee 5140:e5380fdaf8f1
93 functions (internal_set_frame_size() and adjust_frame_size()), 93 functions (internal_set_frame_size() and adjust_frame_size()),
94 which have been moved so that they form a group with 94 which have been moved so that they form a group with
95 change_frame_size() and change_frame_size_1(). 95 change_frame_size() and change_frame_size_1().
96 96
97 No functionality should change. 97 No functionality should change.
98
99 2010-03-05 Ben Wing <ben@xemacs.org>
100
101 * alloc.c:
102 * alloc.c (old_alloc_sized_lcrecord):
103 * alloc.c (very_old_free_lcrecord):
104 * alloc.c (copy_lisp_object):
105 * alloc.c (zero_sized_lisp_object):
106 * alloc.c (zero_nonsized_lisp_object):
107 * alloc.c (lisp_object_storage_size):
108 * alloc.c (free_normal_lisp_object):
109 * alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC):
110 * alloc.c (ALLOC_FROB_BLOCK_LISP_OBJECT):
111 * alloc.c (Fcons):
112 * alloc.c (noseeum_cons):
113 * alloc.c (make_float):
114 * alloc.c (make_bignum):
115 * alloc.c (make_bignum_bg):
116 * alloc.c (make_ratio):
117 * alloc.c (make_ratio_bg):
118 * alloc.c (make_ratio_rt):
119 * alloc.c (make_bigfloat):
120 * alloc.c (make_bigfloat_bf):
121 * alloc.c (size_vector):
122 * alloc.c (make_compiled_function):
123 * alloc.c (Fmake_symbol):
124 * alloc.c (allocate_extent):
125 * alloc.c (allocate_event):
126 * alloc.c (make_key_data):
127 * alloc.c (make_button_data):
128 * alloc.c (make_motion_data):
129 * alloc.c (make_process_data):
130 * alloc.c (make_timeout_data):
131 * alloc.c (make_magic_data):
132 * alloc.c (make_magic_eval_data):
133 * alloc.c (make_eval_data):
134 * alloc.c (make_misc_user_data):
135 * alloc.c (Fmake_marker):
136 * alloc.c (noseeum_make_marker):
137 * alloc.c (size_string_direct_data):
138 * alloc.c (make_uninit_string):
139 * alloc.c (make_string_nocopy):
140 * alloc.c (mark_lcrecord_list):
141 * alloc.c (alloc_managed_lcrecord):
142 * alloc.c (free_managed_lcrecord):
143 * alloc.c (sweep_lcrecords_1):
144 * alloc.c (malloced_storage_size):
145 * buffer.c (allocate_buffer):
146 * buffer.c (compute_buffer_usage):
147 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
148 * buffer.c (nuke_all_buffer_slots):
149 * buffer.c (common_init_complex_vars_of_buffer):
150 * buffer.h (struct buffer_text):
151 * buffer.h (struct buffer):
152 * bytecode.c:
153 * bytecode.c (make_compiled_function_args):
154 * bytecode.c (size_compiled_function_args):
155 * bytecode.h (struct compiled_function_args):
156 * casetab.c (allocate_case_table):
157 * casetab.h (struct Lisp_Case_Table):
158 * charset.h (struct Lisp_Charset):
159 * chartab.c (fill_char_table):
160 * chartab.c (Fmake_char_table):
161 * chartab.c (make_char_table_entry):
162 * chartab.c (copy_char_table_entry):
163 * chartab.c (Fcopy_char_table):
164 * chartab.c (put_char_table):
165 * chartab.h (struct Lisp_Char_Table_Entry):
166 * chartab.h (struct Lisp_Char_Table):
167 * console-gtk-impl.h (struct gtk_device):
168 * console-gtk-impl.h (struct gtk_frame):
169 * console-impl.h (struct console):
170 * console-msw-impl.h (struct Lisp_Devmode):
171 * console-msw-impl.h (struct mswindows_device):
172 * console-msw-impl.h (struct msprinter_device):
173 * console-msw-impl.h (struct mswindows_frame):
174 * console-msw-impl.h (struct mswindows_dialog_id):
175 * console-stream-impl.h (struct stream_console):
176 * console-stream.c (stream_init_console):
177 * console-tty-impl.h (struct tty_console):
178 * console-tty-impl.h (struct tty_device):
179 * console-tty.c (allocate_tty_console_struct):
180 * console-x-impl.h (struct x_device):
181 * console-x-impl.h (struct x_frame):
182 * console.c (allocate_console):
183 * console.c (nuke_all_console_slots):
184 * console.c (DEFVAR_CONSOLE_LOCAL_1):
185 * console.c (common_init_complex_vars_of_console):
186 * data.c (make_weak_list):
187 * data.c (make_weak_box):
188 * data.c (make_ephemeron):
189 * database.c:
190 * database.c (struct Lisp_Database):
191 * database.c (allocate_database):
192 * database.c (finalize_database):
193 * device-gtk.c (allocate_gtk_device_struct):
194 * device-impl.h (struct device):
195 * device-msw.c:
196 * device-msw.c (mswindows_init_device):
197 * device-msw.c (msprinter_init_device):
198 * device-msw.c (finalize_devmode):
199 * device-msw.c (allocate_devmode):
200 * device-tty.c (allocate_tty_device_struct):
201 * device-x.c (allocate_x_device_struct):
202 * device.c:
203 * device.c (nuke_all_device_slots):
204 * device.c (allocate_device):
205 * dialog-msw.c (handle_question_dialog_box):
206 * elhash.c:
207 * elhash.c (struct Lisp_Hash_Table):
208 * elhash.c (finalize_hash_table):
209 * elhash.c (make_general_lisp_hash_table):
210 * elhash.c (Fcopy_hash_table):
211 * elhash.h (htentry):
212 * emacs.c (main_1):
213 * eval.c:
214 * eval.c (size_multiple_value):
215 * event-stream.c (finalize_command_builder):
216 * event-stream.c (allocate_command_builder):
217 * event-stream.c (free_command_builder):
218 * event-stream.c (event_stream_generate_wakeup):
219 * event-stream.c (event_stream_resignal_wakeup):
220 * event-stream.c (event_stream_disable_wakeup):
221 * event-stream.c (event_stream_wakeup_pending_p):
222 * events.h (struct Lisp_Timeout):
223 * events.h (struct command_builder):
224 * extents-impl.h:
225 * extents-impl.h (struct extent_auxiliary):
226 * extents-impl.h (struct extent_info):
227 * extents-impl.h (set_extent_no_chase_aux_field):
228 * extents-impl.h (set_extent_no_chase_normal_field):
229 * extents.c:
230 * extents.c (gap_array_marker):
231 * extents.c (gap_array):
232 * extents.c (extent_list_marker):
233 * extents.c (extent_list):
234 * extents.c (stack_of_extents):
235 * extents.c (gap_array_make_marker):
236 * extents.c (extent_list_make_marker):
237 * extents.c (allocate_extent_list):
238 * extents.c (SLOT):
239 * extents.c (mark_extent_auxiliary):
240 * extents.c (allocate_extent_auxiliary):
241 * extents.c (attach_extent_auxiliary):
242 * extents.c (size_gap_array):
243 * extents.c (finalize_extent_info):
244 * extents.c (allocate_extent_info):
245 * extents.c (uninit_buffer_extents):
246 * extents.c (allocate_soe):
247 * extents.c (copy_extent):
248 * extents.c (vars_of_extents):
249 * extents.h:
250 * faces.c (allocate_face):
251 * faces.h (struct Lisp_Face):
252 * faces.h (struct face_cachel):
253 * file-coding.c:
254 * file-coding.c (finalize_coding_system):
255 * file-coding.c (sizeof_coding_system):
256 * file-coding.c (Fcopy_coding_system):
257 * file-coding.h (struct Lisp_Coding_System):
258 * file-coding.h (MARKED_SLOT):
259 * fns.c (size_bit_vector):
260 * font-mgr.c:
261 * font-mgr.c (finalize_fc_pattern):
262 * font-mgr.c (print_fc_pattern):
263 * font-mgr.c (Ffc_pattern_p):
264 * font-mgr.c (Ffc_pattern_create):
265 * font-mgr.c (Ffc_name_parse):
266 * font-mgr.c (Ffc_name_unparse):
267 * font-mgr.c (Ffc_pattern_duplicate):
268 * font-mgr.c (Ffc_pattern_add):
269 * font-mgr.c (Ffc_pattern_del):
270 * font-mgr.c (Ffc_pattern_get):
271 * font-mgr.c (fc_config_create_using):
272 * font-mgr.c (fc_strlist_to_lisp_using):
273 * font-mgr.c (fontset_to_list):
274 * font-mgr.c (Ffc_config_p):
275 * font-mgr.c (Ffc_config_up_to_date):
276 * font-mgr.c (Ffc_config_build_fonts):
277 * font-mgr.c (Ffc_config_get_cache):
278 * font-mgr.c (Ffc_config_get_fonts):
279 * font-mgr.c (Ffc_config_set_current):
280 * font-mgr.c (Ffc_config_get_blanks):
281 * font-mgr.c (Ffc_config_get_rescan_interval):
282 * font-mgr.c (Ffc_config_set_rescan_interval):
283 * font-mgr.c (Ffc_config_app_font_add_file):
284 * font-mgr.c (Ffc_config_app_font_add_dir):
285 * font-mgr.c (Ffc_config_app_font_clear):
286 * font-mgr.c (size):
287 * font-mgr.c (Ffc_config_substitute):
288 * font-mgr.c (Ffc_font_render_prepare):
289 * font-mgr.c (Ffc_font_match):
290 * font-mgr.c (Ffc_font_sort):
291 * font-mgr.c (finalize_fc_config):
292 * font-mgr.c (print_fc_config):
293 * font-mgr.h:
294 * font-mgr.h (struct fc_pattern):
295 * font-mgr.h (XFC_PATTERN):
296 * font-mgr.h (struct fc_config):
297 * font-mgr.h (XFC_CONFIG):
298 * frame-gtk.c (allocate_gtk_frame_struct):
299 * frame-impl.h (struct frame):
300 * frame-msw.c (mswindows_init_frame_1):
301 * frame-x.c (allocate_x_frame_struct):
302 * frame.c (nuke_all_frame_slots):
303 * frame.c (allocate_frame_core):
304 * gc.c:
305 * gc.c (GC_CHECK_NOT_FREE):
306 * glyphs.c (finalize_image_instance):
307 * glyphs.c (allocate_image_instance):
308 * glyphs.c (Fcolorize_image_instance):
309 * glyphs.c (allocate_glyph):
310 * glyphs.c (unmap_subwindow_instance_cache_mapper):
311 * glyphs.c (register_ignored_expose):
312 * glyphs.h (struct Lisp_Image_Instance):
313 * glyphs.h (struct Lisp_Glyph):
314 * glyphs.h (struct glyph_cachel):
315 * glyphs.h (struct expose_ignore):
316 * gui.c (allocate_gui_item):
317 * gui.h (struct Lisp_Gui_Item):
318 * keymap.c (struct Lisp_Keymap):
319 * keymap.c (make_keymap):
320 * lisp.h:
321 * lisp.h (struct Lisp_String_Direct_Data):
322 * lisp.h (struct Lisp_String_Indirect_Data):
323 * lisp.h (struct Lisp_Vector):
324 * lisp.h (struct Lisp_Bit_Vector):
325 * lisp.h (DECLARE_INLINE_LISP_BIT_VECTOR):
326 * lisp.h (struct weak_box):
327 * lisp.h (struct ephemeron):
328 * lisp.h (struct weak_list):
329 * lrecord.h:
330 * lrecord.h (struct lrecord_implementation):
331 * lrecord.h (MC_ALLOC_CALL_FINALIZER):
332 * lrecord.h (struct lcrecord_list):
333 * lstream.c (finalize_lstream):
334 * lstream.c (sizeof_lstream):
335 * lstream.c (Lstream_new):
336 * lstream.c (Lstream_delete):
337 * lstream.h (struct lstream):
338 * marker.c:
339 * marker.c (finalize_marker):
340 * marker.c (compute_buffer_marker_usage):
341 * mule-charset.c:
342 * mule-charset.c (make_charset):
343 * mule-charset.c (compute_charset_usage):
344 * objects-impl.h (struct Lisp_Color_Instance):
345 * objects-impl.h (struct Lisp_Font_Instance):
346 * objects-tty-impl.h (struct tty_color_instance_data):
347 * objects-tty-impl.h (struct tty_font_instance_data):
348 * objects-tty.c (tty_initialize_color_instance):
349 * objects-tty.c (tty_initialize_font_instance):
350 * objects.c (finalize_color_instance):
351 * objects.c (Fmake_color_instance):
352 * objects.c (finalize_font_instance):
353 * objects.c (Fmake_font_instance):
354 * objects.c (reinit_vars_of_objects):
355 * opaque.c:
356 * opaque.c (sizeof_opaque):
357 * opaque.c (make_opaque_ptr):
358 * opaque.c (free_opaque_ptr):
359 * opaque.h:
360 * opaque.h (Lisp_Opaque):
361 * opaque.h (Lisp_Opaque_Ptr):
362 * print.c (printing_unreadable_lcrecord):
363 * print.c (external_object_printer):
364 * print.c (debug_p4):
365 * process.c (finalize_process):
366 * process.c (make_process_internal):
367 * procimpl.h (struct Lisp_Process):
368 * rangetab.c (Fmake_range_table):
369 * rangetab.c (Fcopy_range_table):
370 * rangetab.h (struct Lisp_Range_Table):
371 * scrollbar.c:
372 * scrollbar.c (create_scrollbar_instance):
373 * scrollbar.c (compute_scrollbar_instance_usage):
374 * scrollbar.h (struct scrollbar_instance):
375 * specifier.c (finalize_specifier):
376 * specifier.c (sizeof_specifier):
377 * specifier.c (set_specifier_caching):
378 * specifier.h (struct Lisp_Specifier):
379 * specifier.h (struct specifier_caching):
380 * symeval.h:
381 * symeval.h (SYMBOL_VALUE_MAGIC_P):
382 * symeval.h (DEFVAR_SYMVAL_FWD):
383 * symsinit.h:
384 * syntax.c (init_buffer_syntax_cache):
385 * syntax.h (struct syntax_cache):
386 * toolbar.c:
387 * toolbar.c (allocate_toolbar_button):
388 * toolbar.c (update_toolbar_button):
389 * toolbar.h (struct toolbar_button):
390 * tooltalk.c (struct Lisp_Tooltalk_Message):
391 * tooltalk.c (make_tooltalk_message):
392 * tooltalk.c (struct Lisp_Tooltalk_Pattern):
393 * tooltalk.c (make_tooltalk_pattern):
394 * ui-gtk.c:
395 * ui-gtk.c (allocate_ffi_data):
396 * ui-gtk.c (emacs_gtk_object_finalizer):
397 * ui-gtk.c (allocate_emacs_gtk_object_data):
398 * ui-gtk.c (allocate_emacs_gtk_boxed_data):
399 * ui-gtk.h:
400 * window-impl.h (struct window):
401 * window-impl.h (struct window_mirror):
402 * window.c (finalize_window):
403 * window.c (allocate_window):
404 * window.c (new_window_mirror):
405 * window.c (mark_window_as_deleted):
406 * window.c (make_dummy_parent):
407 * window.c (compute_window_mirror_usage):
408 * window.c (compute_window_usage):
409
410 Overall point of this change and previous ones in this repository:
411
412 (1) Introduce new, clearer terminology: everything other than int
413 or char is a "record" object, which comes in two types: "normal
414 objects" and "frob-block objects". Fix up all places that
415 referred to frob-block objects as "simple", "basic", etc.
416
417 (2) Provide an advertised interface for doing operations on Lisp
418 objects, including creating new types, that is clean and
419 consistent in its naming, uses the above-referenced terms and
420 avoids referencing "lrecords", "old lcrecords", etc., which should
421 hide under the surface.
422
423 (3) Make the size_in_bytes and finalizer methods take a
424 Lisp_Object rather than a void * for consistency with other methods.
425
426 (4) Separate finalizer method into finalizer and disksaver, so
427 that normal finalize methods don't have to worry about disksaving.
428
429 Other specifics:
430
431 (1) Renaming:
432
433 LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER
434 ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT
435 implementation->basic_p -> implementation->frob_block_p
436 ALLOCATE_FIXED_TYPE_AND_SET_IMPL -> ALLOC_FROB_BLOCK_LISP_OBJECT
437 *FCCONFIG*, wrap_fcconfig -> *FC_CONFIG*, wrap_fc_config
438 *FCPATTERN*, wrap_fcpattern -> *FC_PATTERN*, wrap_fc_pattern
439
440 (the last two changes make the naming of these macros consistent
441 with the naming of all other macros, since the objects are named
442 fc-config and fc-pattern with a hyphen)
443
444 (2) Lots of documentation fixes in lrecord.h.
445
446 (3) Eliminate macros for copying, freeing, zeroing objects, getting
447 their storage size. Instead, new functions:
448
449 zero_sized_lisp_object()
450 zero_nonsized_lisp_object()
451 lisp_object_storage_size()
452 free_normal_lisp_object()
453 (copy_lisp_object() already exists)
454 LISP_OBJECT_FROB_BLOCK_P() (actually a macro)
455
456 Eliminated:
457
458 free_lrecord()
459 zero_lrecord()
460 copy_lrecord()
461 copy_sized_lrecord()
462 old_copy_lcrecord()
463 old_copy_sized_lcrecord()
464 old_zero_lcrecord()
465 old_zero_sized_lcrecord()
466 LISP_OBJECT_STORAGE_SIZE()
467 COPY_SIZED_LISP_OBJECT()
468 COPY_SIZED_LCRECORD()
469 COPY_LISP_OBJECT()
470 ZERO_LISP_OBJECT()
471 FREE_LISP_OBJECT()
472
473 (4) Catch the remaining places where lrecord stuff was used directly
474 and use the advertised interface, e.g. alloc_sized_lrecord() ->
475 ALLOC_SIZED_LISP_OBJECT().
476
477 (5) Make certain statically-declared pseudo-objects
478 (buffer_local_flags, console_local_flags) have their lheader
479 initialized correctly, so things like copy_lisp_object() can work
480 on them. Make extent_auxiliary_defaults a proper heap object
481 Vextent_auxiliary_defaults, and make extent auxiliaries dumpable
482 so that this object can be dumped. allocate_extent_auxiliary()
483 now just creates the object, and attach_extent_auxiliary()
484 creates an extent auxiliary and attaches to an extent, like the
485 old allocate_extent_auxiliary().
486
487 (6) Create EXTENT_AUXILIARY_SLOTS macro, similar to the foo-slots.h
488 files but in a macro instead of a file. The purpose is to avoid
489 duplication when iterating over all the slots in an extent auxiliary.
490 Use it.
491
492 (7) In lstream.c, don't zero out object after allocation because
493 allocation routines take care of this.
494
495 (8) In marker.c, fix a mistake in computing marker overhead.
496
497 (9) In print.c, clean up printing_unreadable_lcrecord(),
498 external_object_printer() to avoid lots of ifdef NEW_GC's.
499
500 (10) Separate toolbar-button allocation into a separate
501 allocate_toolbar_button() function for use in the example code
502 in lrecord.h.
503
504 2010-01-20 Ben Wing <ben@xemacs.org>
505
506 * alloc.c:
507 * alloc.c (very_old_free_lcrecord):
508 * alloc.c (disksave_object_finalization_1):
509 * alloc.c (make_lcrecord_list):
510 * alloc.c (alloc_managed_lcrecord):
511 * alloc.c (free_managed_lcrecord):
512 * alloc.c (sweep_lcrecords_1):
513 * buffer.c:
514 * bytecode.c:
515 * bytecode.c (Fcompiled_function_p):
516 * chartab.c:
517 * console-impl.h:
518 * console-impl.h (CONSOLE_TYPE_P):
519 * console.c:
520 * console.c (set_quit_events):
521 * data.c:
522 * data.c (Fmake_ephemeron):
523 * database.c:
524 * database.c (finalize_database):
525 * database.c (Fclose_database):
526 * device-msw.c:
527 * device-msw.c (finalize_devmode):
528 * device-msw.c (allocate_devmode):
529 * device.c:
530 * elhash.c:
531 * elhash.c (finalize_hash_table):
532 * eval.c:
533 * eval.c (bind_multiple_value_limits):
534 * event-stream.c:
535 * event-stream.c (finalize_command_builder):
536 * events.c:
537 * events.c (mark_event):
538 * extents.c:
539 * extents.c (finalize_extent_info):
540 * extents.c (uninit_buffer_extents):
541 * faces.c:
542 * file-coding.c:
543 * file-coding.c (finalize_coding_system):
544 * file-coding.h:
545 * file-coding.h (struct coding_system_methods):
546 * file-coding.h (struct detector):
547 * floatfns.c:
548 * floatfns.c (extract_float):
549 * fns.c:
550 * fns.c (Fidentity):
551 * font-mgr.c (finalize_fc_pattern):
552 * font-mgr.c (finalize_fc_config):
553 * frame.c:
554 * glyphs.c:
555 * glyphs.c (finalize_image_instance):
556 * glyphs.c (unmap_subwindow_instance_cache_mapper):
557 * gui.c:
558 * gui.c (gui_error):
559 * keymap.c:
560 * lisp.h (struct Lisp_Symbol):
561 * lrecord.h:
562 * lrecord.h (struct lrecord_implementation):
563 * lrecord.h (MC_ALLOC_CALL_FINALIZER):
564 * lrecord.h (MC_ALLOC_CALL_FINALIZER_FOR_DISKSAVE):
565 * lrecord.h (DEFINE_DUMPABLE_LISP_OBJECT):
566 * lrecord.h (DEFINE_DUMPABLE_GENERAL_LISP_OBJECT):
567 * lrecord.h (DEFINE_DUMPABLE_SIZABLE_LISP_OBJECT):
568 * lrecord.h (DEFINE_DUMPABLE_SIZABLE_GENERAL_LISP_OBJECT):
569 * lrecord.h (DEFINE_DUMPABLE_FROB_BLOCK_LISP_OBJECT):
570 * lrecord.h (DEFINE_DUMPABLE_FROB_BLOCK_GENERAL_LISP_OBJECT):
571 * lrecord.h (DEFINE_DUMPABLE_FROB_BLOCK_SIZABLE_LISP_OBJECT):
572 * lrecord.h (DEFINE_DUMPABLE_INTERNAL_LISP_OBJECT):
573 * lrecord.h (DEFINE_DUMPABLE_SIZABLE_INTERNAL_LISP_OBJECT):
574 * lrecord.h (DEFINE_NODUMP_LISP_OBJECT):
575 * lrecord.h (DEFINE_NODUMP_GENERAL_LISP_OBJECT):
576 * lrecord.h (DEFINE_NODUMP_SIZABLE_LISP_OBJECT):
577 * lrecord.h (DEFINE_NODUMP_SIZABLE_GENERAL_LISP_OBJECT):
578 * lrecord.h (DEFINE_NODUMP_FROB_BLOCK_LISP_OBJECT):
579 * lrecord.h (DEFINE_NODUMP_FROB_BLOCK_GENERAL_LISP_OBJECT):
580 * lrecord.h (DEFINE_NODUMP_FROB_BLOCK_SIZABLE_LISP_OBJECT):
581 * lrecord.h (DEFINE_NODUMP_INTERNAL_LISP_OBJECT):
582 * lrecord.h (DEFINE_NODUMP_SIZABLE_INTERNAL_LISP_OBJECT):
583 * lrecord.h (MAKE_LISP_OBJECT):
584 * lrecord.h (DEFINE_DUMPABLE_MODULE_LISP_OBJECT):
585 * lrecord.h (DEFINE_DUMPABLE_MODULE_GENERAL_LISP_OBJECT):
586 * lrecord.h (DEFINE_DUMPABLE_MODULE_SIZABLE_LISP_OBJECT):
587 * lrecord.h (DEFINE_DUMPABLE_MODULE_SIZABLE_GENERAL_LISP_OBJECT):
588 * lrecord.h (DEFINE_NODUMP_MODULE_LISP_OBJECT):
589 * lrecord.h (DEFINE_NODUMP_MODULE_GENERAL_LISP_OBJECT):
590 * lrecord.h (DEFINE_NODUMP_MODULE_SIZABLE_LISP_OBJECT):
591 * lrecord.h (DEFINE_NODUMP_MODULE_SIZABLE_GENERAL_LISP_OBJECT):
592 * lrecord.h (MAKE_MODULE_LISP_OBJECT):
593 * lstream.c:
594 * lstream.c (finalize_lstream):
595 * lstream.c (disksave_lstream):
596 * marker.c:
597 * marker.c (finalize_marker):
598 * mule-charset.c (make_charset):
599 * number.c:
600 * objects.c:
601 * objects.c (finalize_color_instance):
602 * objects.c (finalize_font_instance):
603 * opaque.c:
604 * opaque.c (make_opaque_ptr):
605 * process-nt.c:
606 * process-nt.c (nt_finalize_process_data):
607 * process-nt.c (nt_deactivate_process):
608 * process.c:
609 * process.c (finalize_process):
610 * procimpl.h (struct process_methods):
611 * scrollbar.c:
612 * scrollbar.c (free_scrollbar_instance):
613 * specifier.c (finalize_specifier):
614 * symbols.c:
615 * toolbar.c:
616 * toolbar.c (Ftoolbar_button_p):
617 * tooltalk.c:
618 * ui-gtk.c:
619 * ui-gtk.c (emacs_gtk_object_finalizer):
620 * ui-gtk.c (allocate_emacs_gtk_boxed_data):
621 * window.c:
622 * window.c (finalize_window):
623 * window.c (mark_window_as_deleted):
624
625 Separate out regular and disksave finalization. Instead of a
626 FOR_DISKSAVE argument to the finalizer, create a separate object
627 method `disksaver'. Make `finalizer' have only one argument.
628
629 Go through and separate out all finalize methods into finalize
630 and disksave. Delete lots of thereby redundant disksave checking.
631 Delete places that signal an error if we attempt to disksave --
632 all of these objects are non-dumpable and we will get an error
633 from pdump anyway if we attempt to dump them. After this is done,
634 only one object remains that has a disksave method -- lstream.
635
636 Change DEFINE_*_LISP_OBJECT_WITH_PROPS to DEFINE_*_GENERAL_LISP_OBJECT,
637 which is used for specifying either property methods or disksave
638 methods (or in the future, any other less-used methods).
639
640 Remove the for_disksave argument to finalize_process_data. Don't
641 provide a disksaver for processes because no one currently needs
642 it.
643
644 Clean up various places where objects didn't provide a print method.
645 It was made mandatory in previous changes, and all methods now
646 either provide their own print method or use internal_object_printer
647 or external_object_printer.
648
649 Change the definition of CONSOLE_LIVE_P to use the contype enum
650 rather than looking into the conmeths structure -- in some weird
651 situations with dead objects, the conmeths structure is NULL,
652 and printing such objects from debug_print() will crash if we try
653 to look into the conmeths structure.
654
655
656 2005-11-22 Ben Wing <ben@xemacs.org>
657
658 * alloc.c:
659 * alloc.c (assert_proper_sizing):
660 * alloc.c (alloc_sized_lrecord_1):
661 * alloc.c (alloc_sized_lrecord):
662 * alloc.c (noseeum_alloc_sized_lrecord):
663 * alloc.c (alloc_lrecord):
664 * alloc.c (old_alloc_sized_lcrecord):
665 * alloc.c (make_vector_internal):
666 * alloc.c (make_bit_vector_internal):
667 * alloc.c (alloc_automanaged_sized_lcrecord):
668 * buffer.c (allocate_buffer):
669 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
670 * buffer.c (common_init_complex_vars_of_buffer):
671 * casetab.c (allocate_case_table):
672 * chartab.c (Fmake_char_table):
673 * chartab.c (make_char_table_entry):
674 * chartab.c (copy_char_table_entry):
675 * chartab.c (Fcopy_char_table):
676 * console.c (allocate_console):
677 * console.c (DEFVAR_CONSOLE_LOCAL_1):
678 * console.c (common_init_complex_vars_of_console):
679 * data.c (make_weak_list):
680 * data.c (make_weak_box):
681 * data.c (make_ephemeron):
682 * database.c (allocate_database):
683 * device-msw.c (allocate_devmode):
684 * device.c (allocate_device):
685 * dialog-msw.c (handle_question_dialog_box):
686 * elhash.c (make_general_lisp_hash_table):
687 * elhash.c (Fcopy_hash_table):
688 * emacs.c (main_1):
689 * event-stream.c:
690 * event-stream.c (allocate_command_builder):
691 * event-stream.c (free_command_builder):
692 * event-stream.c (mark_timeout):
693 * event-stream.c (event_stream_generate_wakeup):
694 * event-stream.c (event_stream_resignal_wakeup):
695 * event-stream.c (event_stream_disable_wakeup):
696 * event-stream.c (reinit_vars_of_event_stream):
697 * extents.c (allocate_extent_auxiliary):
698 * extents.c (allocate_extent_info):
699 * extents.c (copy_extent):
700 * faces.c (allocate_face):
701 * file-coding.c (allocate_coding_system):
702 * frame.c (allocate_frame_core):
703 * glyphs.c (allocate_image_instance):
704 * glyphs.c (allocate_glyph):
705 * gui.c (allocate_gui_item):
706 * keymap.c (make_keymap):
707 * lrecord.h:
708 * lrecord.h (ALLOC_LCRECORD):
709 * lrecord.h (ALLOC_SIZED_LCRECORD):
710 * lrecord.h (struct old_lcrecord_header):
711 * lrecord.h (old_alloc_lcrecord_type):
712 * lrecord.h (alloc_lrecord_type):
713 * lrecord.h (noseeum_alloc_lrecord_type):
714 * lstream.c (Lstream_new):
715 * mule-charset.c (make_charset):
716 * objects.c (Fmake_color_instance):
717 * objects.c (Fmake_font_instance):
718 * objects.c (reinit_vars_of_objects):
719 * opaque.c (make_opaque):
720 * opaque.c (make_opaque_ptr):
721 * process.c (make_process_internal):
722 * rangetab.c (Fmake_range_table):
723 * rangetab.c (Fcopy_range_table):
724 * scrollbar.c (create_scrollbar_instance):
725 * specifier.c (make_specifier_internal):
726 * symbols.c (Fdefvaralias):
727 * toolbar.c (update_toolbar_button):
728 * tooltalk.c (make_tooltalk_message):
729 * tooltalk.c (make_tooltalk_pattern):
730 * ui-gtk.c (allocate_ffi_data):
731 * ui-gtk.c (allocate_emacs_gtk_object_data):
732 * ui-gtk.c (allocate_emacs_gtk_boxed_data):
733 * window.c (allocate_window):
734 * window.c (new_window_mirror):
735 * window.c (make_dummy_parent):
736 Create a simpler interface for allocating/declaring Lisp objects;
737 documented in lrecord.h.
738
739 ALLOC_LCRECORD_TYPE -> ALLOC_LISP_OBJECT (returns a Lisp object
740 rather than a pointer),
741 BASIC_ALLOC_LCRECORD -> ALLOC_SIZED_LISP_OBJECT
742 DEFINE_LRECORD_IMPLEMENTATION -> DEFINE_*_LISP_OBJECT
743 DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION -> DEFINE_*SIZABLE_*LISP_OBJECT
744 DEFINE_LRECORD_*IMPLEMENTATION_WITH_PROPS -> DEFINE_*GENERAL_LISP_OBJECT
745 DEFINE_BASIC_LRECORD_IMPLEMENTATION -> DEFINE_*FROB_BLOCK_LISP_OBJECT
746 DEFINE_DUMPABLE_*/DEFINE_NODUMP_* instead of a 0 or 1 dumpable flag
747 DEFINE_*INTERNAL_* for "internal" Lisp objects (shouldn't escape
748 to Lisp)
749 DEFINE_EXTERNAL_* -> DEFINE_MODULE_*
750 MAKE_LRECORD_IMPLEMENTATION -> MAKE_LISP_OBJECT
751 MAKE_EXTERNAL_LRECORD_IMPLEMENTATION -> MAKE_MODULE_LISP_OBJECT
752 DECLARE_LRECORD -> DECLARE_LISP_OBJECT
753 INIT_LRECORD_IMPLEMENTATION -> INIT_LISP_OBJECT
754 alloc_lrecord -> alloc_sized_lrecord (since it takes a size)
755
756 Dynarr_newf, Dynarr_lisp_newf: takes a Bytecount instead of an int
98 757
99 2010-03-05 Ben Wing <ben@xemacs.org> 758 2010-03-05 Ben Wing <ben@xemacs.org>
100 759
101 * mule-coding.c: 760 * mule-coding.c:
102 * mule-coding.c (iso2022_encode): 761 * mule-coding.c (iso2022_encode):