comparison src/ChangeLog @ 851:e7ee5f8bde58

[xemacs-hg @ 2002-05-23 11:46:08 by ben] fix for raymond toy's crash, alloca crashes, some recover-session improvements files.el: Recover-session improvements: Only show session files where some files can actually be recovered, and show in chronological order. subr.el, menubar-items.el: As promised to rms, the functionality in truncate-string-with-continuation-dots has been merged into truncate-string-to-width. Change callers in menubar-items.el. select.el: Document some of these funs better. Fix problem where we were doing own-clipboard twice. Makefile.in.in: Add alloca.o. Ensure that alloca.s doesn't compile into alloca.o, but allocax.o (not that it's currently used or anything.) EmacsFrame.c, abbrev.c, alloc.c, alloca.c, callint.c, callproc.c, config.h.in, device-msw.c, device-x.c, dired.c, doc.c, editfns.c, emacs.c, emodules.c, eval.c, event-Xt.c, event-msw.c, event-stream.c, file-coding.c, fileio.c, filelock.c, fns.c, glyphs-gtk.c, glyphs-msw.c, glyphs-x.c, gui-x.c, input-method-xlib.c, intl-win32.c, lisp.h, lread.c, menubar-gtk.c, menubar-msw.c, menubar.c, mule-wnnfns.c, nt.c, objects-msw.c, process-nt.c, realpath.c, redisplay-gtk.c, redisplay-output.c, redisplay-x.c, redisplay.c, search.c, select-msw.c, sysdep.c, syswindows.h, text.c, text.h, ui-byhand.c: Fix Raymond Toy's crash. Repeat to self: 2^21 - 1 is NOT the same as (2 << 21) - 1. Fix crashes due to excessive alloca(). replace alloca() with ALLOCA(), which calls the C alloca() [which uses xmalloc()] when the size is too big. Insert in various places calls to try to flush the C alloca() stored info if there is any. Add MALLOC_OR_ALLOCA(), for places that expect to be alloca()ing large blocks. This xmalloc()s when too large and records an unwind-protect to free -- relying on the caller to unbind_to() elsewhere in the function. Use it in concat(). Use MALLOC instead of ALLOCA in select-msw.c. xemacs.mak: Add alloca.o.
author ben
date Thu, 23 May 2002 11:46:46 +0000
parents f915ad7befaf
children 2b6fa2618f76
comparison
equal deleted inserted replaced
850:f915ad7befaf 851:e7ee5f8bde58
1 2002-05-23 Ben Wing <ben@xemacs.org>
2
3 * Makefile.in.in (objs):
4 * Makefile.in.in (Emacs.ad.h):
5 * Makefile.in.in (alloca.o): Removed.
6 * Makefile.in.in (allocax.o): New.
7 Add alloca.o. Ensure that alloca.s doesn't compile into alloca.o,
8 but allocax.o (not that it's currently used or anything.)
9
10 * EmacsFrame.c (Xt_StringToScrollBarPlacement):
11 * abbrev.c (abbrev_oblookup):
12 * alloc.c:
13 * alloc.c (allocate_lisp_storage):
14 * alloc.c (recompute_funcall_allocation_flag):
15 * alloc.c (recompute_need_to_garbage_collect):
16 * alloc.c (common_init_alloc_once_early):
17 * alloca.c:
18 * alloca.c (hdr):
19 * alloca.c (xemacs_c_alloca):
20 * callint.c (Fcall_interactively):
21 * callproc.c (Fold_call_process_internal):
22 * config.h.in:
23 * config.h.in (XEMACS_WANTS_C_ALLOCA):
24 * device-msw.c (msprinter_default_printer):
25 * device-msw.c (Fmswindows_printer_list):
26 * device-x.c (x_init_device):
27 * dired.c (Fdirectory_files):
28 * dired.c (file_name_completion_stat):
29 * doc.c (get_doc_string):
30 * editfns.c (Fformat_time_string):
31 * emacs.c (main_1):
32 * emodules.c (emodules_load):
33 * eval.c (Ffuncall):
34 * event-Xt.c (x_to_emacs_keysym):
35 * event-msw.c (mswindows_dde_callback):
36 * event-msw.c (mswindows_wnd_proc):
37 * event-stream.c (Fnext_event):
38 * file-coding.c (setup_eol_coding_systems):
39 * fileio.c:
40 * fileio.c (Fdirectory_file_name):
41 * fileio.c (if):
42 * fileio.c (Fsubstitute_in_file_name):
43 * fileio.c (Fencrypt_string):
44 * fileio.c (Fdecrypt_string):
45 * filelock.c (MAKE_LOCK_NAME):
46 * filelock.c (lock_file_1):
47 * filelock.c (current_lock_owner):
48 * filelock.c (lock_file):
49 * fns.c (concat):
50 * fns.c (mapcar1):
51 * fns.c (Fbase64_encode_region):
52 * fns.c (Fbase64_encode_string):
53 * fns.c (Fbase64_decode_region):
54 * fns.c (Fbase64_decode_string):
55 * glyphs-gtk.c (gtk_xface_instantiate):
56 * glyphs-msw.c (mswindows_xface_instantiate):
57 * glyphs-msw.c (mswindows_widget_property):
58 * glyphs-msw.c (mswindows_combo_box_property):
59 * glyphs-x.c (x_xface_instantiate):
60 * gui-x.c (add_accel_and_to_external):
61 * input-method-xlib.c (EmacsXtCvtStringToXIMStyles):
62 * intl-win32.c (Fmswindows_get_valid_keyboard_layouts):
63 * lisp.h:
64 * lisp.h (alloca_new):
65 * lisp.h (NOTE): New.
66 * lisp.h (MAX_STRING_ASCII_BEGIN):
67 * lread.c (Fload_internal):
68 * lread.c (locate_file_map_suffixes):
69 * menubar-gtk.c (menu_descriptor_to_widget_1):
70 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
71 * menubar.c (Fnormalize_menu_item_name):
72 * mule-wnnfns.c (Fwnn_open):
73 * nt.c (init_mswindows_environment):
74 * objects-msw.c (mswindows_string_to_color):
75 * objects-msw.c (mswindows_font_instance_truename):
76 * process-nt.c (nt_create_process):
77 * realpath.c (cygwin_readlink_and_correct_case):
78 * redisplay-gtk.c:
79 * redisplay-gtk.c (gtk_text_width):
80 * redisplay-gtk.c (gtk_output_string):
81 * redisplay-output.c:
82 * redisplay-output.c (compare_runes_2):
83 * redisplay-x.c:
84 * redisplay-x.c (x_text_width):
85 * redisplay-x.c (x_output_string):
86 * redisplay.c (generate_displayable_area):
87 * redisplay.c (regenerate_window):
88 * search.c (wordify):
89 * search.c (Fregexp_quote):
90 * select-msw.c (mswindows_own_selection):
91 * sysdep.c (sys_subshell):
92 * sysdep.c (init_system_name):
93 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT):
94 * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT):
95 * text.c (convert_emchar_string_into_malloced_string):
96 * text.h:
97 * text.h (EI_ALLOC):
98 * text.h (eito_alloca):
99 * text.h (EI_CASECHANGE):
100 * text.h (DFC_ALLOCA_USE_CONVERTED_DATA):
101 * text.h (DFC_C_STRING_ALLOCA_USE_CONVERTED_DATA):
102 * text.h (GET_STRERROR):
103 * ui-byhand.c (Fgtk_curve_get_vector):
104 * ui-byhand.c (Fgtk_curve_set_vector):
105
106 Fix Raymond Toy's crash. Repeat to self: 2^21 - 1 is NOT the
107 same as (2 << 21) - 1.
108
109 Fix crashes due to excessive alloca(). replace alloca() with
110 ALLOCA(), which calls the C alloca() [which uses xmalloc()]
111 when the size is too big. Insert in various places calls to
112 try to flush the C alloca() stored info if there is any.
113
114 Add MALLOC_OR_ALLOCA(), for places that expect to be alloca()ing
115 large blocks. This xmalloc()s when too large and records an
116 unwind-protect to free -- relying on the caller to unbind_to()
117 elsewhere in the function. Use it in concat().
118
119 Use MALLOC instead of ALLOCA in select-msw.c.
120
1 2002-05-21 Jonathan Harris <jonathan@xemacs.org> 121 2002-05-21 Jonathan Harris <jonathan@xemacs.org>
2 122
3 * device-msw.c (mswindows_handle_page_setup_dialog_box): 123 * device-msw.c (mswindows_handle_page_setup_dialog_box):
4 Fix detection of metric units to work on Win95 124 Fix detection of metric units to work on Win95
5 125