comparison src/ChangeLog @ 4990:8f0cf4fd3d2c

Automatic merge
author Ben Wing <ben@xemacs.org>
date Sat, 06 Feb 2010 04:01:46 -0600
parents 4cfb6aeb989d
children ef3b2f38dd7c c0934cef10c6
comparison
equal deleted inserted replaced
4989:d2ec55325515 4990:8f0cf4fd3d2c
1 2010-02-05 Ben Wing <ben@xemacs.org>
2
3 * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR):
4 Cast pointer when storing value to avoid problems because some
5 store vars are Extbyte * and some are LPTSTR.
6
7 2010-02-05 Jerry James <james@xemacs.org>
8
9 * s/sco7.h: Add copyright and license header with the permission of
10 Ron Record, the author.
11
12 2010-02-05 Ben Wing <ben@xemacs.org>
13
14 * depend:
15 Regenerate.
16 * make-src-depend (PrintPatternDeps):
17 Remove refs to xgccache, no longer existent.
18
19 * select-gtk.c (THIS_IS_GTK):
20 * select-gtk.c (gtk_decline_selection_request):
21 * select-x.c (THIS_IS_X):
22 * select-xlike-inc.c:
23 * select-xlike-inc.c (selection_data_to_lisp_data):
24 Rename PROCESSING_X_CODE to THIS_IS_X and PROCESSING_GTK_CODE to
25 THIS_SI_GTK for consistency with other xlike code.
26
27 Rename select-xlike-inc.c from select-common.h, in keeping with
28 xlike terminology.
29
30 2010-02-05 Ben Wing <ben@xemacs.org>
31
32 * console-msw.c (write_string_to_mswindows_debugging_output):
33 * console-msw.c (Fmswindows_message_box):
34 * console-x.c (x_perhaps_init_unseen_key_defaults):
35 * console.c:
36 * database.c (dbm_get):
37 * database.c (dbm_put):
38 * database.c (dbm_remove):
39 * database.c (berkdb_get):
40 * database.c (berkdb_put):
41 * database.c (berkdb_remove):
42 * database.c (Fopen_database):
43 * device-gtk.c (gtk_init_device):
44 * device-msw.c (msprinter_init_device_internal):
45 * device-msw.c (msprinter_default_printer):
46 * device-msw.c (msprinter_init_device):
47 * device-msw.c (sync_printer_with_devmode):
48 * device-msw.c (Fmsprinter_select_settings):
49 * device-x.c (sanity_check_geometry_resource):
50 * device-x.c (Dynarr_add_validified_lisp_string):
51 * device-x.c (x_init_device):
52 * device-x.c (Fx_put_resource):
53 * device-x.c (Fx_valid_keysym_name_p):
54 * device-x.c (Fx_set_font_path):
55 * dialog-msw.c (push_lisp_string_as_unicode):
56 * dialog-msw.c (handle_directory_dialog_box):
57 * dialog-msw.c (handle_file_dialog_box):
58 * dialog-x.c (dbox_descriptor_to_widget_value):
59 * editfns.c (Fformat_time_string):
60 * editfns.c (Fencode_time):
61 * editfns.c (Fset_time_zone_rule):
62 * emacs.c (make_argc_argv):
63 * emacs.c (Fdump_emacs):
64 * emodules.c (emodules_load):
65 * eval.c:
66 * eval.c (maybe_signal_error_1):
67 * event-msw.c (Fdde_alloc_advise_item):
68 * event-msw.c (mswindows_dde_callback):
69 * event-msw.c (mswindows_wnd_proc):
70 * fileio.c (report_error_with_errno):
71 * fileio.c (Fsysnetunam):
72 * fileio.c (Fdo_auto_save):
73 * font-mgr.c (extract_fcapi_string):
74 * font-mgr.c (Ffc_config_app_font_add_file):
75 * font-mgr.c (Ffc_config_app_font_add_dir):
76 * font-mgr.c (Ffc_config_filename):
77 * frame-gtk.c (gtk_set_frame_text_value):
78 * frame-gtk.c (gtk_create_widgets):
79 * frame-msw.c (mswindows_init_frame_1):
80 * frame-msw.c (mswindows_set_title_from_ibyte):
81 * frame-msw.c (msprinter_init_frame_3):
82 * frame-x.c (x_set_frame_text_value):
83 * frame-x.c (x_set_frame_properties):
84 * frame-x.c (start_drag_internal_1):
85 * frame-x.c (x_cde_transfer_callback):
86 * frame-x.c (x_create_widgets):
87 * glyphs-eimage.c (my_jpeg_output_message):
88 * glyphs-eimage.c (jpeg_instantiate):
89 * glyphs-eimage.c (gif_instantiate):
90 * glyphs-eimage.c (png_instantiate):
91 * glyphs-eimage.c (tiff_instantiate):
92 * glyphs-gtk.c (xbm_instantiate_1):
93 * glyphs-gtk.c (gtk_xbm_instantiate):
94 * glyphs-gtk.c (gtk_xpm_instantiate):
95 * glyphs-gtk.c (gtk_xface_instantiate):
96 * glyphs-gtk.c (cursor_font_instantiate):
97 * glyphs-gtk.c (gtk_redisplay_widget):
98 * glyphs-gtk.c (gtk_widget_instantiate_1):
99 * glyphs-gtk.c (gtk_add_tab_item):
100 * glyphs-msw.c (mswindows_xpm_instantiate):
101 * glyphs-msw.c (bmp_instantiate):
102 * glyphs-msw.c (mswindows_resource_instantiate):
103 * glyphs-msw.c (xbm_instantiate_1):
104 * glyphs-msw.c (mswindows_xbm_instantiate):
105 * glyphs-msw.c (mswindows_xface_instantiate):
106 * glyphs-msw.c (mswindows_redisplay_widget):
107 * glyphs-msw.c (mswindows_widget_instantiate):
108 * glyphs-msw.c (add_tree_item):
109 * glyphs-msw.c (add_tab_item):
110 * glyphs-msw.c (mswindows_combo_box_instantiate):
111 * glyphs-msw.c (mswindows_widget_query_string_geometry):
112 * glyphs-x.c (x_locate_pixmap_file):
113 * glyphs-x.c (xbm_instantiate_1):
114 * glyphs-x.c (x_xbm_instantiate):
115 * glyphs-x.c (extract_xpm_color_names):
116 * glyphs-x.c (x_xpm_instantiate):
117 * glyphs-x.c (x_xface_instantiate):
118 * glyphs-x.c (autodetect_instantiate):
119 * glyphs-x.c (safe_XLoadFont):
120 * glyphs-x.c (cursor_font_instantiate):
121 * glyphs-x.c (x_redisplay_widget):
122 * glyphs-x.c (Fchange_subwindow_property):
123 * glyphs-x.c (x_widget_instantiate):
124 * glyphs-x.c (x_tab_control_redisplay):
125 * glyphs.c (pixmap_to_lisp_data):
126 * gui-x.c (menu_separator_style_and_to_external):
127 * gui-x.c (add_accel_and_to_external):
128 * gui-x.c (button_item_to_widget_value):
129 * hpplay.c (player_error_internal):
130 * hpplay.c (play_sound_file):
131 * hpplay.c (play_sound_data):
132 * intl.c (Fset_current_locale):
133 * lisp.h:
134 * menubar-gtk.c (gtk_xemacs_set_accel_keys):
135 * menubar-msw.c (populate_menu_add_item):
136 * menubar-msw.c (populate_or_checksum_helper):
137 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
138 * nt.c (init_user_info):
139 * nt.c (get_long_basename):
140 * nt.c (nt_get_resource):
141 * nt.c (init_mswindows_environment):
142 * nt.c (get_cached_volume_information):
143 * nt.c (mswindows_readdir):
144 * nt.c (read_unc_volume):
145 * nt.c (mswindows_stat):
146 * nt.c (mswindows_getdcwd):
147 * nt.c (mswindows_executable_type):
148 * nt.c (Fmswindows_short_file_name):
149 * ntplay.c (nt_play_sound_file):
150 * objects-gtk.c:
151 * objects-gtk.c (gtk_valid_color_name_p):
152 * objects-gtk.c (gtk_initialize_font_instance):
153 * objects-gtk.c (gtk_font_list):
154 * objects-msw.c (font_enum_callback_2):
155 * objects-msw.c (parse_font_spec):
156 * objects-x.c (x_parse_nearest_color):
157 * objects-x.c (x_valid_color_name_p):
158 * objects-x.c (x_initialize_font_instance):
159 * objects-x.c (x_font_instance_truename):
160 * objects-x.c (x_font_list):
161 * objects-xlike-inc.c (XFUN):
162 * objects-xlike-inc.c (xft_find_charset_font):
163 * process-nt.c (mswindows_report_winsock_error):
164 * process-nt.c (nt_create_process):
165 * process-nt.c (get_internet_address):
166 * process-nt.c (nt_open_network_stream):
167 * process-unix.c:
168 * process-unix.c (allocate_pty):
169 * process-unix.c (get_internet_address):
170 * process-unix.c (unix_canonicalize_host_name):
171 * process-unix.c (unix_open_network_stream):
172 * realpath.c:
173 * select-common.h (lisp_data_to_selection_data):
174 * select-gtk.c (symbol_to_gtk_atom):
175 * select-gtk.c (atom_to_symbol):
176 * select-msw.c (symbol_to_ms_cf):
177 * select-msw.c (mswindows_register_selection_data_type):
178 * select-x.c (symbol_to_x_atom):
179 * select-x.c (x_atom_to_symbol):
180 * select-x.c (hack_motif_clipboard_selection):
181 * select-x.c (Fx_store_cutbuffer_internal):
182 * sound.c (Fplay_sound_file):
183 * sound.c (Fplay_sound):
184 * sound.h (sound_perror):
185 * sysdep.c:
186 * sysdep.c (qxe_allocating_getcwd):
187 * sysdep.c (qxe_execve):
188 * sysdep.c (copy_in_passwd):
189 * sysdep.c (qxe_getpwnam):
190 * sysdep.c (qxe_ctime):
191 * sysdll.c (dll_open):
192 * sysdll.c (dll_function):
193 * sysdll.c (dll_variable):
194 * sysdll.c (search_linked_libs):
195 * sysdll.c (dll_error):
196 * sysfile.h:
197 * sysfile.h (PATHNAME_CONVERT_OUT_TSTR):
198 * sysfile.h (PATHNAME_CONVERT_OUT_UTF_8):
199 * sysfile.h (PATHNAME_CONVERT_OUT):
200 * sysfile.h (LISP_PATHNAME_CONVERT_OUT):
201 * syswindows.h (ITEXT_TO_TSTR):
202 * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR):
203 * syswindows.h (TSTR_TO_LOCAL_FILE_FORMAT):
204 * syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN):
205 * syswindows.h (LISP_LOCAL_FILE_FORMAT_MAYBE_URL_TO_TSTR):
206 * text.h:
207 * text.h (eicpy_ext_len):
208 * text.h (enum new_dfc_src_type):
209 * text.h (EXTERNAL_TO_ITEXT):
210 * text.h (GET_STRERROR):
211 * tooltalk.c (check_status):
212 * tooltalk.c (Fadd_tooltalk_message_arg):
213 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
214 * tooltalk.c (Fadd_tooltalk_pattern_arg):
215 * win32.c (tstr_to_local_file_format):
216 * win32.c (mswindows_lisp_error_1):
217 * win32.c (mswindows_report_process_error):
218 * win32.c (Fmswindows_shell_execute):
219 * win32.c (mswindows_read_link_1):
220
221 Changes involving external/internal format conversion,
222 mostly code cleanup and renaming.
223
224 1. Eliminate the previous macros like LISP_STRING_TO_EXTERNAL
225 that stored its result in a parameter. The new version of
226 LISP_STRING_TO_EXTERNAL returns its result through the
227 return value, same as the previous NEW_LISP_STRING_TO_EXTERNAL.
228 Use the new-style macros throughout the code.
229 2. Rename C_STRING_TO_EXTERNAL and friends to ITEXT_TO_EXTERNAL,
230 in keeping with overall naming rationalization involving
231 Itext and related types.
232
233 Macros involved in previous two:
234
235 EXTERNAL_TO_C_STRING -> EXTERNAL_TO_ITEXT
236 EXTERNAL_TO_C_STRING_MALLOC -> EXTERNAL_TO_ITEXT_MALLOC
237 SIZED_EXTERNAL_TO_C_STRING -> SIZED_EXTERNAL_TO_ITEXT
238 SIZED_EXTERNAL_TO_C_STRING_MALLOC -> SIZED_EXTERNAL_TO_ITEXT_MALLOC
239 C_STRING_TO_EXTERNAL -> ITEXT_TO_EXTERNAL
240 C_STRING_TO_EXTERNAL_MALLOC -> ITEXT_TO_EXTERNAL_MALLOC
241 LISP_STRING_TO_EXTERNAL
242 LISP_STRING_TO_EXTERNAL_MALLOC
243 LISP_STRING_TO_TSTR
244 C_STRING_TO_TSTR -> ITEXT_TO_TSTR
245 TSTR_TO_C_STRING -> TSTR_TO_ITEXT
246
247 The following four still return their values through parameters,
248 since they have more than one value to return:
249
250 C_STRING_TO_SIZED_EXTERNAL -> ITEXT_TO_SIZED_EXTERNAL
251 LISP_STRING_TO_SIZED_EXTERNAL
252 C_STRING_TO_SIZED_EXTERNAL_MALLOC -> ITEXT_TO_SIZED_EXTERNAL_MALLOC
253 LISP_STRING_TO_SIZED_EXTERNAL_MALLOC
254
255 Sometimes additional casts had to be inserted, since the old
256 macros played strange games and completely defeated the type system
257 of the store params.
258 3. Rewrite many places where direct calls to TO_EXTERNAL_FORMAT
259 occurred with calls to one of the convenience macros listed above,
260 or to make_extstring().
261 4. Eliminate SIZED_C_STRING macros (they were hardly used, anyway)
262 and use a direct call to TO_EXTERNAL_FORMAT or TO_INTERNAL_FORMAT.
263 4. Use LISP_PATHNAME_CONVERT_OUT in many places instead of something
264 like LISP_STRING_TO_EXTERNAL(..., Qfile_name).
265 5. Eliminate some temporary variables that are no longer necessary
266 now that we return a value rather than storing it into a variable.
267 6. Some Mule-izing in database.c.
268 7. Error functions:
269 -- A bit of code cleanup in maybe_signal_error_1.
270 -- Eliminate report_file_type_error; it's just an alias for
271 signal_error_2 with params in a different order.
272 -- Fix some places in the hostname-handling code that directly
273 inserted externally-retrieved error strings into the
274 supposed ASCII "reason" param instead of doing the right thing
275 and sticking text descriptive of what was going on in "reason"
276 and putting the external message in a frob.
277 8. Use Ascbyte instead of CIbyte in process-unix.c and maybe one
278 or two other places.
279 9. Some code cleanup in copy_in_passwd() in sysdep.c.
280 10. Fix a real bug due to accidental variable shadowing in
281 tstr_to_local_file_format() in win32.c.
282
283 2010-02-05 Ben Wing <ben@xemacs.org>
284
285 * lisp.h:
286 * lisp.h (staticpro_nodump_1):
287 Define staticpro_1 and staticpro_nodump_1 when not XEMACS_DEBUG.
288
289 * symbols.c (defsymbol_massage_name_1):
290 * symbols.c (defsymbol_massage_multiword_predicate):
291 Cosmetic fixes.
292
293 2010-02-05 Ben Wing <ben@xemacs.org>
294
295 * bytecode.c (bytecode_assert):
296 Use 0 instead of x in disabled_assert calls to avoid errors due
297 to using undefined vars/params (they are defined only when
298 ERROR_CHECK_BYTE_CODE, which also turns on/off the asserts).
299
300 2010-02-04 Ben Wing <ben@xemacs.org>
301
302 * alloc.c (release_breathing_space):
303 * alloc.c (resize_string):
304 * alloc.c (sweep_lcrecords_1):
305 * alloc.c (SWEEP_FIXED_TYPE_BLOCK_1):
306 * alloc.c (ADDITIONAL_FREE_compiled_function):
307 * alloc.c (compact_string_chars):
308 * alloc.c (ADDITIONAL_FREE_string):
309 * alloc.c (sweep_strings):
310 * alloca.c (xemacs_c_alloca):
311 * alsaplay.c (alsa_play_sound_file):
312 * buffer.c (init_initial_directory):
313 * buffer.h:
314 * buffer.h (BUFFER_FREE):
315 * console-stream.c (stream_delete_console):
316 * console-tty.c (free_tty_console_struct):
317 * data.c (Fnumber_to_string):
318 * device-gtk.c (gtk_init_device):
319 * device-gtk.c (free_gtk_device_struct):
320 * device-gtk.c (gtk_delete_device):
321 * device-msw.c (mswindows_delete_device):
322 * device-msw.c (msprinter_delete_device):
323 * device-tty.c (free_tty_device_struct):
324 * device-tty.c (tty_delete_device):
325 * device-x.c (x_init_device):
326 * device-x.c (free_x_device_struct):
327 * device-x.c (x_delete_device):
328 * dialog-msw.c (handle_directory_dialog_box):
329 * dialog-x.c (dbox_descriptor_to_widget_value):
330 * dired-msw.c (Fmswindows_insert_directory):
331 * dired.c (free_user_cache):
332 * dired.c (user_name_completion_unwind):
333 * doc.c (unparesseuxify_doc_string):
334 * doc.c (Fsubstitute_command_keys):
335 * doprnt.c (emacs_doprnt_1):
336 * dumper.c (pdump_load_finish):
337 * dumper.c (pdump_file_free):
338 * dumper.c (pdump_file_unmap):
339 * dynarr.c:
340 * dynarr.c (Dynarr_free):
341 * editfns.c (uncache_home_directory):
342 * editfns.c (Fset_time_zone_rule):
343 * elhash.c:
344 * elhash.c (pdump_reorganize_hash_table):
345 * elhash.c (maphash_unwind):
346 * emacs.c (make_arg_list_1):
347 * emacs.c (free_argc_argv):
348 * emacs.c (sort_args):
349 * emacs.c (Frunning_temacs_p):
350 * emodules.c (attempt_module_delete):
351 * eval.c (free_pointer):
352 * event-Xt.c (unselect_filedesc):
353 * event-Xt.c (emacs_Xt_select_process):
354 * event-gtk.c (unselect_filedesc):
355 * event-gtk.c (dragndrop_data_received):
356 * event-msw.c (winsock_closer):
357 * event-msw.c (mswindows_dde_callback):
358 * event-msw.c (mswindows_wnd_proc):
359 * event-stream.c (finalize_command_builder):
360 * event-stream.c (free_command_builder):
361 * extents.c (free_gap_array):
362 * extents.c (free_extent_list):
363 * extents.c (free_soe):
364 * extents.c (extent_fragment_delete):
365 * extents.c (extent_priority_sort_function):
366 * file-coding.c (make_coding_system_1):
367 * file-coding.c (coding_finalizer):
368 * file-coding.c (set_coding_stream_coding_system):
369 * file-coding.c (chain_finalize_coding_stream_1):
370 * file-coding.c (chain_finalize):
371 * file-coding.c (free_detection_state):
372 * file-coding.c (coding_category_symbol_to_id):
373 * fileio.c:
374 * fileio.c (Ffile_name_directory):
375 * fileio.c (if):
376 * fileio.c (Ffile_symlink_p):
377 * filelock.c (FREE_LOCK_INFO):
378 * filelock.c (current_lock_owner):
379 * font-mgr.c (Ffc_name_unparse):
380 * font-mgr.c (Ffc_pattern_duplicate):
381 * frame-gtk.c (gtk_delete_frame):
382 * frame-msw.c (mswindows_delete_frame):
383 * frame-msw.c (msprinter_delete_frame):
384 * frame-x.c (x_cde_destroy_callback):
385 * frame-x.c (Fcde_start_drag_internal):
386 * frame-x.c (x_cde_transfer_callback):
387 * frame-x.c (x_delete_frame):
388 * frame.c (update_frame_title):
389 * frame.c (Fset_frame_pointer):
390 * gc.c (register_for_finalization):
391 * gccache-gtk.c (free_gc_cache):
392 * gccache-gtk.c (gc_cache_lookup):
393 * gccache-x.c (free_gc_cache):
394 * gccache-x.c (gc_cache_lookup):
395 * glyphs-eimage.c:
396 * glyphs-eimage.c (jpeg_instantiate_unwind):
397 * glyphs-eimage.c (gif_instantiate_unwind):
398 * glyphs-eimage.c (png_instantiate_unwind):
399 * glyphs-eimage.c (png_instantiate):
400 * glyphs-eimage.c (tiff_instantiate_unwind):
401 * glyphs-gtk.c (convert_EImage_to_GDKImage):
402 * glyphs-gtk.c (gtk_finalize_image_instance):
403 * glyphs-gtk.c (gtk_init_image_instance_from_eimage):
404 * glyphs-gtk.c (gtk_xpm_instantiate):
405 * glyphs-msw.c (convert_EImage_to_DIBitmap):
406 * glyphs-msw.c (mswindows_init_image_instance_from_eimage):
407 * glyphs-msw.c (mswindows_initialize_image_instance_mask):
408 * glyphs-msw.c (xpm_to_eimage):
409 * glyphs-msw.c (mswindows_xpm_instantiate):
410 * glyphs-msw.c (xbm_create_bitmap_from_data):
411 * glyphs-msw.c (mswindows_finalize_image_instance):
412 * glyphs-x.c (convert_EImage_to_XImage):
413 * glyphs-x.c (x_finalize_image_instance):
414 * glyphs-x.c (x_init_image_instance_from_eimage):
415 * glyphs-x.c (x_xpm_instantiate):
416 * gui-x.c (free_popup_widget_value_tree):
417 * hash.c (free_hash_table):
418 * hash.c (grow_hash_table):
419 * hash.c (pregrow_hash_table_if_necessary):
420 * imgproc.c (build_EImage_quantable):
421 * insdel.c (uninit_buffer_text):
422 * intl-win32.c (convert_multibyte_to_internal_malloc):
423 * intl.c:
424 * intl.c (Fset_current_locale):
425 * keymap.c:
426 * keymap.c (where_is_recursive_mapper):
427 * keymap.c (where_is_internal):
428 * lisp.h:
429 * lisp.h (xfree):
430 * lstream.c (Lstream_close):
431 * lstream.c (resizing_buffer_closer):
432 * mule-coding.c:
433 * mule-coding.c (iso2022_finalize_detection_state):
434 * nt.c:
435 * nt.c (mswindows_get_long_filename):
436 * nt.c (nt_get_resource):
437 * nt.c (init_mswindows_environment):
438 * nt.c (get_cached_volume_information):
439 * nt.c (mswindows_opendir):
440 * nt.c (mswindows_closedir):
441 * nt.c (mswindows_readdir):
442 * nt.c (mswindows_stat):
443 * nt.c (mswindows_getdcwd):
444 * nt.c (Fmswindows_long_file_name):
445 * ntplay.c (nt_play_sound_file):
446 * ntplay.c (play_sound_data_1):
447 * number-gmp.c (gmp_free):
448 * number-gmp.c (init_number_gmp):
449 * number-mp.c (bignum_to_string):
450 * number-mp.c (BIGNUM_TO_TYPE):
451 * number.c (bignum_print):
452 * number.c (bignum_convfree):
453 * number.c (ratio_print):
454 * number.c (bigfloat_print):
455 * number.c (bigfloat_finalize):
456 * objects-gtk.c (gtk_finalize_color_instance):
457 * objects-gtk.c (gtk_finalize_font_instance):
458 * objects-msw.c (mswindows_finalize_color_instance):
459 * objects-msw.c (mswindows_finalize_font_instance):
460 * objects-tty.c (tty_finalize_color_instance):
461 * objects-tty.c (tty_finalize_font_instance):
462 * objects-tty.c (tty_font_list):
463 * objects-x.c (x_finalize_color_instance):
464 * objects-x.c (x_finalize_font_instance):
465 * process.c:
466 * process.c (finalize_process):
467 * realpath.c:
468 * redisplay.c (add_propagation_runes):
469 * regex.c:
470 * regex.c (xfree):
471 * regex.c (REGEX_FREE_STACK):
472 * regex.c (FREE_STACK_RETURN):
473 * regex.c (regex_compile):
474 * regex.c (regexec):
475 * regex.c (regfree):
476 * scrollbar-gtk.c (gtk_free_scrollbar_instance):
477 * scrollbar-gtk.c (gtk_release_scrollbar_instance):
478 * scrollbar-msw.c (mswindows_free_scrollbar_instance):
479 * scrollbar-msw.c (unshow_that_mofo):
480 * scrollbar-x.c (x_free_scrollbar_instance):
481 * scrollbar-x.c (x_release_scrollbar_instance):
482 * select-gtk.c (emacs_gtk_selection_handle):
483 * select-msw.c (mswindows_own_selection):
484 * select-x.c:
485 * select-x.c (x_handle_selection_request):
486 * select-x.c (unexpect_property_change):
487 * select-x.c (x_handle_property_notify):
488 * select-x.c (receive_incremental_selection):
489 * select-x.c (x_get_window_property_as_lisp_data):
490 * select-x.c (Fx_get_cutbuffer_internal):
491 * specifier.c (finalize_specifier):
492 * syntax.c (uninit_buffer_syntax_cache):
493 * sysdep.c (qxe_allocating_getcwd):
494 * sysdep.c (qxe_lstat):
495 * sysdep.c (copy_in_passwd):
496 * sysdep.c (qxe_ctime):
497 * sysdep.c (closedir):
498 * sysdep.c (DIRSIZ):
499 * termcap.c (tgetent):
500 * termcap.c (tprint):
501 * tests.c (Ftest_data_format_conversion):
502 * text.c (new_dfc_convert_copy_data):
503 * text.h (eifree):
504 * text.h (eito_alloca):
505 * text.h (eito_external):
506 * toolbar-msw.c (mswindows_output_toolbar):
507 * ui-gtk.c (CONVERT_RETVAL):
508 * ui-gtk.c (__allocate_object_storage):
509 * unicode.c (free_from_unicode_table):
510 * unicode.c (free_to_unicode_table):
511 * unicode.c (free_charset_unicode_tables):
512 * win32.c (mswindows_read_link_1):
513 Rename: xfree(VAL, TYPE)->xfree(VAL)
514
515 Command used:
516
517 gr 'xfree *\((.*),.*\);' 'xfree (\1);' *.[ch]
518
519 Followed by grepping for 'xfree.*,' and fixing anything left.
520
521 Rationale: Having to specify the TYPE argument is annoying and
522 error-prone. It was originally put in to work around warnings
523 due to strict aliasing but years and years ago I rewrote it
524 in a way that doesn't use the TYPE argument at all and no one
525 has complained since then. (And anyway, XEmacs is far from
526 ever being in compliance with strict aliasing and would require
527 far-reaching changes to get that way.)
528
529 2010-02-04 Ben Wing <ben@xemacs.org>
530
531 * emacs.c (SHEBANG_EXE_PROGNAME_LENGTH):
532 * emacs.c (main_1):
533 Restore old definition of SHEBANG_EXE_PROGNAME_LENGTH; not possible
534 to ANSI-concatenate wide and narrow strings.
535 * print.c (write_msg_istring):
536 * print.c (write_msg_cistring):
537 * print.c (write_msg_ascstring):
538 Can't return a value in a void-declared function.
539
540 2010-02-04 Ben Wing <ben@xemacs.org>
541
542 * filelock.c:
543 * filelock.c (fill_in_lock_file_name):
544 Name the lock symlink file .#FN# instead of .#FN for file FN, so
545 that the link file doesn't have a .c or .el or whatever extension,
546 which confuses programs/functions that search by extension (e.g.
547 etags, byte-recompile-directory, etc.).
548
549 2010-02-04 Ben Wing <ben@xemacs.org>
550
551 * symbols.c (defsymbol_massage_name_1):
552 * symbols.c (defsymbol_nodump):
553 * symbols.c (defsymbol):
554 * symbols.c (defkeyword):
555 * symeval.h (DEFVAR_SYMVAL_FWD_OBJECT):
556 Put this back again:
557
558 Make the various calls to staticpro() instead call staticpro_1(),
559 passing in the name of the C var being staticpro'ed, so that it
560 shows up in staticpro_names. Otherwise staticpro_names just has
561 1000+ copies of the word `location'.
562
563 2010-02-04 Ben Wing <ben@xemacs.org>
564
565 * bytecode.c (assert_failed_with_remembered_ops):
566 * bytecode.c (init_opcode_table_multi_op):
567 Declare some things const to shut up G++ v4 warnings.
568
569 * redisplay.c (add_ibyte_string_runes):
570 * redisplay.c (add_string_to_fstring_db_runes):
571 * redisplay.c (generate_fstring_runes):
572 * redisplay.c (window_line_number):
573 * redisplay.c (decode_mode_spec):
574 Use Ascbyte instead of char in various places.
575
576 2010-02-03 Ben Wing <ben@xemacs.org>
577
578 * frame.c (Fmake_frame):
579 * glyphs.c:
580 * glyphs.c (NUM_PRECACHED_GLYPHS):
581 * glyphs.c (get_glyph_cachel_index):
582 * glyphs.c (FROB):
583 * glyphs.c (mark_glyph_cachels_as_not_updated):
584 * redisplay.c (regenerate_window):
585 * redisplay.c (redisplay_window):
586 When creating a frame, call reset_glyph_cachels on the minibuffer
587 window as well as the root window. Fixes a crash due to other
588 glyphs (e.g. the gutter glyph) getting in the glyph cachel before
589 the pre-cached glyphs that are supposed to have fixed indices
590 (continuation-glyph, truncation-glyph, etc.).
591
592 Add a bunch of asserts to make sure that the glyph cachels always
593 properly contain the pre-cached glyphs.
594
595 2010-02-03 Ben Wing <ben@xemacs.org>
596
597 * device-x.c (x_get_resource_prefix):
598 * device-x.c (Fx_get_resource):
599 * device-x.c (Fx_get_resource_prefix):
600 * device-x.c (Fx_put_resource):
601 * dialog-msw.c:
602 * dialog-msw.c (handle_question_dialog_box):
603 * dired-msw.c (mswindows_sort_files):
604 * dired-msw.c (mswindows_get_files):
605 * extents.c (extent_fragment_sort_by_priority):
606 * extents.c (Fset_extent_parent):
607 * file-coding.c (coding_reader):
608 * file-coding.c (coding_writer):
609 * file-coding.c (gzip_convert):
610 * frame.c (generate_title_string):
611 * gutter.c (calculate_gutter_size_from_display_lines):
612 * indent.c (vmotion_1):
613 * lread.c (read_bit_vector):
614 * mule-coding.c (iso2022_decode):
615 * rangetab.c:
616 * rangetab.c (Fcopy_range_table):
617 * rangetab.c (Fget_range_table):
618 * rangetab.c (unified_range_table_copy_data):
619 * redisplay-msw.c (mswindows_output_string):
620 * redisplay-output.c (output_display_line):
621 * redisplay-output.c (redisplay_move_cursor):
622 * redisplay-output.c (redisplay_clear_bottom_of_window):
623 * redisplay-tty.c (tty_output_ichar_dynarr):
624 * redisplay-tty.c (set_foreground_to):
625 * redisplay-tty.c (set_background_to):
626 * redisplay-xlike-inc.c (XLIKE_output_string):
627 * redisplay.c (redisplay_window_text_width_string):
628 * redisplay.c (redisplay_text_width_string):
629 * redisplay.c (create_text_block):
630 * redisplay.c (SET_CURRENT_MODE_CHARS_PIXSIZE):
631 * redisplay.c (generate_fstring_runes):
632 * redisplay.c (regenerate_modeline):
633 * redisplay.c (ensure_modeline_generated):
634 * redisplay.c (real_current_modeline_height):
635 * redisplay.c (create_string_text_block):
636 * redisplay.c (regenerate_window):
637 * redisplay.c (REGEN_INC_FIND_START_END):
638 * redisplay.c (point_visible):
639 * redisplay.c (redisplay_window):
640 * redisplay.c (mark_glyph_block_dynarr):
641 * redisplay.c (line_start_cache_start):
642 * redisplay.c (start_with_line_at_pixpos):
643 * redisplay.c (update_line_start_cache):
644 * redisplay.c (glyph_to_pixel_translation):
645 * redisplay.c (pixel_to_glyph_translation):
646 * sysdep.c (qxe_readdir):
647 * text.c (dfc_convert_to_external_format):
648 * text.c (dfc_convert_to_internal_format):
649 * toolbar-common.c (common_output_toolbar_button):
650 * window.c (window_modeline_height):
651 * window.c (Fwindow_last_line_visible_height):
652 * window.c (window_displayed_height):
653 * window.c (window_scroll):
654 * window.c (get_current_pixel_pos):
655 Use Dynarr_begin() in place of Dynarr_atp (foo, 0).
656
657 * dynarr.c (Dynarr_realloc):
658 * dynarr.c (Dynarr_lisp_realloc):
659 * dynarr.c (Dynarr_resize):
660 * dynarr.c (Dynarr_insert_many):
661 * dynarr.c (Dynarr_delete_many):
662 * dynarr.c (Dynarr_memory_usage):
663 * dynarr.c (stack_like_malloc):
664 * dynarr.c (stack_like_free):
665 * lisp.h:
666 * lisp.h (DECLARE_DYNARR_LISP_IMP):
667 * lisp.h (XD_DYNARR_DESC):
668 * lisp.h (Dynarr_pop):
669 * gutter.c (output_gutter):
670 * redisplay-output.c (sync_rune_structs):
671 * redisplay-output.c (redisplay_output_window):
672 Redo the dynarr code, add greater checks.
673
674 Rename the `len', `largest' and `max' members to `len_',
675 `largest_' and `max_' to try and catch existing places that might
676 directly modify these values. Make new accessors Dynarr_largest()
677 and Dynarr_max() and make them and existing Dynarr_length() be
678 non-lvalues by adding '+ 0' to them; fix a couple of places in the
679 redisplay code that tried to modify the length directly by setting
680 Dynarr_length(). Use the accessors whenever possible even in the
681 dynarr code itself. The accessors also verify that 0 <= len <=
682 largest <= max. Rename settor function Dynarr_set_size() to
683 Dynarr_set_length() and use it more consistently; also create
684 lower-level Dynarr_set_length_1(). This latter function should be
685 the only function that directly modifies the `len_' member of a
686 Dynarr, and in the process makes sure that the `largest' value is
687 kept correct.
688
689 Consistently use ERROR_CHECK_STRUCTURES instead of
690 ERROR_CHECK_TYPES for error-checking code. Reintroduce the
691 temporarily disabled verification code on the positions of
692 Dynarr_at(), Dynarr_atp() and Dynarr_atp_past_end().
693 Also create Dynarr_resize_if() in place of a repeated
694 code fragment. Clean up all the functions that modify Dynarrs to
695 use the new macros and functions and verify the correctness of the
696 Dynarr both before and after the change.
697
698 Note that there are two kinds of verification -- one for accessing
699 and one for modifying. The difference is that the modify
700 verification additionally checks to make sure that the Dynarr
701 isn't locked. (This is used in redisplay to check for problems
702 with reentrancy.)
703
704 * lrecord.h: Move XD_DYNARR_DESC to lisp.h, grouping with the dynarr code.
705
706 2010-02-03 Jerry James <james@xemacs.org>
707
708 * s/mach-bsd4-3.h: Add historical copyright and license information,
709 unearthed by Ben Wing.
710
711 2010-02-03 Ben Wing <ben@xemacs.org>
712
713 * bytecode.c:
714 Fix minor compile problem.
715
716 2010-02-03 Ben Wing <ben@xemacs.org>
717
718 * symbols.c (defsymbol_massage_name_1):
719 * symbols.c (defsymbol_nodump):
720 * symbols.c (defsymbol):
721 * symbols.c (defkeyword):
722 * symeval.h (DEFVAR_SYMVAL_FWD_OBJECT):
723 Temporarily back out staticpro-related changes in symbols.c and
724 symeval.h to fix compile problems, will put back when `latest-fix'
725 workspace gets merged in.
726
727 2010-02-03 Ben Wing <ben@xemacs.org>
728
729 * alloc.c (Fmake_byte_code):
730 * lread.c:
731 * lread.c (readevalloop):
732 * lread.c (Fread):
733 * lread.c (Fread_from_string):
734 * lread.c (read_list_conser):
735 * lread.c (read_list):
736 * lread.c (vars_of_lread):
737 Remove the old kludgy stuff bracketed by `#ifdef
738 COMPILED_FUNCTION_ANNOTATION_HACK_OLD_WAY'.
739
740 2010-02-03 Ben Wing <ben@xemacs.org>
741
742 * alloc.c (Fmake_byte_code):
743 * bytecode.h:
744 * lisp.h:
745 * lread.c:
746 * lread.c (readevalloop):
747 * lread.c (Fread):
748 * lread.c (Fread_from_string):
749 * lread.c (read_list_conser):
750 * lread.c (read_list):
751 * lread.c (vars_of_lread):
752 * symbols.c:
753 * symbols.c (Fdefine_function):
754 Turn on the "compiled-function annotation hack". Implement it
755 properly by hooking into Fdefalias(). Note in the docstring to
756 `defalias' that we do this. Remove some old broken code and
757 change code that implemented the old kludgy way of hooking into
758 the Lisp reader into bracketed by `#ifdef
759 COMPILED_FUNCTION_ANNOTATION_HACK_OLD_WAY', which is not enabled.
760
761 Also enable byte-code metering when DEBUG_XEMACS -- this is a form
762 of profiling for computing histograms of which sequences of two
763 bytecodes are used most often.
764
765 * bytecode-ops.h:
766 * bytecode-ops.h (OPCODE):
767 New file. Extract out all the opcodes and declare them using
768 OPCODE(), a bit like frame slots and such. This way the file can
769 be included multiple times if necessary to iterate multiple times
770 over the byte opcodes.
771
772 * bytecode.c:
773 * bytecode.c (NUM_REMEMBERED_BYTE_OPS):
774 * bytecode.c (OPCODE):
775 * bytecode.c (assert_failed_with_remembered_ops):
776 * bytecode.c (READ_UINT_2):
777 * bytecode.c (READ_INT_1):
778 * bytecode.c (READ_INT_2):
779 * bytecode.c (PEEK_INT_1):
780 * bytecode.c (PEEK_INT_2):
781 * bytecode.c (JUMP_RELATIVE):
782 * bytecode.c (JUMP_NEXT):
783 * bytecode.c (PUSH):
784 * bytecode.c (POP_WITH_MULTIPLE_VALUES):
785 * bytecode.c (DISCARD):
786 * bytecode.c (UNUSED):
787 * bytecode.c (optimize_byte_code):
788 * bytecode.c (optimize_compiled_function):
789 * bytecode.c (Fbyte_code):
790 * bytecode.c (vars_of_bytecode):
791 * bytecode.c (init_opcode_table_multi_op):
792 * bytecode.c (reinit_vars_of_bytecode):
793 * emacs.c (main_1):
794 * eval.c (funcall_compiled_function):
795 * symsinit.h:
796 Any time we change either the instruction pointer or the stack
797 pointer, assert that we're going to move it to a valid location.
798 This should catch failures right when they occur rather than
799 sometime later. This requires that we pass in another couple of
800 parameters into some functions (only with error-checking enabled,
801 see below).
802
803 Also keep track, using a circular queue, of the last 100 byte
804 opcodes seen, and when we hit an assert failure during byte-code
805 execution, output the contents of the queue in a nice readable
806 fashion. This requires that bytecode-ops.h be included a second
807 time so that a table mapping opcodes to the name of their operation
808 can be constructed. This table is constructed in new function
809 reinit_vars_of_bytecode().
810
811 Everything in the last two paras happens only when
812 ERROR_CHECK_BYTE_CODE.
813
814 Add some longish comments describing how the arrays that hold the
815 stack and instructions, and the pointers used to access them, work.
816
817 * gc.c:
818 Import some code from my `latest-fix' workspace to mark the
819 staticpro's in order from lowest to highest, rather than highest to
820 lowest, so it's easier to debug when something goes wrong.
821
822 * lisp.h (abort_with_message): Renamed from abort_with_msg().
823
824 * symbols.c (defsymbol_massage_name_1):
825 * symbols.c (defsymbol_nodump):
826 * symbols.c (defsymbol):
827 * symbols.c (defkeyword):
828 * symeval.h (DEFVAR_SYMVAL_FWD_OBJECT):
829 Make the various calls to staticpro() instead call staticpro_1(),
830 passing in the name of the C var being staticpro'ed, so that it
831 shows up in staticpro_names. Otherwise staticpro_names just has
832 1000+ copies of the word `location'.
833
1 2010-02-02 Ben Wing <ben@xemacs.org> 834 2010-02-02 Ben Wing <ben@xemacs.org>
2 835
3 * bytecode.c (execute_rare_opcode): 836 * bytecode.c (execute_rare_opcode):
4 * lisp.h (abort_with_msg): New. 837 * lisp.h (abort_with_msg): New.
5 When aborting due to unknown opcode, output more descriptive msg. 838 When aborting due to unknown opcode, output more descriptive msg.
109 XFT code when included in a *-gtk.c file. 942 XFT code when included in a *-gtk.c file.
110 943
111 944
112 2010-02-01 Ben Wing <ben@xemacs.org> 945 2010-02-01 Ben Wing <ben@xemacs.org>
113 946
947 * alloc.c (common_init_alloc_early):
948 Fix compiler breakage.
949
950 2010-02-01 Ben Wing <ben@xemacs.org>
951
114 * objects-gtk-impl.h: 952 * objects-gtk-impl.h:
115 * objects-gtk-impl.h (XCOLOR_INSTANCE_GTK_COLOR): 953 * objects-gtk-impl.h (XCOLOR_INSTANCE_GTK_COLOR):
116 * objects-gtk-impl.h (XFONT_INSTANCE_GTK_FONT): 954 * objects-gtk-impl.h (XFONT_INSTANCE_GTK_FONT):
117 * objects-x-impl.h (XCOLOR_INSTANCE_X_COLOR): 955 * objects-x-impl.h (XCOLOR_INSTANCE_X_COLOR):
118 * objects-x-impl.h (XFONT_INSTANCE_X_FONT): 956 * objects-x-impl.h (XFONT_INSTANCE_X_FONT):
119 Define XCOLOR_INSTANCE_X_COLOR, XCOLOR_INSTANCE_GTK_COLOR, 957 Define XCOLOR_INSTANCE_X_COLOR, XCOLOR_INSTANCE_GTK_COLOR,
120 XFONT_INSTANCE_X_FONT, XFONT_INSTANCE_GTK_FONT for convenience 958 XFONT_INSTANCE_X_FONT, XFONT_INSTANCE_GTK_FONT for convenience
121 purposes. Fixes compile bug in redisplay-xlike-inc.c. 959 purposes. Fixes compile bug in redisplay-xlike-inc.c.
960
961 2010-01-29 Ben Wing <ben@xemacs.org>
962
963 * lisp.h:
964 * objects.h (set_face_boolean_attached_to):
965 Use lisp.h for EXFUN of Fregexp_quote, that's what it's for.
122 966
123 2010-02-01 Ben Wing <ben@xemacs.org> 967 2010-02-01 Ben Wing <ben@xemacs.org>
124 968
125 * compiler.h: 969 * compiler.h:
126 Create a USED() macro to force unused-var warnings to go away, 970 Create a USED() macro to force unused-var warnings to go away,
438 1282
439 * number.c (Fdenominator): 1283 * number.c (Fdenominator):
440 Oops, change #else to #endif here; thank you Vin Shelton, thank 1284 Oops, change #else to #endif here; thank you Vin Shelton, thank
441 you Robert Delius Royar. 1285 you Robert Delius Royar.
442 1286
1287 2010-01-28 Ben Wing <ben@xemacs.org>
1288
1289 * device-x.c (x_init_device):
1290 * emodules.c (emodules_load):
1291 * emodules.c (emodules_doc_subr):
1292 * emodules.c (emodules_doc_sym):
1293 * emodules.h:
1294 Make the externally-called functions emodules_doc_sym() and
1295 emodules_doc_subr() take Ascbyte * pointers since they're usually
1296 passed string constants and we can't guarantee the encoding if
1297 it's not ASCII. Fix pointer type in calls to dll_variable(), etc.
1298
443 2010-01-27 Ben Wing <ben@xemacs.org> 1299 2010-01-27 Ben Wing <ben@xemacs.org>
444 1300
445 * casetab.c: Typo in comment. 1301 * lread.c (vars_of_lread):
1302 Turn on load-ignore-out-of-date-elc-files by default.
1303
1304 2010-01-27 Ben Wing <ben@xemacs.org>
1305
1306 * event-unixoid.c (read_event_from_tty_or_stream_desc):
1307 Don't try to write one byte into a four-byte variable, leaving
1308 the rest undefined. This is a recipe for crashing.
1309
1310 2010-01-27 Ben Wing <ben@xemacs.org>
1311
1312 * .gdbinit.in.in:
1313 * README:
1314 * abbrev.c (write_abbrev):
1315 * abbrev.c (describe_abbrev):
1316 * alloc.c (make_extstring):
1317 * alloc.c (build_istring):
1318 * alloc.c (build_cistring):
1319 * alloc.c (build_ascstring):
1320 * alloc.c (build_extstring):
1321 * alloc.c (build_msg_istring):
1322 * alloc.c (build_defer_istring):
1323 * buffer.c (Fgenerate_new_buffer_name):
1324 * buffer.c (init_buffer_2):
1325 * console-tty.c (tty_init_console):
1326 * console-x.c (get_display_arg_connection):
1327 * console-x.c (x_perhaps_init_unseen_key_defaults):
1328 * database.c (dbm_map):
1329 * database.c (dbm_get):
1330 * database.c (berkdb_get):
1331 * database.c (berkdb_map):
1332 * device-gtk.c (FROB_PIXMAP):
1333 * device-gtk.c (Fgtk_style_info):
1334 * device-msw.c (msprinter_default_printer):
1335 * device-msw.c (sync_printer_with_devmode):
1336 * device-x.c (coding_system_of_xrm_database):
1337 * device-x.c (x_init_device):
1338 * device-x.c (signal_if_x_error):
1339 * device-x.c (Fx_get_resource):
1340 * device-x.c (Fx_server_vendor):
1341 * device-x.c (Fx_get_font_path):
1342 * dialog-x.c (maybe_run_dbox_text_callback):
1343 * doc.c (extract_object_file_name):
1344 * doc.c (unparesseuxify_doc_string):
1345 * doc.c (get_doc_string):
1346 * doc.c (get_object_file_name):
1347 * doc.c (Fdocumentation):
1348 * doc.c (Fsnarf_documentation):
1349 * doc.c (Fsubstitute_command_keys):
1350 * editfns.c (init_editfns):
1351 * editfns.c (Ftemp_directory):
1352 * editfns.c (Fuser_login_name):
1353 * editfns.c (Fuser_real_login_name):
1354 * editfns.c (Fuser_home_directory):
1355 * editfns.c (Fformat_time_string):
1356 * editfns.c (Fcurrent_time_string):
1357 * editfns.c (Fcurrent_time_zone):
1358 * emacs.c:
1359 * emacs.c (main_1):
1360 * emodules.c (Flist_modules):
1361 * emodules.c (emodules_load):
1362 * emodules.c (emodules_doc_sym):
1363 * emodules.c (vars_of_module):
1364 * event-Xt.c (x_has_keysym):
1365 * event-gtk.c (emacs_gtk_format_magic_event):
1366 * event-gtk.c (dragndrop_data_received):
1367 * event-gtk.c (gtk_reset_key_mapping):
1368 * event-msw.c (mswindows_dde_callback):
1369 * event-msw.c (mswindows_wnd_proc):
1370 * faces.c (complex_vars_of_faces):
1371 * file-coding.c (find_coding_system):
1372 * file-coding.c (setup_eol_coding_systems):
1373 * file-coding.c (make_coding_system_1):
1374 * file-coding.c (snarf_coding_system):
1375 * fileio.c:
1376 * fileio.c (lisp_strerror):
1377 * fileio.c (Ffile_name_directory):
1378 * fileio.c (Ffile_name_as_directory):
1379 * fileio.c (Fdirectory_file_name):
1380 * fileio.c (if):
1381 * fileio.c (Ffile_symlink_p):
1382 * fileio.c (Fencrypt_string):
1383 * fileio.c (Fdecrypt_string):
1384 * filelock.c (lock_file):
1385 * filelock.c (Ffile_locked_p):
1386 * floatfns.c (matherr):
1387 * font-mgr.c (build_fcapi_string):
1388 * font-mgr.c (make_xlfd_font_regexp):
1389 * frame-msw.c (mswindows_window_id):
1390 * frame-msw.c (mswindows_frame_property):
1391 * frame-x.c:
1392 * frame-x.c (color_to_string):
1393 * frame-x.c (maybe_set_frame_title_format):
1394 * frame-x.c (x_cde_transfer_callback):
1395 * frame-x.c (Fx_window_id):
1396 * glade.c (connector):
1397 * glade.c (Fglade_xml_textdomain):
1398 * glade.c (syms_of_glade):
1399 * glyphs-eimage.c (jpeg_instantiate):
1400 * glyphs-eimage.c (png_instantiate):
1401 * glyphs-eimage.c (tiff_instantiate):
1402 * glyphs-gtk.c (font_instantiate):
1403 * glyphs-gtk.c (BUILD_GLYPH_INST):
1404 * glyphs-x.c (x_locate_pixmap_file):
1405 * glyphs-x.c (font_instantiate):
1406 * glyphs-x.c (x_widget_property):
1407 * glyphs-x.c (BUILD_GLYPH_INST):
1408 * glyphs.c (print_image_instance):
1409 * glyphs.c (bitmap_to_lisp_data):
1410 * glyphs.c (pixmap_to_lisp_data):
1411 * gpmevent.c (turn_off_gpm):
1412 * gpmevent.c (Fgpm_enabled_p):
1413 * gpmevent.c (Fgpm_enable):
1414 * gtk-glue.c (__make_string_mapper):
1415 * gtk-glue.c (xemacs_gtklist_to_list):
1416 * gtk-xemacs.c (FROB_FACE):
1417 * gtk-xemacs.c (xemacs_gtk_convert_color):
1418 * hpplay.c (player_error_internal):
1419 * hpplay.c (myHandler):
1420 * insdel.c (buffer_insert_ascstring_1):
1421 * insdel.h:
1422 * insdel.h (buffer_insert_ascstring):
1423 * intl.c (Fcurrent_locale):
1424 * intl.c (Fset_current_locale):
1425 * keymap.c (make_key_description):
1426 * keymap.c (Ftext_char_description):
1427 * keymap.c (describe_command):
1428 * keymap.c (describe_map):
1429 * lisp.h:
1430 * lread.c:
1431 * lread.c (locate_file_in_directory_mapper):
1432 * lread.c (locate_file_construct_suffixed_files_mapper):
1433 * mule-charset.c (Fmake_charset):
1434 * nt.c (Fmswindows_short_file_name):
1435 * nt.c (Fmswindows_long_file_name):
1436 * objects-gtk.c (__get_gtk_font_truename):
1437 * objects-gtk.c (__gtk_font_list_internal):
1438 * objects-msw.c (font_enum_callback_2):
1439 * objects-msw.c (create_hfont_from_font_spec):
1440 * objects-msw.c (mswindows_font_list):
1441 * objects-msw.c (mswindows_font_spec_matches_charset_stage_2):
1442 * objects-tty.c (tty_initialize_font_instance):
1443 * objects-x.c (x_font_truename):
1444 * objects-x.c (x_font_instance_truename):
1445 * objects-x.c (x_font_instance_properties):
1446 * objects-x.c (x_font_list):
1447 * print.c (write_cistring):
1448 * print.c (print_vector_internal):
1449 * print.c (print_cons):
1450 * process-nt.c (nt_canonicalize_host_name):
1451 * process-unix.c (unix_create_process):
1452 * process-unix.c (unix_canonicalize_host_name):
1453 * process.c (status_message):
1454 * process.c (status_notify):
1455 * process.c (init_xemacs_process):
1456 * process.c (syms_of_process):
1457 * redisplay-tty.c (term_get_fkeys_1):
1458 * redisplay-tty.c (CONDITIONAL_REASSIGN):
1459 * search.c (compile_pattern_1):
1460 * select-common.h (selection_data_to_lisp_data):
1461 * select-gtk.c (atom_to_symbol):
1462 * select-gtk.c (PROCESSING_GTK_CODE):
1463 * select-msw.c (mswindows_get_foreign_selection):
1464 * select-x.c (x_atom_to_symbol):
1465 * select-x.c (Fx_get_cutbuffer_internal):
1466 * symbols.c (intern_istring):
1467 * symbols.c (intern):
1468 * symbols.c (intern_converting_underscores_to_dashes):
1469 * symbols.c (Fintern):
1470 * sysdep.c (init_system_name):
1471 * sysdll.c (dll_error):
1472 * sysdll.c (dll_open):
1473 * syswindows.h:
1474 * syswindows.h (build_tstr_string):
1475 * tests.c (DFC_CHECK_LENGTH):
1476 * tests.c (DFC_CHECK_CONTENT):
1477 * tests.c (DFC_RESULT_PASS):
1478 * tests.c (Ftest_data_format_conversion):
1479 * text.c:
1480 * text.c (new_dfc_convert_now_damn_it):
1481 * text.h:
1482 * text.h (build_wext_string):
1483 * tooltalk.c (tt_build_c_string):
1484 * tooltalk.c (Ftooltalk_default_procid):
1485 * tooltalk.c (Ftooltalk_default_session):
1486 * tooltalk.c (init_tooltalk):
1487 * ui-byhand.c (Fgtk_clist_get_text):
1488 * ui-byhand.c (Fgtk_clist_get_pixtext):
1489 * ui-byhand.c (Fgtk_label_get):
1490 * ui-byhand.c (Fgtk_notebook_query_tab_label_packing):
1491 * ui-gtk.c (emacs_gtk_object_printer):
1492 * ui-gtk.c (emacs_gtk_boxed_printer):
1493 * ui-gtk.c (gtk_type_to_lisp):
1494 * ui-gtk.c (symbol_to_enum):
1495 * ui-gtk.c (enum_to_symbol):
1496 * unexaix.c (report_error):
1497 * unexaix.c (ERROR0):
1498 * unexec.c (report_error):
1499 * unexec.c (ERROR0):
1500 * unicode.c (unicode_to_ichar):
1501 * win32.c (tstr_to_local_file_format):
1502 * win32.c (Fmswindows_cygwin_to_win32_path):
1503 * win32.c (struct read_link_hash):
1504 * xemacs.def.in.in:
1505
1506 Rename:
1507
1508 write_c_string -> write_cistring
1509 build_intstring -> build_istring
1510 build_string -> build_cistring
1511 build_ext_string -> build_extstring
1512 make_ext_string -> make_extstring
1513 buffer_insert_c_string -> buffer_insert_ascstring
1514 intern_int -> intern_istring
1515
1516 These functions have been renamed so that the naming harmonizes
1517 with the typedefs for strings: `cistring' along with CIbyte *,
1518 `istring' along with Ibyte *, `extstring' along with Extbyte *,
1519 `ascstring' along with Ascbyte *.
1520
1521 Also make buffer_insert_ascstring take Ascbyte * and assert
1522 that its argument is ASCII.
1523
1524 2010-01-26 Ben Wing <ben@xemacs.org>
1525
1526 * alloc.c:
1527 * alloc.c (build_ascstring):
1528 * alloc.c (build_msg_cistring):
1529 * alloc.c (staticpro_1):
1530 * alloc.c (staticpro_name):
1531 * alloc.c (staticpro_nodump_1):
1532 * alloc.c (staticpro_nodump_name):
1533 * alloc.c (unstaticpro_nodump_1):
1534 * alloc.c (mcpro_1):
1535 * alloc.c (mcpro_name):
1536 * alloc.c (object_memory_usage_stats):
1537 * alloc.c (common_init_alloc_early):
1538 * alloc.c (init_alloc_once_early):
1539 * buffer.c (print_buffer):
1540 * buffer.c (vars_of_buffer):
1541 * buffer.c (common_init_complex_vars_of_buffer):
1542 * buffer.c (init_initial_directory):
1543 * bytecode.c (invalid_byte_code):
1544 * bytecode.c (print_compiled_function):
1545 * bytecode.c (mark_compiled_function):
1546 * chartab.c (print_table_entry):
1547 * chartab.c (print_char_table):
1548 * config.h.in:
1549 * console-gtk.c:
1550 * console-gtk.c (gtk_device_to_console_connection):
1551 * console-gtk.c (gtk_semi_canonicalize_console_connection):
1552 * console-gtk.c (gtk_canonicalize_console_connection):
1553 * console-gtk.c (gtk_semi_canonicalize_device_connection):
1554 * console-gtk.c (gtk_canonicalize_device_connection):
1555 * console-stream.c (stream_init_frame_1):
1556 * console-stream.c (vars_of_console_stream):
1557 * console-stream.c (init_console_stream):
1558 * console-x.c (x_semi_canonicalize_console_connection):
1559 * console-x.c (x_semi_canonicalize_device_connection):
1560 * console-x.c (x_canonicalize_device_connection):
1561 * console-x.h:
1562 * data.c (eq_with_ebola_notice):
1563 * data.c (Fsubr_interactive):
1564 * data.c (Fnumber_to_string):
1565 * data.c (digit_to_number):
1566 * device-gtk.c (gtk_init_device):
1567 * device-msw.c (print_devmode):
1568 * device-x.c (x_event_name):
1569 * dialog-msw.c (handle_directory_dialog_box):
1570 * dialog-msw.c (handle_file_dialog_box):
1571 * dialog-msw.c (vars_of_dialog_mswindows):
1572 * doc.c (weird_doc):
1573 * doc.c (Fsnarf_documentation):
1574 * doc.c (vars_of_doc):
1575 * dumper.c (pdump):
1576 * dynarr.c:
1577 * dynarr.c (Dynarr_realloc):
1578 * editfns.c (Fuser_real_login_name):
1579 * editfns.c (get_home_directory):
1580 * elhash.c (print_hash_table_data):
1581 * elhash.c (print_hash_table):
1582 * emacs.c (main_1):
1583 * emacs.c (vars_of_emacs):
1584 * emodules.c:
1585 * emodules.c (_emodules_list):
1586 * emodules.c (Fload_module):
1587 * emodules.c (Funload_module):
1588 * emodules.c (Flist_modules):
1589 * emodules.c (find_make_module):
1590 * emodules.c (attempt_module_delete):
1591 * emodules.c (emodules_load):
1592 * emodules.c (emodules_doc_subr):
1593 * emodules.c (emodules_doc_sym):
1594 * emodules.c (syms_of_module):
1595 * emodules.c (vars_of_module):
1596 * emodules.h:
1597 * eval.c (print_subr):
1598 * eval.c (signal_call_debugger):
1599 * eval.c (build_error_data):
1600 * eval.c (signal_error):
1601 * eval.c (maybe_signal_error):
1602 * eval.c (signal_continuable_error):
1603 * eval.c (maybe_signal_continuable_error):
1604 * eval.c (signal_error_2):
1605 * eval.c (maybe_signal_error_2):
1606 * eval.c (signal_continuable_error_2):
1607 * eval.c (maybe_signal_continuable_error_2):
1608 * eval.c (signal_ferror):
1609 * eval.c (maybe_signal_ferror):
1610 * eval.c (signal_continuable_ferror):
1611 * eval.c (maybe_signal_continuable_ferror):
1612 * eval.c (signal_ferror_with_frob):
1613 * eval.c (maybe_signal_ferror_with_frob):
1614 * eval.c (signal_continuable_ferror_with_frob):
1615 * eval.c (maybe_signal_continuable_ferror_with_frob):
1616 * eval.c (syntax_error):
1617 * eval.c (syntax_error_2):
1618 * eval.c (maybe_syntax_error):
1619 * eval.c (sferror):
1620 * eval.c (sferror_2):
1621 * eval.c (maybe_sferror):
1622 * eval.c (invalid_argument):
1623 * eval.c (invalid_argument_2):
1624 * eval.c (maybe_invalid_argument):
1625 * eval.c (invalid_constant):
1626 * eval.c (invalid_constant_2):
1627 * eval.c (maybe_invalid_constant):
1628 * eval.c (invalid_operation):
1629 * eval.c (invalid_operation_2):
1630 * eval.c (maybe_invalid_operation):
1631 * eval.c (invalid_change):
1632 * eval.c (invalid_change_2):
1633 * eval.c (maybe_invalid_change):
1634 * eval.c (invalid_state):
1635 * eval.c (invalid_state_2):
1636 * eval.c (maybe_invalid_state):
1637 * eval.c (wtaerror):
1638 * eval.c (stack_overflow):
1639 * eval.c (out_of_memory):
1640 * eval.c (print_multiple_value):
1641 * eval.c (issue_call_trapping_problems_warning):
1642 * eval.c (backtrace_specials):
1643 * eval.c (backtrace_unevalled_args):
1644 * eval.c (Fbacktrace):
1645 * eval.c (warn_when_safe):
1646 * event-Xt.c (modwarn):
1647 * event-Xt.c (modbarf):
1648 * event-Xt.c (check_modifier):
1649 * event-Xt.c (store_modifier):
1650 * event-Xt.c (emacs_Xt_format_magic_event):
1651 * event-Xt.c (describe_event):
1652 * event-gtk.c (dragndrop_data_received):
1653 * event-gtk.c (store_modifier):
1654 * event-gtk.c (gtk_reset_modifier_mapping):
1655 * event-msw.c (dde_eval_string):
1656 * event-msw.c (Fdde_alloc_advise_item):
1657 * event-msw.c (mswindows_dde_callback):
1658 * event-msw.c (FROB):
1659 * event-msw.c (emacs_mswindows_format_magic_event):
1660 * event-stream.c (external_debugging_print_event):
1661 * event-stream.c (execute_help_form):
1662 * event-stream.c (vars_of_event_stream):
1663 * events.c (print_event_1):
1664 * events.c (print_event):
1665 * events.c (event_equal):
1666 * extents.c (print_extent_1):
1667 * extents.c (print_extent):
1668 * extents.c (vars_of_extents):
1669 * faces.c (print_face):
1670 * faces.c (complex_vars_of_faces):
1671 * file-coding.c:
1672 * file-coding.c (print_coding_system):
1673 * file-coding.c (print_coding_system_in_print_method):
1674 * file-coding.c (default_query_method):
1675 * file-coding.c (find_coding_system):
1676 * file-coding.c (make_coding_system_1):
1677 * file-coding.c (chain_print):
1678 * file-coding.c (undecided_print):
1679 * file-coding.c (gzip_print):
1680 * file-coding.c (vars_of_file_coding):
1681 * file-coding.c (complex_vars_of_file_coding):
1682 * fileio.c:
1683 * fileio.c (report_file_type_error):
1684 * fileio.c (report_error_with_errno):
1685 * fileio.c (report_file_error):
1686 * fileio.c (barf_or_query_if_file_exists):
1687 * fileio.c (vars_of_fileio):
1688 * floatfns.c (matherr):
1689 * fns.c (print_bit_vector):
1690 * fns.c (Fmapconcat):
1691 * fns.c (add_suffix_to_symbol):
1692 * fns.c (add_prefix_to_symbol):
1693 * frame-gtk.c:
1694 * frame-gtk.c (Fgtk_window_id):
1695 * frame-x.c (def):
1696 * frame-x.c (x_cde_transfer_callback):
1697 * frame.c:
1698 * frame.c (Fmake_frame):
1699 * gc.c (show_gc_cursor_and_message):
1700 * gc.c (vars_of_gc):
1701 * glyphs-eimage.c (png_instantiate):
1702 * glyphs-eimage.c (tiff_instantiate):
1703 * glyphs-gtk.c (gtk_print_image_instance):
1704 * glyphs-msw.c (mswindows_print_image_instance):
1705 * glyphs-x.c (x_print_image_instance):
1706 * glyphs-x.c (update_widget_face):
1707 * glyphs.c (make_string_from_file):
1708 * glyphs.c (print_image_instance):
1709 * glyphs.c (signal_image_error):
1710 * glyphs.c (signal_image_error_2):
1711 * glyphs.c (signal_double_image_error):
1712 * glyphs.c (signal_double_image_error_2):
1713 * glyphs.c (xbm_mask_file_munging):
1714 * glyphs.c (pixmap_to_lisp_data):
1715 * glyphs.h:
1716 * gui.c (gui_item_display_flush_left):
1717 * hpplay.c (player_error_internal):
1718 * hpplay.c (myHandler):
1719 * intl-win32.c:
1720 * intl-win32.c (langcode_to_lang):
1721 * intl-win32.c (sublangcode_to_lang):
1722 * intl-win32.c (Fmswindows_get_locale_info):
1723 * intl-win32.c (lcid_to_locale_mule_or_no):
1724 * intl-win32.c (mswindows_multibyte_to_unicode_print):
1725 * intl-win32.c (complex_vars_of_intl_win32):
1726 * keymap.c:
1727 * keymap.c (print_keymap):
1728 * keymap.c (ensure_meta_prefix_char_keymapp):
1729 * keymap.c (Fkey_description):
1730 * keymap.c (Ftext_char_description):
1731 * lisp.h:
1732 * lisp.h (struct):
1733 * lisp.h (DECLARE_INLINE_HEADER):
1734 * lread.c (Fload_internal):
1735 * lread.c (locate_file):
1736 * lread.c (read_escape):
1737 * lread.c (read_raw_string):
1738 * lread.c (read1):
1739 * lread.c (read_list):
1740 * lread.c (read_compiled_function):
1741 * lread.c (init_lread):
1742 * lrecord.h:
1743 * marker.c (print_marker):
1744 * marker.c (marker_equal):
1745 * menubar-msw.c (displayable_menu_item):
1746 * menubar-x.c (command_builder_operate_menu_accelerator):
1747 * menubar.c (vars_of_menubar):
1748 * minibuf.c (reinit_complex_vars_of_minibuf):
1749 * minibuf.c (complex_vars_of_minibuf):
1750 * mule-charset.c (Fmake_charset):
1751 * mule-charset.c (complex_vars_of_mule_charset):
1752 * mule-coding.c (iso2022_print):
1753 * mule-coding.c (fixed_width_query):
1754 * number.c (bignum_print):
1755 * number.c (ratio_print):
1756 * number.c (bigfloat_print):
1757 * number.c (bigfloat_finalize):
1758 * objects-msw.c:
1759 * objects-msw.c (mswindows_color_to_string):
1760 * objects-msw.c (mswindows_color_list):
1761 * objects-tty.c:
1762 * objects-tty.c (tty_font_list):
1763 * objects-tty.c (tty_find_charset_font):
1764 * objects-xlike-inc.c (xft_find_charset_font):
1765 * objects-xlike-inc.c (endif):
1766 * print.c:
1767 * print.c (write_istring):
1768 * print.c (write_ascstring):
1769 * print.c (Fterpri):
1770 * print.c (Fprint):
1771 * print.c (print_error_message):
1772 * print.c (print_vector_internal):
1773 * print.c (print_cons):
1774 * print.c (print_string):
1775 * print.c (printing_unreadable_object):
1776 * print.c (print_internal):
1777 * print.c (print_float):
1778 * print.c (print_symbol):
1779 * process-nt.c (mswindows_report_winsock_error):
1780 * process-nt.c (nt_canonicalize_host_name):
1781 * process-unix.c (unix_canonicalize_host_name):
1782 * process.c (print_process):
1783 * process.c (report_process_error):
1784 * process.c (report_network_error):
1785 * process.c (make_process_internal):
1786 * process.c (Fstart_process_internal):
1787 * process.c (status_message):
1788 * process.c (putenv_internal):
1789 * process.c (vars_of_process):
1790 * process.h:
1791 * profile.c (vars_of_profile):
1792 * rangetab.c (print_range_table):
1793 * realpath.c (vars_of_realpath):
1794 * redisplay.c (vars_of_redisplay):
1795 * search.c (wordify):
1796 * search.c (Freplace_match):
1797 * sheap.c (sheap_adjust_h):
1798 * sound.c (report_sound_error):
1799 * sound.c (Fplay_sound_file):
1800 * specifier.c (print_specifier):
1801 * symbols.c (Fsubr_name):
1802 * symbols.c (do_symval_forwarding):
1803 * symbols.c (set_default_buffer_slot_variable):
1804 * symbols.c (set_default_console_slot_variable):
1805 * symbols.c (store_symval_forwarding):
1806 * symbols.c (default_value):
1807 * symbols.c (defsymbol_massage_name_1):
1808 * symbols.c (defsymbol_massage_name_nodump):
1809 * symbols.c (defsymbol_massage_name):
1810 * symbols.c (defsymbol_massage_multiword_predicate_nodump):
1811 * symbols.c (defsymbol_massage_multiword_predicate):
1812 * symbols.c (defsymbol_nodump):
1813 * symbols.c (defsymbol):
1814 * symbols.c (defkeyword):
1815 * symbols.c (defkeyword_massage_name):
1816 * symbols.c (check_module_subr):
1817 * symbols.c (deferror_1):
1818 * symbols.c (deferror):
1819 * symbols.c (deferror_massage_name):
1820 * symbols.c (deferror_massage_name_and_message):
1821 * symbols.c (defvar_magic):
1822 * symeval.h:
1823 * symeval.h (DEFVAR_SYMVAL_FWD):
1824 * sysdep.c:
1825 * sysdep.c (init_system_name):
1826 * sysdll.c:
1827 * sysdll.c (MAYBE_PREPEND_UNDERSCORE):
1828 * sysdll.c (dll_function):
1829 * sysdll.c (dll_variable):
1830 * sysdll.c (dll_error):
1831 * sysdll.c (dll_open):
1832 * sysdll.c (dll_close):
1833 * sysdll.c (image_for_address):
1834 * sysdll.c (my_find_image):
1835 * sysdll.c (search_linked_libs):
1836 * sysdll.h:
1837 * sysfile.h:
1838 * sysfile.h (DEFAULT_DIRECTORY_FALLBACK):
1839 * syswindows.h:
1840 * tests.c (DFC_CHECK_LENGTH):
1841 * tests.c (DFC_CHECK_CONTENT):
1842 * tests.c (Ftest_hash_tables):
1843 * text.c (vars_of_text):
1844 * text.h:
1845 * tooltalk.c (tt_opnum_string):
1846 * tooltalk.c (tt_message_arg_ival_string):
1847 * tooltalk.c (Ftooltalk_default_procid):
1848 * tooltalk.c (Ftooltalk_default_session):
1849 * tooltalk.c (init_tooltalk):
1850 * tooltalk.c (vars_of_tooltalk):
1851 * ui-gtk.c (Fdll_load):
1852 * ui-gtk.c (type_to_marshaller_type):
1853 * ui-gtk.c (Fgtk_import_function_internal):
1854 * ui-gtk.c (emacs_gtk_object_printer):
1855 * ui-gtk.c (emacs_gtk_boxed_printer):
1856 * unicode.c (unicode_to_ichar):
1857 * unicode.c (unicode_print):
1858 * unicode.c (unicode_query):
1859 * unicode.c (vars_of_unicode):
1860 * unicode.c (complex_vars_of_unicode):
1861 * win32.c:
1862 * win32.c (mswindows_report_process_error):
1863 * window.c (print_window):
1864 * xemacs.def.in.in:
1865
1866 BASIC IDEA: Further fixing up uses of char * and CIbyte *
1867 to reflect their actual semantics; Mule-izing some code;
1868 redoing of the not-yet-working code to handle message translation.
1869
1870 Clean up code to handle message-translation (not yet working).
1871 Create separate versions of build_msg_string() for working with
1872 Ibyte *, CIbyte *, and Ascbyte * arguments. Assert that Ascbyte *
1873 arguments are pure-ASCII. Make build_msg_string() be the same
1874 as build_msg_ascstring(). Create same three versions of GETTEXT()
1875 and DEFER_GETTEXT(). Also create build_defer_string() and
1876 variants for the equivalent of DEFER_GETTEXT() when building a
1877 string. Remove old CGETTEXT(). Clean up code where GETTEXT(),
1878 DEFER_GETTEXT(), build_msg_string(), etc. was being called and
1879 introduce some new calls to build_msg_string(), etc. Remove
1880 GETTEXT() from calls to weird_doc() -- we assume that the
1881 message snarfer knows about weird_doc(). Remove uses of
1882 DEFER_GETTEXT() from error messages in sysdep.c and instead use
1883 special comments /* @@@begin-snarf@@@ */ and /* @@@end-snarf@@@ */
1884 that the message snarfer presumably knows about.
1885
1886 Create build_ascstring() and use it in many instances in place
1887 of build_string(). The purpose of having Ascbyte * variants is
1888 to make the code more self-documenting in terms of what sort of
1889 semantics is expected for char * strings. In fact in the process
1890 of looking for uses of build_string(), much improperly Mule-ized
1891 was discovered.
1892
1893 Mule-ize a lot of code as described in previous paragraph,
1894 e.g. in sysdep.c.
1895
1896 Make the error functions take Ascbyte * strings and fix up a
1897 couple of places where non-pure-ASCII strings were being passed in
1898 (file-coding.c, mule-coding.c, unicode.c). (It's debatable whether
1899 we really need to make the error functions work this way. It
1900 helps catch places where code is written in a way that message
1901 translation won't work, but we may well never implement message
1902 translation.)
1903
1904 Make staticpro() and friends take Ascbyte * strings instead of
1905 raw char * strings. Create a const_Ascbyte_ptr dynarr type
1906 to describe what's held by staticpro_names[] and friends,
1907 create pdump descriptions for const_Ascbyte_ptr dynarrs, and
1908 use them in place of specially-crafted staticpro descriptions.
1909
1910 Mule-ize certain other functions (e.g. x_event_name) by correcting
1911 raw use of char * to Ascbyte *, Rawbyte * or another such type,
1912 and raw use of char[] buffers to another type (usually Ascbyte[]).
1913
1914 Change many uses of write_c_string() to write_msg_string(),
1915 write_ascstring(), etc.
1916
1917 Mule-ize emodules.c, emodules.h, sysdll.h.
1918
1919 Fix some un-Mule-ized code in intl-win32.c.
1920
1921 A comment in event-Xt.c and the limitations of the message
1922 snarfer (make-msgfile or whatever) is presumably incorrect --
1923 it should be smart enough to handle function calls spread over
1924 more than one line. Clean up code in event-Xt.c that was
1925 written awkwardly for this reason.
1926
1927 In config.h.in, instead of NEED_ERROR_CHECK_TYPES_INLINES,
1928 create a more general XEMACS_DEFS_NEEDS_INLINE_DECLS to
1929 indicate when inlined functions need to be declared in
1930 xemacs.defs.in.in, and make use of it in xemacs.defs.in.in.
1931 We need to do this because postgresql.c now calls qxestrdup(),
1932 which is an inline function.
1933
1934 Make nconc2() and other such functions MODULE_API and put
1935 them in xemacs.defs.in.in since postgresql.c now uses them.
1936
1937 Clean up indentation in lread.c and a few other places.
1938
1939 In text.h, document ASSERT_ASCTEXT_ASCII() and
1940 ASSERT_ASCTEXT_ASCII_LEN(), group together the stand-in
1941 encodings and add some more for DLL symbols, function and
1942 variable names, etc.
1943
1944 2010-01-26 Ben Wing <ben@xemacs.org>
1945
1946 * .gdbinit.in.in: Allow an argument to check-xemacs and check-temacs
1947 to check a specific file.
1948
1949 2010-01-24 Ben Wing <ben@xemacs.org>
1950
1951 * chartab.c (decode_char_table_range):
1952 * extents.c (extent_fragment_update):
1953 * objects-msw.c (initialize_font_instance):
1954 * process.c (Fgetenv):
1955 * redisplay-output.c (get_next_display_block):
1956 Fix warnings about possible use of uninitialized vars.
1957
1958 * compiler.h:
1959 * compiler.h (REGISTER):
1960 * event-stream.c (is_scrollbar_event):
1961 * window.c (window_scrollbar_width):
1962 * window.c (window_scrollbar_height):
1963 * window.c (window_left_window_gutter_width):
1964 * window.c (window_right_window_gutter_width):
1965 Add USED_IF_SCROLLBARS. Use it to fix warnings about unused
1966 vars when --with-scrollbars=no.
1967
1968 * config.h.in:
1969 Change comment to explain better why DECLARE_INLINE_HEADER
1970 is needed.
1971
1972 * dialog-msw.c:
1973 * emacs.c (SHEBANG_EXE_PROGNAME_LENGTH):
1974 * emacs.c (main_1):
1975 * event-msw.c (struct mswin_message_debug):
1976 * event-msw.c (debug_output_mswin_message):
1977 * font-mgr.c:
1978 * font-mgr.c (Ffc_config_filename):
1979 * glyphs-msw.c (struct):
1980 * glyphs-msw.c (bitmap_table):
1981 * glyphs-x.c (update_widget_face):
1982 * intl-win32.c (struct lang_to_string):
1983 * intl-win32.c (lang_to_string_table):
1984 * nas.c:
1985 * objects-xlike-inc.c:
1986 * objects-xlike-inc.c (xft_find_charset_font):
1987 * syswindows.h:
1988 * win32.c (mswindows_output_last_error):
1989 Fix g++ 4.3 complaints about implicit conversions of string
1990 literals (const char *) to char *.
1991
1992 * lisp.h:
1993 G++ 4.3 needs #include <limits> to avoid errors about min/max.
1994
1995 * lisp.h (disabled_assert_with_message):
1996 Use disabled_assert* whenever asserts are disabled. Rewrite
1997 disabled_assert* to avoid complaints about unused vars by
1998 pretending to use the vars but casting them to (void).
1999 Remove code that defined assert() weirdly if DEBUG_XEMACS but
2000 not USE_ASSERTIONS -- configure sets USE_ASSERTIONS automatically
2001 when DEBUG_XEMACS, and if the user has forced it off, then
2002 so be it.
2003
2004 * lisp.h (SYMBOL_KEYWORD):
2005 Put some of the combined `extern Lisp_Object's back under
2006 the file they are declared in. Cosmetic fix.
2007
2008 * number.h:
2009 Remove `extern Lisp_Object' decls that duplicate lisp.h,
2010 since they have different C vs. C++ linkage.
2011
2012 2010-01-21 Ben Wing <ben@xemacs.org>
2013
2014 * Makefile.in.in:
2015 Oops. Use two hashes for comments in Makefile.in.in.
2016
2017 2010-01-20 Ben Wing <ben@xemacs.org>
2018
2019 * symbols.c:
2020 Add long comment about the types of magic symbols, and the various
2021 declarations that go along with them.
2022
2023 2010-01-20 Ben Wing <ben@xemacs.org>
2024
2025 * .gdbinit.in.in:
2026 Moved here from etc/.gdbinit.in.
2027 Put @srcdir@ in various places rather than just `..' whenever
2028 Makefile.in.in does so. Fixes various strange crashes and errors
2029 than occur when using `..'.
2030 * Makefile.in.in (config-changed):
2031 Add target, useful when building both Unicode-internal and
2032 old-Mule workspaces using --srcdir and don't run configure before
2033 switching from one to the other.
2034
2035 2010-01-20 Ben Wing <ben@xemacs.org>
2036
2037 * lrecord.h:
2038 * lrecord.h (enum lrecord_type):
2039 * lrecord.h (struct lrecord_implementation):
2040 Clean up description of finalizer methods. Clean up and expand
2041 the long comment at the top of lrecord.h. Add a section about why
2042 New-GC requires a bunch of new internal objects to be created (not
2043 completely understood).
2044
2045 2010-01-20 Ben Wing <ben@xemacs.org>
2046
2047 * lisp.h:
2048 Disable error-checking code in Dynarr_at and related lookup
2049 functions. It leads to a crash in the glyph-cachels code under
2050 Cygwin 1.7 and GCC 3.4.4. I assume this is a compiler bug since
2051 the code in question doesn't (or shouldn't) modify anything.
2052 Changing the code from inline to non-inline didn't help.
2053
2054 2010-01-19 Ben Wing <ben@xemacs.org>
2055
2056 * console-impl.h (struct console_methods):
2057 * console-stream.c (stream_text_width):
2058 * redisplay-msw.c (mswindows_output_string):
2059 * redisplay-msw.c (mswindows_text_width):
2060 * redisplay-tty.c (tty_text_width):
2061 * redisplay-xlike-inc.c (XLIKE_text_width):
2062 * redisplay-xlike-inc.c (XLIKE_output_string):
2063 * redisplay.c:
2064 * redisplay.c (redisplay_window_text_width_ichar_string):
2065 * redisplay.c (redisplay_text_width_string):
2066 Change the text_width method to take a window instead of a frame.
2067 Needed for Unicode-internal.
446 2068
447 2010-01-18 Ben Wing <ben@xemacs.org> 2069 2010-01-18 Ben Wing <ben@xemacs.org>
448 2070
449 * redisplay-gtk.c: 2071 * redisplay-gtk.c:
450 * redisplay-gtk.c (gtk_bevel_area): 2072 * redisplay-gtk.c (gtk_bevel_area):
653 * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR): 2275 * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR):
654 * syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN): 2276 * syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN):
655 * syswindows.h (INTERNAL_MSWIN_TO_LOCAL_FILE_FORMAT): 2277 * syswindows.h (INTERNAL_MSWIN_TO_LOCAL_FILE_FORMAT):
656 Declare some temporary pointer variables const to avoid compile 2278 Declare some temporary pointer variables const to avoid compile
657 errors under C++ and/or Visual Studio 6. 2279 errors under C++ and/or Visual Studio 6.
2280
2281 2010-01-27 Ben Wing <ben@xemacs.org>
2282
2283 * casetab.c: Typo in comment.
658 2284
659 2010-01-24 Aidan Kehoe <kehoea@parhasard.net> 2285 2010-01-24 Aidan Kehoe <kehoea@parhasard.net>
660 2286
661 * number.c (Fnumerator, Fdenominator, Fcanonicalize_number): 2287 * number.c (Fnumerator, Fdenominator, Fcanonicalize_number):
662 Be more careful to return integers in their canonical forms here, 2288 Be more careful to return integers in their canonical forms here,