Mercurial > hg > xemacs-beta
comparison src/ChangeLog @ 5013:ae48681c47fa
changes to VOID_TO_LISP et al.
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-02-08 Ben Wing <ben@xemacs.org>
* casetab.c (compute_canon_mapper):
* casetab.c (initialize_identity_mapper):
* casetab.c (compute_up_or_eqv_mapper):
* casetab.c (recompute_case_table):
* casetab.c (set_case_table):
* chartab.c (copy_mapper):
* chartab.c (copy_char_table_range):
* chartab.c (get_range_char_table_1):
* console.c (find_nonminibuffer_frame_not_on_console_predicate):
* console.c (find_nonminibuffer_frame_not_on_console):
* console.c (nuke_all_console_slots):
* device.c:
* device.c (find_nonminibuffer_frame_not_on_device_predicate):
* device.c (find_nonminibuffer_frame_not_on_device):
* dialog-msw.c (dialog_proc):
* dialog-msw.c (handle_question_dialog_box):
* dialog-x.c (maybe_run_dbox_text_callback):
* eval.c:
* eval.c (safe_run_hook_trapping_problems_1):
* eval.c (safe_run_hook_trapping_problems):
* event-msw.c:
* event-msw.c (mswindows_wnd_proc):
* event-msw.c (mswindows_find_frame):
* faces.c (update_face_inheritance_mapper):
* frame-msw.c (mswindows_init_frame_1):
* frame-msw.c (mswindows_get_mouse_position):
* frame-msw.c (mswindows_get_frame_parent):
* glade.c (connector):
* glade.c (Fglade_xml_signal_connect):
* glade.c (Fglade_xml_signal_autoconnect):
* glade.c (Fglade_xml_textdomain):
* glyphs-msw.c (mswindows_subwindow_instantiate):
* glyphs-msw.c (mswindows_widget_instantiate):
* glyphs.c (check_instance_cache_mapper):
* glyphs.c (check_window_subwindow_cache):
* glyphs.c (check_image_instance_structure):
* gui-x.c (snarf_widget_value_mapper):
* gui-x.c (popup_selection_callback):
* gui-x.c (button_item_to_widget_value):
* keymap.c (map_keymap_mapper):
* keymap.c (Fmap_keymap):
* menubar-gtk.c (__torn_off_sir):
* menubar-gtk.c (__activate_menu):
* menubar-gtk.c (menu_convert):
* menubar-gtk.c (__generic_button_callback):
* menubar-gtk.c (menu_descriptor_to_widget_1):
* menubar-msw.c:
* menubar-msw.c (EMPTY_ITEM_ID):
* menubar-x.c (menu_item_descriptor_to_widget_value_1):
* menubar-x.c (pre_activate_callback):
* menubar-x.c (command_builder_operate_menu_accelerator):
* menubar-x.c (command_builder_find_menu_accelerator):
* print.c (print_internal):
* process-unix.c (close_process_descs_mapfun):
* process.c (get_process_from_usid):
* process.c (init_process_io_handles):
* profile.c (sigprof_handler):
* profile.c (get_profiling_info_timing_maphash):
* profile.c (Fget_profiling_info):
* profile.c (set_profiling_info_timing_maphash):
* profile.c (mark_profiling_info_maphash):
* scrollbar-msw.c (mswindows_create_scrollbar_instance):
* scrollbar-msw.c (mswindows_free_scrollbar_instance):
* scrollbar-msw.c (mswindows_handle_scrollbar_event):
* specifier.c (recompute_cached_specifier_everywhere_mapfun):
* specifier.c (recompute_cached_specifier_everywhere):
* syntax.c (copy_to_mirrortab):
* syntax.c (copy_if_not_already_present):
* syntax.c (update_just_this_syntax_table):
* text.c (new_dfc_convert_now_damn_it):
* text.h (LISP_STRING_TO_EXTERNAL):
* tooltalk.c:
* tooltalk.c (tooltalk_message_callback):
* tooltalk.c (tooltalk_pattern_callback):
* tooltalk.c (Fcreate_tooltalk_message):
* tooltalk.c (Fcreate_tooltalk_pattern):
* ui-byhand.c (__generic_toolbar_callback):
* ui-byhand.c (generic_toolbar_insert_item):
* ui-byhand.c (__emacs_gtk_ctree_recurse_internal):
* ui-byhand.c (Fgtk_ctree_recurse):
* ui-gtk.c (__internal_callback_destroy):
* ui-gtk.c (__internal_callback_marshal):
* ui-gtk.c (Fgtk_signal_connect):
* ui-gtk.c (gtk_type_to_lisp):
* ui-gtk.c (lisp_to_gtk_type):
* ui-gtk.c (lisp_to_gtk_ret_type):
* lisp-disunion.h:
* lisp-disunion.h (NON_LVALUE):
* lisp-union.h:
* lisp.h (LISP_HASH):
Rename:
LISP_TO_VOID -> STORE_LISP_IN_VOID
VOID_TO_LISP -> GET_LISP_FROM_VOID
These new names are meant to clearly identify that the Lisp object
is the source and void the sink, and that they can't be used the
other way around -- they aren't exact opposites despite the old
names. The names are also important given the new functions
created just below. Also, clarify comments in lisp-union.h and
lisp-disunion.h about the use of the functions.
* lisp.h:
New functions STORE_VOID_IN_LISP and GET_VOID_FROM_LISP. These
are different from the above in that the source is a void *
(previously, you had to use make_opaque_ptr()).
* eval.c (restore_lisp_object):
* eval.c (record_unwind_protect_restoring_lisp_object):
* eval.c (struct restore_int):
* eval.c (restore_int):
* eval.c (record_unwind_protect_restoring_int):
* eval.c (free_pointer):
* eval.c (record_unwind_protect_freeing):
* eval.c (free_dynarr):
* eval.c (record_unwind_protect_freeing_dynarr):
* eval.c (unbind_to_1):
Use STORE_VOID_IN_LISP and GET_VOID_FROM_LISP to eliminate the
use of make_opaque_ptr() and mostly eliminate Lisp consing
entirely in the use of these various record_unwind_protect_*
functions as well as internal_bind_* (e.g. internal_bind_int).
* tests.c:
* tests.c (Ftest_store_void_in_lisp):
* tests.c (syms_of_tests):
* tests.c (vars_of_tests):
Add an C-assert-style test to test STORE_VOID_IN_LISP and
GET_VOID_FROM_LISP to make sure the same value comes back that
was put in.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 08 Feb 2010 06:42:16 -0600 |
parents | 0cd784a6ec44 |
children | c2e0c3af5fe3 |
comparison
equal
deleted
inserted
replaced
5012:f68b2ec914e3 | 5013:ae48681c47fa |
---|---|
1 2010-02-08 Ben Wing <ben@xemacs.org> | |
2 | |
3 * casetab.c (compute_canon_mapper): | |
4 * casetab.c (initialize_identity_mapper): | |
5 * casetab.c (compute_up_or_eqv_mapper): | |
6 * casetab.c (recompute_case_table): | |
7 * casetab.c (set_case_table): | |
8 * chartab.c (copy_mapper): | |
9 * chartab.c (copy_char_table_range): | |
10 * chartab.c (get_range_char_table_1): | |
11 * console.c (find_nonminibuffer_frame_not_on_console_predicate): | |
12 * console.c (find_nonminibuffer_frame_not_on_console): | |
13 * console.c (nuke_all_console_slots): | |
14 * device.c: | |
15 * device.c (find_nonminibuffer_frame_not_on_device_predicate): | |
16 * device.c (find_nonminibuffer_frame_not_on_device): | |
17 * dialog-msw.c (dialog_proc): | |
18 * dialog-msw.c (handle_question_dialog_box): | |
19 * dialog-x.c (maybe_run_dbox_text_callback): | |
20 * eval.c: | |
21 * eval.c (safe_run_hook_trapping_problems_1): | |
22 * eval.c (safe_run_hook_trapping_problems): | |
23 * event-msw.c: | |
24 * event-msw.c (mswindows_wnd_proc): | |
25 * event-msw.c (mswindows_find_frame): | |
26 * faces.c (update_face_inheritance_mapper): | |
27 * frame-msw.c (mswindows_init_frame_1): | |
28 * frame-msw.c (mswindows_get_mouse_position): | |
29 * frame-msw.c (mswindows_get_frame_parent): | |
30 * glade.c (connector): | |
31 * glade.c (Fglade_xml_signal_connect): | |
32 * glade.c (Fglade_xml_signal_autoconnect): | |
33 * glade.c (Fglade_xml_textdomain): | |
34 * glyphs-msw.c (mswindows_subwindow_instantiate): | |
35 * glyphs-msw.c (mswindows_widget_instantiate): | |
36 * glyphs.c (check_instance_cache_mapper): | |
37 * glyphs.c (check_window_subwindow_cache): | |
38 * glyphs.c (check_image_instance_structure): | |
39 * gui-x.c (snarf_widget_value_mapper): | |
40 * gui-x.c (popup_selection_callback): | |
41 * gui-x.c (button_item_to_widget_value): | |
42 * keymap.c (map_keymap_mapper): | |
43 * keymap.c (Fmap_keymap): | |
44 * menubar-gtk.c (__torn_off_sir): | |
45 * menubar-gtk.c (__activate_menu): | |
46 * menubar-gtk.c (menu_convert): | |
47 * menubar-gtk.c (__generic_button_callback): | |
48 * menubar-gtk.c (menu_descriptor_to_widget_1): | |
49 * menubar-msw.c: | |
50 * menubar-msw.c (EMPTY_ITEM_ID): | |
51 * menubar-x.c (menu_item_descriptor_to_widget_value_1): | |
52 * menubar-x.c (pre_activate_callback): | |
53 * menubar-x.c (command_builder_operate_menu_accelerator): | |
54 * menubar-x.c (command_builder_find_menu_accelerator): | |
55 * print.c (print_internal): | |
56 * process-unix.c (close_process_descs_mapfun): | |
57 * process.c (get_process_from_usid): | |
58 * process.c (init_process_io_handles): | |
59 * profile.c (sigprof_handler): | |
60 * profile.c (get_profiling_info_timing_maphash): | |
61 * profile.c (Fget_profiling_info): | |
62 * profile.c (set_profiling_info_timing_maphash): | |
63 * profile.c (mark_profiling_info_maphash): | |
64 * scrollbar-msw.c (mswindows_create_scrollbar_instance): | |
65 * scrollbar-msw.c (mswindows_free_scrollbar_instance): | |
66 * scrollbar-msw.c (mswindows_handle_scrollbar_event): | |
67 * specifier.c (recompute_cached_specifier_everywhere_mapfun): | |
68 * specifier.c (recompute_cached_specifier_everywhere): | |
69 * syntax.c (copy_to_mirrortab): | |
70 * syntax.c (copy_if_not_already_present): | |
71 * syntax.c (update_just_this_syntax_table): | |
72 * text.c (new_dfc_convert_now_damn_it): | |
73 * text.h (LISP_STRING_TO_EXTERNAL): | |
74 * tooltalk.c: | |
75 * tooltalk.c (tooltalk_message_callback): | |
76 * tooltalk.c (tooltalk_pattern_callback): | |
77 * tooltalk.c (Fcreate_tooltalk_message): | |
78 * tooltalk.c (Fcreate_tooltalk_pattern): | |
79 * ui-byhand.c (__generic_toolbar_callback): | |
80 * ui-byhand.c (generic_toolbar_insert_item): | |
81 * ui-byhand.c (__emacs_gtk_ctree_recurse_internal): | |
82 * ui-byhand.c (Fgtk_ctree_recurse): | |
83 * ui-gtk.c (__internal_callback_destroy): | |
84 * ui-gtk.c (__internal_callback_marshal): | |
85 * ui-gtk.c (Fgtk_signal_connect): | |
86 * ui-gtk.c (gtk_type_to_lisp): | |
87 * ui-gtk.c (lisp_to_gtk_type): | |
88 * ui-gtk.c (lisp_to_gtk_ret_type): | |
89 * lisp-disunion.h: | |
90 * lisp-disunion.h (NON_LVALUE): | |
91 * lisp-union.h: | |
92 * lisp.h (LISP_HASH): | |
93 Rename: | |
94 | |
95 LISP_TO_VOID -> STORE_LISP_IN_VOID | |
96 VOID_TO_LISP -> GET_LISP_FROM_VOID | |
97 | |
98 These new names are meant to clearly identify that the Lisp object | |
99 is the source and void the sink, and that they can't be used the | |
100 other way around -- they aren't exact opposites despite the old | |
101 names. The names are also important given the new functions | |
102 created just below. Also, clarify comments in lisp-union.h and | |
103 lisp-disunion.h about the use of the functions. | |
104 | |
105 * lisp.h: | |
106 New functions STORE_VOID_IN_LISP and GET_VOID_FROM_LISP. These | |
107 are different from the above in that the source is a void * | |
108 (previously, you had to use make_opaque_ptr()). | |
109 | |
110 * eval.c (restore_lisp_object): | |
111 * eval.c (record_unwind_protect_restoring_lisp_object): | |
112 * eval.c (struct restore_int): | |
113 * eval.c (restore_int): | |
114 * eval.c (record_unwind_protect_restoring_int): | |
115 * eval.c (free_pointer): | |
116 * eval.c (record_unwind_protect_freeing): | |
117 * eval.c (free_dynarr): | |
118 * eval.c (record_unwind_protect_freeing_dynarr): | |
119 * eval.c (unbind_to_1): | |
120 Use STORE_VOID_IN_LISP and GET_VOID_FROM_LISP to eliminate the | |
121 use of make_opaque_ptr() and mostly eliminate Lisp consing | |
122 entirely in the use of these various record_unwind_protect_* | |
123 functions as well as internal_bind_* (e.g. internal_bind_int). | |
124 | |
125 * tests.c: | |
126 * tests.c (Ftest_store_void_in_lisp): | |
127 * tests.c (syms_of_tests): | |
128 * tests.c (vars_of_tests): | |
129 Add an C-assert-style test to test STORE_VOID_IN_LISP and | |
130 GET_VOID_FROM_LISP to make sure the same value comes back that | |
131 was put in. | |
132 | |
1 2010-02-07 Ben Wing <ben@xemacs.org> | 133 2010-02-07 Ben Wing <ben@xemacs.org> |
2 | 134 |
3 * fns.c: Qlist, Qstring mistakenly declared twice. | 135 * fns.c: Qlist, Qstring mistakenly declared twice. |
4 * fns.c (mapcarX): | 136 * fns.c (mapcarX): |
5 (void) cast needed to avoid compile problem. | 137 (void) cast needed to avoid compile problem. |