comparison src/ChangeLog @ 2367:ecf1ebac70d8

[xemacs-hg @ 2004-11-04 23:05:23 by ben] commit mega-patch configure.in: Turn off -Winline and -Wchar-subscripts. Use the right set of cflags when compiling modules. Rewrite ldap configuration to separate the inclusion of lber (needed in recent Cygwin) from the basic checks for the needed libraries. add a function for MAKE_JUNK_C; initially code was added to generate xemacs.def using this, but it will need to be rewritten. add an rm -f for junk.c to avoid weird Cygwin bug with cp -f onto an existing file. Sort list of auto-detected functions and eliminate unused checks for stpcpy, setlocale and getwd. Add autodetection of Cygwin scanf problems BETA: Rewrite section on configure to indicate what flags are important and what not. digest-doc.c, make-dump-id.c, profile.c, sorted-doc.c: Add proper decls for main(). make-msgfile.c: Document that this is old junk. Move proposal to text.c. make-msgfile.lex: Move proposal to text.c. make-mswin-unicode.pl: Convert error-generating code so that the entire message will be seen as a single unrecognized token. mule/mule-ccl.el: Update docs. lispref/mule.texi: Update CCL docs. ldap/eldap.c: Mule-ize. Use EXTERNAL_LIST_LOOP_2 instead of deleted EXTERNAL_LIST_LOOP. * XEmacs 21.5.18 "chestnut" is released. --------------------------------------------------------------- MULE-RELATED WORK: --------------------------------------------------------------- --------------------------- byte-char conversion --------------------------- buffer.c, buffer.h, insdel.c, text.c: Port FSF algorithm for byte-char conversion, replacing broken previous version. Track the char position of the gap. Add functions to do char-byte conversion downwards as well as upwards. Move comments about algorithm workings to internals manual. --------------------------- work on types --------------------------- alloc.c, console-x-impl.h, dump-data.c, dump-data.h, dumper.c, dialog-msw.c, dired-msw.c, doc.c, editfns.c, esd.c, event-gtk.h, event-msw.c, events.c, file-coding.c, file-coding.h, fns.c, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-shared.c, glyphs-x.c, glyphs.c, glyphs.h, gui.c, hpplay.c, imgproc.c, intl-win32.c, lrecord.h, lstream.c, keymap.c, lisp.h, libsst.c, linuxplay.c, miscplay.c, miscplay.h, mule-coding.c, nas.c, nt.c, ntheap.c, ntplay.c, objects-msw.c, objects-tty.c, objects-x.c, print.c, process-nt.c, process.c, redisplay.h, select-common.h, select-gtk.c, select-x.c, sgiplay.c, sound.c, sound.h, sunplay.c, sysfile.h, sysdep.c, syswindows.h, text.c, unexnt.c, win32.c, xgccache.c: Further work on types. This creates a full set of types for all the basic semantics of `char' that I have so far identified, so that its semantics can always be identified for the purposes of proper Mule-safe code, and the raw use of `char' always avoided. (1) More type renaming, for consistency of naming. Char_ASCII -> Ascbyte UChar_ASCII -> UAscbyte Char_Binary -> CBinbyte UChar_Binary -> Binbyte SChar_Binary -> SBinbyte (2) Introduce Rawbyte, CRawbyte, Boolbyte, Chbyte, UChbyte, and Bitbyte and use them. (3) New types Itext, Wexttext and Textcount for separating out the concepts of bytes and textual units (different under UTF-16 and UTF-32, which are potential internal encodings). (4) qxestr*_c -> qxestr*_ascii. lisp.h: New; goes with other qxe() functions. #### Maybe goes in a different section. lisp.h: Group generic int-type defs together with EMACS_INT defs. lisp.h: * lisp.h (WEXTTEXT_IS_WIDE) New defns. lisp.h: New type to replace places where int occurs as a boolean. It's signed because occasionally people may want to use -1 as an error value, and because unsigned ints are viral -- see comments in the internals manual against using them. dynarr.c: int -> Bytecount. --------------------------- Mule-izing --------------------------- device-x.c: Partially Mule-ize. dumper.c, dumper.h: Mule-ize. Use Rawbyte. Use stderr_out not printf. Use wext_*(). sysdep.c, syswindows.h, text.c: New Wexttext API for manipulation of external text that may be Unicode (e.g. startup code under Windows). emacs.c: Mule-ize. Properly deal with argv in external encoding. Use wext_*() and Wexttext. Use Rawbyte. #if 0 some old junk on SCO that is unlikely to be correct. Rewrite allocation code in run-temacs. emacs.c, symsinit.h, win32.c: Rename win32 init function and call it even earlier, to initialize mswindows_9x_p even earlier, for use in startup code (XEUNICODE_P). process.c: Use _wenviron not environ under Windows, to get Unicode environment variables. event-Xt.c: Mule-ize drag-n-drop related stuff. dragdrop.c, dragdrop.h, frame-x.c: Mule-ize. text.h: Add some more stand-in defines for particular kinds of conversion; use in Mule-ization work in frame-x.c etc. --------------------------- Freshening --------------------------- intl-auto-encap-win32.c, intl-auto-encap-win32.h: Regenerate. --------------------------- Unicode-work --------------------------- intl-win32.c, syswindows.h: Factor out common options to MultiByteToWideChar and WideCharToMultiByte. Add convert_unicode_to_multibyte_malloc() and convert_unicode_to_multibyte_dynarr() and use. Add stuff for alloca() conversion of multibyte/unicode. alloc.c: Use dfc_external_data_len() in case of unicode coding system. alloc.c, mule-charset.c: Don't zero out and reinit charset Unicode tables. This fucks up dump-time loading. Anyway, either we load them at dump time or run time, never both. unicode.c: Dump the blank tables as well. --------------------------------------------------------------- DOCUMENTATION, MOSTLY MULE-RELATED: --------------------------------------------------------------- EmacsFrame.c, emodules.c, event-Xt.c, fileio.c, input-method-xlib.c, mule-wnnfns.c, redisplay-gtk.c, redisplay-tty.c, redisplay-x.c, regex.c, sysdep.c: Add comment about Mule work needed. text.h: Add more documentation describing why DFC routines were not written to return their value. Add some other DFC documentation. console-msw.c, console-msw.h: Add pointer to docs in win32.c. emacs.c: Add comments on sources of doc info. text.c, charset.h, unicode.c, intl-win32.c, intl-encap-win32.c, text.h, file-coding.c, mule-coding.c: Collect background comments and related to text matters and internationalization, and proposals for work to be done, in text.c or Internals manual, stuff related to specific textual API's in text.h, and stuff related to internal implementation of Unicode conversion in unicode.c. Put lots of pointers to the comments to make them easier to find. s/mingw32.h, s/win32-common.h, s/win32-native.h, s/windowsnt.h, win32.c: Add bunches of new documentation on the different kinds of builds and environments under Windows and how they work. Collect this info in win32.c. Add pointers to these docs in the relevant s/* files. emacs.c: Document places with long comments. Remove comment about exiting, move to internals manual, put in pointer. event-stream.c: Move docs about event queues and focus to internals manual, put in pointer. events.h: Move docs about event stream callbacks to internals manual, put in pointer. profile.c, redisplay.c, signal.c: Move documentation to the Internals manual. process-nt.c: Add pointer to comment in win32-native.el. lisp.h: Add comments about some comment conventions. lisp.h: Add comment about the second argument. device-msw.c, redisplay-msw.c: @@#### comments are out-of-date. --------------------------------------------------------------- PDUMP WORK (MOTIVATED BY UNICODE CHANGES) --------------------------------------------------------------- alloc.c, buffer.c, bytecode.c, console-impl.h, console.c, device.c, dumper.c, lrecord.h, elhash.c, emodules.h, events.c, extents.c, frame.c, glyphs.c, glyphs.h, mule-charset.c, mule-coding.c, objects.c, profile.c, rangetab.c, redisplay.c, specifier.c, specifier.h, window.c, lstream.c, file-coding.h, file-coding.c: PDUMP: Properly implement dump_add_root_block(), which never worked before, and is necessary for dumping Unicode tables. Pdump name changes for accuracy: XD_STRUCT_PTR -> XD_BLOCK_PTR. XD_STRUCT_ARRAY -> XD_BLOCK_ARRAY. XD_C_STRING -> XD_ASCII_STRING. *_structure_* -> *_block_*. lrecord.h: some comments added about dump_add_root_block() vs dump_add_root_block_ptr(). extents.c: remove incorrect comment about pdump problems with gap array. --------------------------------------------------------------- ALLOCATION --------------------------------------------------------------- abbrev.c, alloc.c, bytecode.c, casefiddle.c, device-msw.c, device-x.c, dired-msw.c, doc.c, doprnt.c, dragdrop.c, editfns.c, emodules.c, file-coding.c, fileio.c, filelock.c, fns.c, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-x.c, gui-msw.c, gui-x.c, imgproc.c, intl-win32.c, lread.c, menubar-gtk.c, menubar.c, nt.c, objects-msw.c, objects-x.c, print.c, process-nt.c, process-unix.c, process.c, realpath.c, redisplay.c, search.c, select-common.c, symbols.c, sysdep.c, syswindows.h, text.c, text.h, ui-byhand.c: New macros {alloca,xnew}_{itext,{i,ext,raw,bin,asc}bytes} for more convenient allocation of these commonly requested items. Modify functions to use alloca_ibytes, alloca_array, alloca_extbytes, xnew_ibytes, etc. also XREALLOC_ARRAY, xnew. alloc.c: Rewrite the allocation functions to factor out repeated code. Add assertions for freeing dumped data. lisp.h: Moved down and consolidated with other allocation stuff. lisp.h, dynarr.c: New functions for allocation that's very efficient when mostly in LIFO order. lisp.h, text.c, text.h: Factor out some stuff for general use by alloca()-conversion funs. text.h, lisp.h: Fill out convenience routines for allocating various kinds of bytes and put them in lisp.h. Use them in place of xmalloc(), ALLOCA(). text.h: Fill out the convenience functions so the _MALLOC() kinds match the alloca() kinds. --------------------------------------------------------------- ERROR-CHECKING --------------------------------------------------------------- text.h: Create ASSERT_ASCTEXT_ASCII() and ASSERT_ASCTEXT_ASCII_LEN() from similar Eistring checkers and change the Eistring checkers to use them instead. --------------------------------------------------------------- MACROS IN LISP.H --------------------------------------------------------------- lisp.h: Redo GCPRO declarations. Create a "base" set of functions that can be used to generate any kind of gcpro sets -- regular, ngcpro, nngcpro, private ones used in GC_EXTERNAL_LIST_LOOP_2. buffer.c, callint.c, chartab.c, console-msw.c, device-x.c, dialog-msw.c, dired.c, extents.c, ui-gtk.c, rangetab.c, nt.c, mule-coding.c, minibuf.c, menubar-msw.c, menubar.c, menubar-gtk.c, lread.c, lisp.h, gutter.c, glyphs.c, glyphs-widget.c, fns.c, fileio.c, file-coding.c, specifier.c: Eliminate EXTERNAL_LIST_LOOP, which does not check for circularities. Use EXTERNAL_LIST_LOOP_2 instead or EXTERNAL_LIST_LOOP_3 or EXTERNAL_PROPERTY_LIST_LOOP_3 or GC_EXTERNAL_LIST_LOOP_2 (new macro). Removed/redid comments on EXTERNAL_LIST_LOOP. --------------------------------------------------------------- SPACING FIXES --------------------------------------------------------------- callint.c, hftctl.c, number-gmp.c, process-unix.c: Spacing fixes. --------------------------------------------------------------- FIX FOR GEOMETRY PROBLEM IN FIRST FRAME --------------------------------------------------------------- unicode.c: Add workaround for newlib bug in sscanf() [should be fixed by release 1.5.12 of Cygwin]. toolbar.c: bug fix for problem of initial frame being 77 chars wide on Windows. will be overridden by my other ws. --------------------------------------------------------------- FIX FOR LEAKING PROCESS HANDLES: --------------------------------------------------------------- process-nt.c: Fixes for leaking handles. Inspired by work done by Adrian Aichner <adrian@xemacs.org>. --------------------------------------------------------------- FIX FOR CYGWIN BUG (Unicode-related): --------------------------------------------------------------- unicode.c: Add workaround for newlib bug in sscanf() [should be fixed by release 1.5.12 of Cygwin]. --------------------------------------------------------------- WARNING FIXES: --------------------------------------------------------------- console-stream.c: `reinit' is unused. compiler.h, event-msw.c, frame-msw.c, intl-encap-win32.c, text.h: Add stuff to deal with ANSI-aliasing warnings I got. regex.c: Gather includes together to avoid warning. --------------------------------------------------------------- CHANGES TO INITIALIZATION ROUTINES: --------------------------------------------------------------- buffer.c, emacs.c, console.c, debug.c, device-x.c, device.c, dragdrop.c, emodules.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, events.c, extents.c, faces.c, file-coding.c, fileio.c, font-lock.c, frame-msw.c, glyphs-widget.c, glyphs.c, gui-x.c, insdel.c, lread.c, lstream.c, menubar-gtk.c, menubar-x.c, minibuf.c, mule-wnnfns.c, objects-msw.c, objects.c, print.c, scrollbar-x.c, search.c, select-x.c, text.c, undo.c, unicode.c, window.c, symsinit.h: Call reinit_*() functions directly from emacs.c, for clarity. Factor out some redundant init code. Move disallowed stuff that had crept into vars_of_glyphs() into complex_vars_of_glyphs(). Call init_eval_semi_early() from eval.c not in the middle of vars_of_() in emacs.c since there should be no order dependency in the latter calls. --------------------------------------------------------------- ARMAGEDDON: --------------------------------------------------------------- alloc.c, emacs.c, lisp.h, print.c: Rename inhibit_non_essential_printing_operations to inhibit_non_essential_conversion_operations. text.c: Assert on !inhibit_non_essential_conversion_operations. console-msw.c, print.c: Don't do conversion in SetConsoleTitle or FindWindow to avoid problems during armageddon. Put #errors for NON_ASCII_INTERNAL_FORMAT in places where problems would arise. --------------------------------------------------------------- CHANGES TO THE BUILD PROCEDURE: --------------------------------------------------------------- config.h.in, s/cxux.h, s/usg5-4-2.h, m/powerpc.h: Add comment about correct ordering of this file. Rearrange everything to follow this -- put all #undefs together and before the s&m files. Add undefs for HAVE_ALLOCA, C_ALLOCA, BROKEN_ALLOCA_IN_FUNCTION_CALLS, STACK_DIRECTION. Remove unused HAVE_STPCPY, HAVE_GETWD, HAVE_SETLOCALE. m/gec63.h: Deleted; totally broken, not used at all, not in FSF. m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/altos.h, m/amdahl.h, m/apollo.h, m/att3b.h, m/aviion.h, m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h, m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/ews4800r.h, m/gould.h, m/hp300bsd.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h, m/intel386.h, m/iris4d.h, m/iris5d.h, m/iris6d.h, m/irist.h, m/isi-ov.h, m/luna88k.h, m/m68k.h, m/masscomp.h, m/mg1.h, m/mips-nec.h, m/mips-siemens.h, m/mips.h, m/news.h, m/nh3000.h, m/nh4000.h, m/ns32000.h, m/orion105.h, m/pfa50.h, m/plexus.h, m/pmax.h, m/powerpc.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h, m/sgi-challenge.h, m/symmetry.h, m/tad68k.h, m/tahoe.h, m/targon31.h, m/tekxd88.h, m/template.h, m/tower32.h, m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/xps100.h: Delete C_ALLOCA, HAVE_ALLOCA, STACK_DIRECTION, BROKEN_ALLOCA_IN_FUNCTION_CALLS. All of this is auto-detected. When in doubt, I followed recent FSF sources, which also have these things deleted.
author ben
date Thu, 04 Nov 2004 23:08:28 +0000
parents ec5cb254c826
children 79c79ee56386
comparison
equal deleted inserted replaced
2366:2a392e0c390a 2367:ecf1ebac70d8
1 2004-10-27 Ben Wing <ben@xemacs.org>
2
3 ---------------------------------------------------------------
4 MULE-RELATED WORK:
5 ---------------------------------------------------------------
6
7 ---------------------------
8 byte-char conversion
9 ---------------------------
10
11 * buffer.c:
12 * buffer.h (BUFFER_TEXT_LOOP):
13 * buffer.h (BYTE_BUF_CEILING_OF_IGNORE_ACCESSIBLE):
14 * buffer.h (BYTE_BUF_FLOOR_OF):
15 * buffer.h (NUM_CACHED_POSITIONS):
16 * buffer.h (struct buffer_text):
17 * buffer.h:
18 * insdel.c (BUF_GPT_ADDR):
19 * insdel.c (SET_BOTH_BUF_GPT):
20 * insdel.c (SET_BOTH_BUF_Z):
21 * insdel.c (buffer_delete_range):
22 * insdel.c (buffer_insert_string_1):
23 * insdel.c (gap_left):
24 * insdel.c (gap_right):
25 * insdel.c (init_buffer_text):
26 * insdel.c (make_gap):
27 * insdel.c (merge_gap_with_end_gap):
28 * insdel.c (move_gap):
29 * insdel.c:
30 * text.c (buffer_mule_signal_deleted_region):
31 * text.c (buffer_mule_signal_inserted_region):
32 * text.c (bytebpos_to_charbpos_func):
33 * text.c (charbpos_to_bytebpos_func):
34 * text.c (skip_ascii):
35 * text.c (skip_ascii_down):
36 Port FSF algorithm for byte-char conversion, replacing broken
37 previous version. Track the char position of the gap. Add
38 functions to do char-byte conversion downwards as well as upwards.
39 Move comments about algorithm workings to internals manual.
40
41 ---------------------------
42 work on types
43 ---------------------------
44
45 * alloc.c:
46 * alloc.c (gc_plist_hack):
47 * console-x-impl.h (struct x_frame):
48 * dump-data.c:
49 * dump-data.c (dumped_data_size):
50 * dump-data.c (dumped_data_max_size):
51 * dump-data.c (dumped_data_align_offset):
52 * dump-data.c (dumped_data_get):
53 * dump-data.h:
54 * dump-data.h (dumped_data_get):
55 * dumper.c:
56 * dumper.c (struct):
57 * dumper.c (PDUMP_READ):
58 * dumper.c (PDUMP_READ_ALIGNED):
59 * dumper.c (pdump_objects_unmark):
60 * dumper.c (pdump_register_sub):
61 * dumper.c (pdump_register_struct_contents):
62 * dumper.c (pdump_store_new_pointer_offsets):
63 * dumper.c (pdump_reloc_one):
64 * dumper.c (pdump_dump_root_struct_ptrs):
65 * dumper.c (pdump_dump_root_lisp_objects):
66 * dumper.c (pdump):
67 * dumper.c (pdump_load_check):
68 * dumper.c (pdump_load_finish):
69 * dialog-msw.c:
70 * dired-msw.c (mswindows_format_file):
71 * doc.c (get_doc_string):
72 * doc.c (Fsnarf_documentation):
73 * doc.c (kludgily_ignore_lost_doc_p):
74 * editfns.c:
75 * esd.c (esd_play_sound_data):
76 * event-gtk.h (emacs_shell_event_handler):
77 * event-msw.c (mswindows_dde_callback):
78 * events.c (format_event_object):
79 * file-coding.c (struct subsidiary_type):
80 * file-coding.c (setup_eol_coding_systems):
81 * file-coding.c (make_coding_system_1):
82 * file-coding.c (make_internal_coding_system):
83 * file-coding.h:
84 * fns.c (add_suffix_to_symbol):
85 * fns.c (add_prefix_to_symbol):
86 * glyphs-eimage.c (struct jpeg_unwind_data):
87 * glyphs-eimage.c (jpeg_instantiate_unwind):
88 * glyphs-eimage.c (jpeg_instantiate):
89 * glyphs-eimage.c (struct gif_unwind_data):
90 * glyphs-eimage.c (gif_instantiate_unwind):
91 * glyphs-eimage.c (gif_memory_storage):
92 * glyphs-eimage.c (gif_instantiate):
93 * glyphs-eimage.c (struct png_memory_storage):
94 * glyphs-eimage.c (struct png_unwind_data):
95 * glyphs-eimage.c (png_instantiate_unwind):
96 * glyphs-eimage.c (png_instantiate):
97 * glyphs-eimage.c (struct tiff_unwind_data):
98 * glyphs-eimage.c (tiff_instantiate_unwind):
99 * glyphs-eimage.c (tiff_memory_storage):
100 * glyphs-eimage.c (tiff_instantiate):
101 * glyphs-gtk.c (gtk_xpm_instantiate):
102 * glyphs-msw.c (convert_EImage_to_DIBitmap):
103 * glyphs-msw.c (mswindows_init_image_instance_from_eimage):
104 * glyphs-msw.c (set_mono_pixel):
105 * glyphs-msw.c (mswindows_initialize_image_instance_mask):
106 * glyphs-msw.c (xpm_to_eimage):
107 * glyphs-msw.c (mswindows_xpm_instantiate):
108 * glyphs-msw.c (xbm_create_bitmap_from_data):
109 * glyphs-msw.c (init_image_instance_from_xbm_inline):
110 * glyphs-msw.c (xbm_instantiate_1):
111 * glyphs-msw.c (mswindows_xbm_instantiate):
112 * glyphs-msw.c (mswindows_xface_instantiate):
113 * glyphs-shared.c (read_bitmap_data):
114 * glyphs-shared.c (read_bitmap_data_from_file):
115 * glyphs-x.c (convert_EImage_to_XImage):
116 * glyphs-x.c (x_init_image_instance_from_eimage):
117 * glyphs-x.c (pixmap_from_xbm_inline):
118 * glyphs-x.c (init_image_instance_from_xbm_inline):
119 * glyphs-x.c (xbm_instantiate_1):
120 * glyphs-x.c (x_xbm_instantiate):
121 * glyphs-x.c (x_xface_instantiate):
122 * glyphs.c (bitmap_to_lisp_data):
123 * glyphs.h:
124 * gui.c (gui_error):
125 * gui.c (gui_error_2):
126 * hpplay.c (player_error_internal):
127 * hpplay.c (play_sound_data):
128 * imgproc.c (get_histogram):
129 * imgproc.c (build_EImage_quantable):
130 * intl-win32.c (lang_to_langcode):
131 * intl-win32.c (sublang_to_langcode):
132 * intl-win32.c (int_from_hex):
133 * intl-win32.c (enum_locale_fn):
134 * lrecord.h (DECLARE_LRECORD):
135 * lrecord.h (DECLARE_MODULE_API_LRECORD):
136 * lrecord.h (DECLARE_EXTERNAL_LRECORD):
137 * lrecord.h (DECLARE_NONRECORD):
138 * lrecord.h (copy_sized_lcrecord):
139 * lrecord.h (zero_sized_lcrecord):
140 * lrecord.h (DUMPEDP):
141 * lstream.c (make_lisp_buffer_stream_1):
142 * keymap.c (define_key_check_and_coerce_keysym):
143 * lisp.h:
144 * libsst.c:
145 * linuxplay.c:
146 * linuxplay.c (linux_play_data_or_file):
147 * linuxplay.c (play_sound_data):
148 * miscplay.c:
149 * miscplay.c (waverequire):
150 * miscplay.c (parsewave):
151 * miscplay.c (parsesundecaudio):
152 * miscplay.c (sndcnv8U_2mono):
153 * miscplay.c (sndcnv8S_2mono):
154 * miscplay.c (sndcnv2monounsigned):
155 * miscplay.c (sndcnv2unsigned):
156 * miscplay.c (int2ulaw):
157 * miscplay.c (sndcnvULaw_2linear):
158 * miscplay.c (sndcnvULaw_2mono):
159 * miscplay.c (sndcnv16_2monoLE):
160 * miscplay.c (sndcnv16_2monoBE):
161 * miscplay.c (sndcnv2byteLE):
162 * miscplay.c (sndcnv2byteBE):
163 * miscplay.c (sndcnv2monobyteLE):
164 * miscplay.c (sndcnv2monobyteBE):
165 * miscplay.c (analyze_format):
166 * miscplay.h (parse_wave_complete):
167 * mule-coding.c (ccl_putprop):
168 * nas.c:
169 * nas.c (nas_play_sound_data):
170 * nas.c (SndOpenDataForReading):
171 * nas.c (cmpID):
172 * nas.c (dread):
173 * nas.c (dgetc):
174 * nas.c (readChunk):
175 * nas.c (WaveOpenDataForReading):
176 * nas.c (SoundOpenDataForReading):
177 * nt.c:
178 * nt.c (init_mswindows_environment):
179 * nt.c (mswindows_is_executable):
180 * nt.c (mswindows_executable_type):
181 * ntheap.c:
182 * ntheap.c (round_to_next):
183 * ntheap.c (get_data_start):
184 * ntheap.c (get_data_end):
185 * ntheap.c (allocate_heap):
186 * ntheap.c (sbrk):
187 * ntheap.c (recreate_heap):
188 * ntplay.c:
189 * ntplay.c (play_sound_file):
190 * ntplay.c (play_sound_data_1):
191 * ntplay.c (play_sound_data):
192 * objects-msw.c (colormap_t):
193 * objects-msw.c (fontmap_t):
194 * objects-msw.c (mswindows_string_to_color):
195 * objects-msw.c (mswindows_color_to_string):
196 * objects-msw.c (match_font):
197 * objects-msw.c (font_enum_callback_2):
198 * objects-msw.c (sort_font_list_function):
199 * objects-msw.c (parse_font_spec):
200 * objects-msw.c (mswindows_font_spec_matches_charset_stage_1):
201 * objects-tty.c (tty_initialize_font_instance):
202 * objects-x.c (x_font_instance_properties):
203 * print.c (printing_major_badness):
204 * process-nt.c (mswindows_compare_env):
205 * process-nt.c (get_internet_address):
206 * process.c:
207 * process.c (handle_signal):
208 * process.c (deactivate_process):
209 * redisplay.h:
210 * select-common.h (selection_data_to_lisp_data):
211 * select-common.h (lisp_data_to_selection_data):
212 * select-gtk.c (emacs_gtk_selection_handle):
213 * select-x.c (x_reply_selection_request):
214 * select-x.c (x_handle_selection_request):
215 * select-x.c (x_get_window_property):
216 * select-x.c (receive_incremental_selection):
217 * select-x.c (x_get_window_property_as_lisp_data):
218 * select-x.c (Fx_get_cutbuffer_internal):
219 * sgiplay.c:
220 * sgiplay.c (play_sound_file):
221 * sgiplay.c (play_sound_data):
222 * sgiplay.c (audio_initialize):
223 * sgiplay.c (play_internal):
224 * sgiplay.c (write_mulaw_8_chunk):
225 * sgiplay.c (write_linear_chunk):
226 * sgiplay.c (struct):
227 * sgiplay.c (parse_snd_header):
228 * sound.c:
229 * sound.c (report_sound_error):
230 * sound.c (Fplay_sound):
231 * sound.h:
232 * sunplay.c (init_device):
233 * sunplay.c (play_sound_file):
234 * sunplay.c (play_sound_data):
235 * sysfile.h:
236 * sysdep.c (retry_fopen):
237 * sysdep.c (qxe_fopen):
238 * sysdep.c (wcslen):
239 * syswindows.h (LOCAL_FILE_FORMAT_MAYBE_URL_TO_TSTR):
240 * text.c (ascii_strcasecmp):
241 * text.c (qxestrcasecmp_ascii):
242 * text.c (ascii_strncasecmp):
243 * text.c (qxestrncasecmp_ascii):
244 * text.c (convert_ibyte_string_into_ichar_dynarr):
245 * text.c (convert_ibyte_string_into_ichar_string):
246 * text.c (eicmp_1):
247 * unexnt.c (unexec):
248 * unexnt.c (get_section_info):
249 * unexnt.c (copy_executable_and_dump_data_section):
250 * unexnt.c (dump_bss_and_heap):
251 * win32.c (urlify_filename):
252 * win32.c (mswindows_lisp_error_1):
253 * xgccache.c (gc_cache_lookup):
254 * text.c (qxesprintf):
255 Further work on types. This creates a full set of types for all
256 the basic semantics of `char' that I have so far identified, so that
257 its semantics can always be identified for the purposes of proper
258 Mule-safe code, and the raw use of `char' always avoided.
259
260 (1) More type renaming, for consistency of naming.
261
262 Char_ASCII -> Ascbyte
263 UChar_ASCII -> UAscbyte
264 Char_Binary -> CBinbyte
265 UChar_Binary -> Binbyte
266 SChar_Binary -> SBinbyte
267
268 (2) Introduce Rawbyte, CRawbyte, Boolbyte, Chbyte, UChbyte, and
269 Bitbyte and use them.
270
271 (3) New types Itext, Wexttext and Textcount for separating out
272 the concepts of bytes and textual units (different under UTF-16
273 and UTF-32, which are potential internal encodings).
274
275 (4) qxestr*_c -> qxestr*_ascii.
276
277 * lisp.h (qxesscanf_ascii_1):
278 New; goes with other qxe() functions. #### Maybe goes in a
279 different section.
280
281 * lisp.h:
282 Group generic int-type defs together with EMACS_INT defs.
283
284 * lisp.h (EXTTEXT_ZTERM_SIZE):
285 * lisp.h (ITEXT_SIZE):
286 * lisp.h (NON_ASCII_INTERNAL_FORMAT):
287 * lisp.h (UTF16_IBYTE_FORMAT):
288 * lisp.h (WEXTTEXT_IS_WIDE)
289 New defns.
290
291 * lisp.h (Boolean):
292 New type to replace places where int occurs as a boolean.
293 It's signed because occasionally people may want to use -1 as
294 an error value, and because unsigned ints are viral -- see comments
295 in the internals manual against using them.
296
297 * dynarr.c:
298 * dynarr.c (Dynarr_realloc):
299 * dynarr.c (Dynarr_resize):
300 int -> Bytecount.
301
302 ---------------------------
303 Mule-izing
304 ---------------------------
305
306 * device-x.c:
307 * device-x.c (Fx_server_vendor):
308 * device-x.c (Fx_valid_keysym_name_p):
309 * device-x.c (Fx_get_font_path):
310 * device-x.c (Fx_set_font_path):
311 * device-x.c (reinit_console_type_create_device_x):
312 Partially Mule-ize.
313
314 * dumper.c (see above):
315 * dumper.c (pdump_file_get):
316 * dumper.c (pdump_resource_get):
317 * dumper.c (pdump_file_free):
318 * dumper.c (pdump_ram_try):
319 * dumper.c (pdump_file_try):
320 * dumper.c (pdump_load):
321 * dumper.h:
322 Mule-ize. Use Rawbyte. Use stderr_out not printf. Use wext_*().
323
324 * sysdep.c:
325 * sysdep.c (retry_open_1):
326 * sysdep.c (retry_open):
327 * sysdep.c (wext_retry_open):
328 * syswindows.h:
329 * text.c (wcscmp_ascii):
330 * text.c (wcsncmp_ascii):
331 New Wexttext API for manipulation of external text that may be
332 Unicode (e.g. startup code under Windows).
333
334 * emacs.c (make_arg_list_1):
335 * emacs.c (make_arg_list):
336 * emacs.c (make_argc_argv):
337 * emacs.c (free_argc_argv):
338 * emacs.c (init_cmdargs):
339 * emacs.c (argmatch):
340 * emacs.c (check_compatible_window_system):
341 * emacs.c (struct standard_args):
342 * emacs.c (sort_args):
343 * emacs.c (main):
344 * emacs.c (debug_can_access_memory):
345 * emacs.c (shut_down_emacs):
346 * emacs.c (guts_of_fatal_error_signal):
347 * emacs.c (assert_failed):
348 Mule-ize. Properly deal with argv in external encoding.
349 Use wext_*() and Wexttext. Use Rawbyte.
350
351 #if 0 some old junk on SCO that is unlikely to be correct.
352
353 Rewrite allocation code in run-temacs.
354
355 * emacs.c:
356 * symsinit.h:
357 * win32.c (init_win32_very_very_early):
358 Rename win32 init function and call it even earlier, to
359 initialize mswindows_9x_p even earlier, for use in startup code
360 (XEUNICODE_P).
361
362 * process.c (init_xemacs_process):
363 Use _wenviron not environ under Windows, to get Unicode environment
364 variables.
365
366 * event-Xt.c (x_event_to_emacs_event):
367 Mule-ize drag-n-drop related stuff.
368
369 * dragdrop.c (dnd_url_hexify_string):
370 * dragdrop.h:
371 * frame-x.c:
372 * frame-x.c (x_wm_set_cell_size):
373 * frame-x.c (x_wm_set_variable_size):
374 * frame-x.c (x_wm_hack_wm_protocols):
375 * frame-x.c (x_wm_store_class_hints):
376 * frame-x.c (x_wm_maybe_store_wm_command):
377 * frame-x.c (x_frame_window_state):
378 * frame-x.c (x_set_frame_text_value):
379 * frame-x.c (x_set_initial_frame_size):
380 * frame-x.c (x_set_frame_properties):
381 * frame-x.c (maybe_set_frame_title_format):
382 * frame-x.c (start_drag_internal_1):
383 * frame-x.c (x_cde_destroy_callback):
384 * frame-x.c (x_cde_convert_callback):
385 * frame-x.c (abort_current_drag):
386 * frame-x.c (Fcde_start_drag_internal):
387 * frame-x.c (x_cde_transfer_callback):
388 * frame-x.c (Foffix_start_drag_internal):
389 * frame-x.c (x_initialize_frame_size):
390 * frame-x.c (x_create_widgets):
391 * frame-x.c (xemacs_XtPopup):
392 * frame-x.c (x_popup_frame):
393 * frame-x.c (x_set_frame_icon):
394 * frame-x.c (x_set_frame_position):
395 * frame-x.c (x_delete_frame):
396 * frame-x.c (x_update_frame_external_traits):
397 Mule-ize.
398
399 * text.h:
400 Add some more stand-in defines for particular kinds of conversion;
401 use in Mule-ization work in frame-x.c etc.
402
403 ---------------------------
404 Freshening
405 ---------------------------
406
407 * intl-auto-encap-win32.c:
408 * intl-auto-encap-win32.c (qxePeekConsoleInput):
409 * intl-auto-encap-win32.c (qxeReadConsoleInput):
410 * intl-auto-encap-win32.c (qxeWriteConsoleInput):
411 * intl-auto-encap-win32.c (qxeExtractAssociatedIcon):
412 * intl-auto-encap-win32.c (qxeShellExecuteEx):
413 * intl-auto-encap-win32.c (qxeSHQueryRecycleBin):
414 * intl-auto-encap-win32.c (qxeSHEmptyRecycleBin):
415 * intl-auto-encap-win32.c (qxeSHGetNewLinkInfo):
416 * intl-auto-encap-win32.c (qxeSHInvokePrinterCommand):
417 * intl-auto-encap-win32.c (qxewvsprintf):
418 * intl-auto-encap-win32.c (qxeLoadKeyboardLayout):
419 * intl-auto-encap-win32.c (qxeGetKeyboardLayoutName):
420 * intl-auto-encap-win32.c (qxeOpenDesktop):
421 * intl-auto-encap-win32.c (qxeEnumDesktops):
422 * intl-auto-encap-win32.c (qxeCreateWindowStation):
423 * intl-auto-encap-win32.c (qxeOpenWindowStation):
424 * intl-auto-encap-win32.c (qxeEnumWindowStations):
425 * intl-auto-encap-win32.c (qxeGetUserObjectInformation):
426 * intl-auto-encap-win32.c (qxeSetUserObjectInformation):
427 * intl-auto-encap-win32.c (qxeRegisterWindowMessage):
428 * intl-auto-encap-win32.c (qxeGetMessage):
429 * intl-auto-encap-win32.c (qxeDispatchMessage):
430 * intl-auto-encap-win32.c (qxePeekMessage):
431 * intl-auto-encap-win32.c (qxeSendMessageTimeout):
432 * intl-auto-encap-win32.c (qxeSendNotifyMessage):
433 * intl-auto-encap-win32.c (qxeSendMessageCallback):
434 * intl-auto-encap-win32.c (qxePostMessage):
435 * intl-auto-encap-win32.c (qxePostThreadMessage):
436 * intl-auto-encap-win32.c (qxeGetClassInfoEx):
437 * intl-auto-encap-win32.c (qxeCreateWindowEx):
438 * intl-auto-encap-win32.c (qxeCreateDialogParam):
439 * intl-auto-encap-win32.c (qxeCreateDialogIndirectParam):
440 * intl-auto-encap-win32.c (qxeDialogBoxParam):
441 * intl-auto-encap-win32.c (qxeDialogBoxIndirectParam):
442 * intl-auto-encap-win32.c (qxeSetDlgItemText):
443 * intl-auto-encap-win32.c (qxeGetDlgItemText):
444 * intl-auto-encap-win32.c (qxeSendDlgItemMessage):
445 * intl-auto-encap-win32.c (qxeCallMsgFilter):
446 * intl-auto-encap-win32.c (qxeRegisterClipboardFormat):
447 * intl-auto-encap-win32.c (qxeGetClipboardFormatName):
448 * intl-auto-encap-win32.c (qxeCharToOem):
449 * intl-auto-encap-win32.c (qxeOemToChar):
450 * intl-auto-encap-win32.c (qxeCharToOemBuff):
451 * intl-auto-encap-win32.c (qxeOemToCharBuff):
452 * intl-auto-encap-win32.c (qxeCharUpper):
453 * intl-auto-encap-win32.c (qxeCharUpperBuff):
454 * intl-auto-encap-win32.c (qxeCharLower):
455 * intl-auto-encap-win32.c (qxeCharLowerBuff):
456 * intl-auto-encap-win32.c (qxeCharNext):
457 * intl-auto-encap-win32.c (qxeCharPrev):
458 * intl-auto-encap-win32.c (qxeMapVirtualKey):
459 * intl-auto-encap-win32.c (qxeMapVirtualKeyEx):
460 * intl-auto-encap-win32.c (qxeLoadAccelerators):
461 * intl-auto-encap-win32.c (qxeCreateAcceleratorTable):
462 * intl-auto-encap-win32.c (qxeCopyAcceleratorTable):
463 * intl-auto-encap-win32.c (qxeTranslateAccelerator):
464 * intl-auto-encap-win32.c (qxeLoadMenu):
465 * intl-auto-encap-win32.c (qxeLoadMenuIndirect):
466 * intl-auto-encap-win32.c (qxeChangeMenu):
467 * intl-auto-encap-win32.c (qxeGetMenuString):
468 * intl-auto-encap-win32.c (qxeInsertMenu):
469 * intl-auto-encap-win32.c (qxeAppendMenu):
470 * intl-auto-encap-win32.c (qxeModifyMenu):
471 * intl-auto-encap-win32.c (qxeInsertMenuItem):
472 * intl-auto-encap-win32.c (qxeGetMenuItemInfo):
473 * intl-auto-encap-win32.c (qxeSetMenuItemInfo):
474 * intl-auto-encap-win32.c (qxeDrawText):
475 * intl-auto-encap-win32.c (qxeDrawTextEx):
476 * intl-auto-encap-win32.c (qxeGrayString):
477 * intl-auto-encap-win32.c (qxeDrawState):
478 * intl-auto-encap-win32.c (qxeTabbedTextOut):
479 * intl-auto-encap-win32.c (qxeGetTabbedTextExtent):
480 * intl-auto-encap-win32.c (qxeSetProp):
481 * intl-auto-encap-win32.c (qxeGetProp):
482 * intl-auto-encap-win32.c (qxeRemoveProp):
483 * intl-auto-encap-win32.c (qxeEnumPropsEx):
484 * intl-auto-encap-win32.c (qxeEnumProps):
485 * intl-auto-encap-win32.c (qxeSetWindowText):
486 * intl-auto-encap-win32.c (qxeGetWindowText):
487 * intl-auto-encap-win32.c (qxeGetWindowTextLength):
488 * intl-auto-encap-win32.c (qxeMessageBox):
489 * intl-auto-encap-win32.c (qxeMessageBoxEx):
490 * intl-auto-encap-win32.c (qxeMessageBoxIndirect):
491 * intl-auto-encap-win32.c (qxeGetWindowLong):
492 * intl-auto-encap-win32.c (qxeSetWindowLong):
493 * intl-auto-encap-win32.c (qxeGetClassLong):
494 * intl-auto-encap-win32.c (qxeSetClassLong):
495 * intl-auto-encap-win32.c (qxeFindWindow):
496 * intl-auto-encap-win32.c (qxeFindWindowEx):
497 * intl-auto-encap-win32.c (qxeGetClassName):
498 * intl-auto-encap-win32.c (qxeSetWindowsHookEx):
499 * intl-auto-encap-win32.c (qxeLoadBitmap):
500 * intl-auto-encap-win32.c (qxeLoadCursor):
501 * intl-auto-encap-win32.c (qxeLoadCursorFromFile):
502 * intl-auto-encap-win32.c (qxeLoadIcon):
503 * intl-auto-encap-win32.c (qxeLoadImage):
504 * intl-auto-encap-win32.c (qxeLoadString):
505 * intl-auto-encap-win32.c (qxeIsDialogMessage):
506 * intl-auto-encap-win32.c (qxeDlgDirList):
507 * intl-auto-encap-win32.c (qxeDlgDirSelectEx):
508 * intl-auto-encap-win32.c (qxeDlgDirListComboBox):
509 * intl-auto-encap-win32.c (qxeDlgDirSelectComboBoxEx):
510 * intl-auto-encap-win32.c (qxeDefFrameProc):
511 * intl-auto-encap-win32.c (qxeCreateMDIWindow):
512 * intl-auto-encap-win32.c (qxeWinHelp):
513 * intl-auto-encap-win32.c (qxeRegLoadKey):
514 * intl-auto-encap-win32.c (qxeRegOpenKey):
515 * intl-auto-encap-win32.c (qxeSetLocaleInfo):
516 * intl-auto-encap-win32.c (qxeCopyMetaFile):
517 * intl-auto-encap-win32.c (qxeCreateScalableFontResource):
518 * intl-auto-encap-win32.c (qxeGetCharWidth):
519 * intl-auto-encap-win32.c (qxeGetCharWidth32):
520 * intl-auto-encap-win32.c (qxeGetCharWidthFloat):
521 * intl-auto-encap-win32.c (qxeGetCharABCWidths):
522 * intl-auto-encap-win32.c (qxeGetCharABCWidthsFloat):
523 * intl-auto-encap-win32.c (qxeGetGlyphOutline):
524 * intl-auto-encap-win32.c (qxeGetMetaFile):
525 * intl-auto-encap-win32.c (qxeGetTextExtentPoint):
526 * intl-auto-encap-win32.c (qxeGetTextExtentPoint32):
527 * intl-auto-encap-win32.c (qxeGetTextExtentExPoint):
528 * intl-auto-encap-win32.c (qxeGetCharacterPlacement):
529 * intl-auto-encap-win32.c (qxeCopyEnhMetaFile):
530 * intl-auto-encap-win32.c (qxeCreateEnhMetaFile):
531 * intl-auto-encap-win32.c (qxeGetEnhMetaFile):
532 * intl-auto-encap-win32.c (qxeGetEnhMetaFileDescription):
533 * intl-auto-encap-win32.c (qxeTextOut):
534 * intl-auto-encap-win32.c (qxeExtTextOut):
535 * intl-auto-encap-win32.c (qxePolyTextOut):
536 * intl-auto-encap-win32.c (qxeGetTextFace):
537 * intl-auto-encap-win32.c (qxeGetKerningPairs):
538 * intl-auto-encap-win32.c (qxeEnumICMProfiles):
539 * intl-auto-encap-win32.c (qxeGetOpenFileName):
540 * intl-auto-encap-win32.c (qxeGetSaveFileName):
541 * intl-auto-encap-win32.c (qxeGetFileTitle):
542 * intl-auto-encap-win32.c (qxeChooseColor):
543 * intl-auto-encap-win32.c (qxeFindText):
544 * intl-auto-encap-win32.c (qxeReplaceText):
545 * intl-auto-encap-win32.c (qxeImmGetDescription):
546 * intl-auto-encap-win32.c (qxeImmGetIMEFileName):
547 * intl-auto-encap-win32.c (qxeMoveFile):
548 * intl-auto-encap-win32.c (qxeMoveFileEx):
549 * intl-auto-encap-win32.c (qxeGetNamedPipeHandleState):
550 * intl-auto-encap-win32.c (qxeCallNamedPipe):
551 * intl-auto-encap-win32.c (qxeWaitNamedPipe):
552 * intl-auto-encap-win32.c (qxeSetVolumeLabel):
553 * intl-auto-encap-win32.c (qxeGetVolumeInformation):
554 * intl-auto-encap-win32.c (qxeClearEventLog):
555 * intl-auto-encap-win32.c (qxeBackupEventLog):
556 * intl-auto-encap-win32.c (qxeOpenEventLog):
557 * intl-auto-encap-win32.c (qxeRegisterEventSource):
558 * intl-auto-encap-win32.c (qxeOpenBackupEventLog):
559 * intl-auto-encap-win32.c (qxeReadEventLog):
560 * intl-auto-encap-win32.c (qxeReportEvent):
561 * intl-auto-encap-win32.c (qxeAccessCheckAndAuditAlarm):
562 * intl-auto-encap-win32.c (qxeObjectOpenAuditAlarm):
563 * intl-auto-encap-win32.c (qxeObjectPrivilegeAuditAlarm):
564 * intl-auto-encap-win32.c (qxeObjectCloseAuditAlarm):
565 * intl-auto-encap-win32.c (qxeObjectDeleteAuditAlarm):
566 * intl-auto-encap-win32.c (qxePrivilegedServiceAuditAlarm):
567 * intl-auto-encap-win32.c (qxeSetFileSecurity):
568 * intl-auto-encap-win32.c (qxeGetFileSecurity):
569 * intl-auto-encap-win32.c (qxeFindFirstChangeNotification):
570 * intl-auto-encap-win32.c (qxeIsBadStringPtr):
571 * intl-auto-encap-win32.c (qxeLookupAccountSid):
572 * intl-auto-encap-win32.c (qxeLookupAccountName):
573 * intl-auto-encap-win32.c (qxeLookupPrivilegeValue):
574 * intl-auto-encap-win32.c (qxeLookupPrivilegeName):
575 * intl-auto-encap-win32.c (qxeLookupPrivilegeDisplayName):
576 * intl-auto-encap-win32.c (qxeBuildCommDCB):
577 * intl-auto-encap-win32.c (qxeBuildCommDCBAndTimeouts):
578 * intl-auto-encap-win32.c (qxeCommConfigDialog):
579 * intl-auto-encap-win32.c (qxeGetDefaultCommConfig):
580 * intl-auto-encap-win32.c (qxeSetDefaultCommConfig):
581 * intl-auto-encap-win32.c (qxeGetComputerName):
582 * intl-auto-encap-win32.c (qxeSetComputerName):
583 * intl-auto-encap-win32.c (qxeGetUserName):
584 * intl-auto-encap-win32.c (qxeLogonUser):
585 * intl-auto-encap-win32.c (qxeCreateProcessAsUser):
586 * intl-auto-encap-win32.c (qxesndPlaySound):
587 * intl-auto-encap-win32.c (qxePlaySound):
588 * intl-auto-encap-win32.c (qxemidiInGetErrorText):
589 * intl-auto-encap-win32.c (qxemmioInstallIOProc):
590 * intl-auto-encap-win32.c (qxemmioOpen):
591 * intl-auto-encap-win32.c (qxemmioRename):
592 * intl-auto-encap-win32.c (qxemciSendCommand):
593 * intl-auto-encap-win32.c (qxemciSendString):
594 * intl-auto-encap-win32.c (qxemciGetDeviceID):
595 * intl-auto-encap-win32.h:
596 * intl-auto-encap-win32.h (EnumPrinters):
597 * intl-auto-encap-win32.h (ResetPrinter):
598 * intl-auto-encap-win32.h (SetJob):
599 * intl-auto-encap-win32.h (GetJob):
600 * intl-auto-encap-win32.h (EnumJobs):
601 * intl-auto-encap-win32.h (AddPrinter):
602 * intl-auto-encap-win32.h (SetPrinter):
603 * intl-auto-encap-win32.h (GetPrinter):
604 * intl-auto-encap-win32.h (AddPrinterDriver):
605 * intl-auto-encap-win32.h (AddPrinterDriverEx):
606 * intl-auto-encap-win32.h (EnumPrinterDrivers):
607 * intl-auto-encap-win32.h (GetPrinterDriver):
608 * intl-auto-encap-win32.h (GetPrinterDriverDirectory):
609 * intl-auto-encap-win32.h (DeletePrinterDriver):
610 * intl-auto-encap-win32.h (DeletePrinterDriverEx):
611 * intl-auto-encap-win32.h (AddPerMachineConnection):
612 * intl-auto-encap-win32.h (DeletePerMachineConnection):
613 * intl-auto-encap-win32.h (EnumPerMachineConnections):
614 * intl-auto-encap-win32.h (AddPrintProcessor):
615 * intl-auto-encap-win32.h (EnumPrintProcessors):
616 * intl-auto-encap-win32.h (GetPrintProcessorDirectory):
617 * intl-auto-encap-win32.h (EnumPrintProcessorDatatypes):
618 * intl-auto-encap-win32.h (DeletePrintProcessor):
619 * intl-auto-encap-win32.h (StartDocPrinter):
620 * intl-auto-encap-win32.h (AddJob):
621 * intl-auto-encap-win32.h (AdvancedDocumentProperties):
622 * intl-auto-encap-win32.h (GetPrinterData):
623 * intl-auto-encap-win32.h (GetPrinterDataEx):
624 * intl-auto-encap-win32.h (EnumPrinterData):
625 * intl-auto-encap-win32.h (EnumPrinterDataEx):
626 * intl-auto-encap-win32.h (EnumPrinterKey):
627 * intl-auto-encap-win32.h (SetPrinterData):
628 * intl-auto-encap-win32.h (SetPrinterDataEx):
629 * intl-auto-encap-win32.h (DeletePrinterData):
630 * intl-auto-encap-win32.h (DeletePrinterDataEx):
631 * intl-auto-encap-win32.h (DeletePrinterKey):
632 * intl-auto-encap-win32.h (PrinterMessageBox):
633 * intl-auto-encap-win32.h (AddForm):
634 * intl-auto-encap-win32.h (DeleteForm):
635 * intl-auto-encap-win32.h (GetForm):
636 * intl-auto-encap-win32.h (SetForm):
637 * intl-auto-encap-win32.h (EnumForms):
638 * intl-auto-encap-win32.h (EnumMonitors):
639 * intl-auto-encap-win32.h (AddMonitor):
640 * intl-auto-encap-win32.h (DeleteMonitor):
641 * intl-auto-encap-win32.h (EnumPorts):
642 * intl-auto-encap-win32.h (AddPort):
643 * intl-auto-encap-win32.h (ConfigurePort):
644 * intl-auto-encap-win32.h (DeletePort):
645 * intl-auto-encap-win32.h (XcvData):
646 * intl-auto-encap-win32.h (SetPort):
647 * intl-auto-encap-win32.h (AddPrinterConnection):
648 * intl-auto-encap-win32.h (DeletePrinterConnection):
649 * intl-auto-encap-win32.h (AddPrintProvidor):
650 * intl-auto-encap-win32.h (DeletePrintProvidor):
651 * intl-auto-encap-win32.h (SetPrinterHTMLView):
652 * intl-auto-encap-win32.h (GetPrinterHTMLView):
653 * intl-auto-encap-win32.h (WNetAddConnection):
654 * intl-auto-encap-win32.h (WNetAddConnection2):
655 * intl-auto-encap-win32.h (WNetAddConnection3):
656 * intl-auto-encap-win32.h (WNetCancelConnection):
657 * intl-auto-encap-win32.h (WNetCancelConnection2):
658 * intl-auto-encap-win32.h (WNetGetConnection):
659 * intl-auto-encap-win32.h (WNetUseConnection):
660 * intl-auto-encap-win32.h (WNetConnectionDialog1):
661 * intl-auto-encap-win32.h (WNetDisconnectDialog1):
662 * intl-auto-encap-win32.h (WNetOpenEnum):
663 * intl-auto-encap-win32.h (WNetEnumResource):
664 * intl-auto-encap-win32.h (WNetGetUniversalName):
665 * intl-auto-encap-win32.h (WNetGetUser):
666 * intl-auto-encap-win32.h (WNetGetProviderName):
667 * intl-auto-encap-win32.h (WNetGetNetworkInformation):
668 * intl-auto-encap-win32.h (WNetGetLastError):
669 * intl-auto-encap-win32.h (MultinetGetConnectionPerformance):
670 * intl-auto-encap-win32.h (GetBinaryType):
671 * intl-auto-encap-win32.h (GetShortPathName):
672 * intl-auto-encap-win32.h (GetLongPathName):
673 * intl-auto-encap-win32.h (FreeEnvironmentStrings):
674 * intl-auto-encap-win32.h (FormatMessage):
675 * intl-auto-encap-win32.h (CreateMailslot):
676 * intl-auto-encap-win32.h (EncryptFile):
677 * intl-auto-encap-win32.h (DecryptFile):
678 * intl-auto-encap-win32.h (OpenRaw):
679 * intl-auto-encap-win32.h (QueryRecoveryAgents):
680 * intl-auto-encap-win32.h (lstrcmp):
681 * intl-auto-encap-win32.h (lstrcmpi):
682 * intl-auto-encap-win32.h (lstrcpyn):
683 * intl-auto-encap-win32.h (lstrcpy):
684 * intl-auto-encap-win32.h (lstrcat):
685 * intl-auto-encap-win32.h (lstrlen):
686 * intl-auto-encap-win32.h (CreateMutex):
687 * intl-auto-encap-win32.h (OpenMutex):
688 * intl-auto-encap-win32.h (CreateEvent):
689 * intl-auto-encap-win32.h (OpenEvent):
690 * intl-auto-encap-win32.h (CreateSemaphore):
691 * intl-auto-encap-win32.h (OpenSemaphore):
692 * intl-auto-encap-win32.h (CreateWaitableTimer):
693 * intl-auto-encap-win32.h (OpenWaitableTimer):
694 * intl-auto-encap-win32.h (CreateFileMapping):
695 * intl-auto-encap-win32.h (OpenFileMapping):
696 * intl-auto-encap-win32.h (GetLogicalDriveStrings):
697 * intl-auto-encap-win32.h (LoadLibrary):
698 * intl-auto-encap-win32.h (LoadLibraryEx):
699 * intl-auto-encap-win32.h (GetModuleFileName):
700 * intl-auto-encap-win32.h (GetModuleHandle):
701 * intl-auto-encap-win32.h (CreateProcess):
702 * intl-auto-encap-win32.h (FatalAppExit):
703 * intl-auto-encap-win32.h (GetStartupInfo):
704 * intl-auto-encap-win32.h (GetCommandLine):
705 * intl-auto-encap-win32.h (GetEnvironmentVariable):
706 * intl-auto-encap-win32.h (SetEnvironmentVariable):
707 * intl-auto-encap-win32.h (ExpandEnvironmentStrings):
708 * intl-auto-encap-win32.h (OutputDebugString):
709 * intl-auto-encap-win32.h (FindResource):
710 * intl-auto-encap-win32.h (FindResourceEx):
711 * intl-auto-encap-win32.h (EnumResourceTypes):
712 * intl-auto-encap-win32.h (EnumResourceNames):
713 * intl-auto-encap-win32.h (EnumResourceLanguages):
714 * intl-auto-encap-win32.h (BeginUpdateResource):
715 * intl-auto-encap-win32.h (UpdateResource):
716 * intl-auto-encap-win32.h (EndUpdateResource):
717 * intl-auto-encap-win32.h (GlobalAddAtom):
718 * intl-auto-encap-win32.h (GlobalFindAtom):
719 * intl-auto-encap-win32.h (GlobalGetAtomName):
720 * intl-auto-encap-win32.h (AddAtom):
721 * intl-auto-encap-win32.h (FindAtom):
722 * intl-auto-encap-win32.h (GetAtomName):
723 * intl-auto-encap-win32.h (GetProfileInt):
724 * intl-auto-encap-win32.h (GetProfileString):
725 * intl-auto-encap-win32.h (WriteProfileString):
726 * intl-auto-encap-win32.h (GetProfileSection):
727 * intl-auto-encap-win32.h (WriteProfileSection):
728 * intl-auto-encap-win32.h (GetPrivateProfileInt):
729 * intl-auto-encap-win32.h (GetPrivateProfileString):
730 * intl-auto-encap-win32.h (WritePrivateProfileString):
731 * intl-auto-encap-win32.h (GetPrivateProfileSection):
732 * intl-auto-encap-win32.h (WritePrivateProfileSection):
733 * intl-auto-encap-win32.h (GetPrivateProfileSectionNames):
734 * intl-auto-encap-win32.h (GetPrivateProfileStruct):
735 * intl-auto-encap-win32.h (WritePrivateProfileStruct):
736 * intl-auto-encap-win32.h (GetDriveType):
737 * intl-auto-encap-win32.h (GetSystemDirectory):
738 * intl-auto-encap-win32.h (GetTempPath):
739 * intl-auto-encap-win32.h (GetTempFileName):
740 * intl-auto-encap-win32.h (GetWindowsDirectory):
741 * intl-auto-encap-win32.h (SetCurrentDirectory):
742 * intl-auto-encap-win32.h (GetCurrentDirectory):
743 * intl-auto-encap-win32.h (GetDiskFreeSpace):
744 * intl-auto-encap-win32.h (GetDiskFreeSpaceEx):
745 * intl-auto-encap-win32.h (CreateDirectory):
746 * intl-auto-encap-win32.h (CreateDirectoryEx):
747 * intl-auto-encap-win32.h (RemoveDirectory):
748 * intl-auto-encap-win32.h (GetFullPathName):
749 * intl-auto-encap-win32.h (DefineDosDevice):
750 * intl-auto-encap-win32.h (QueryDosDevice):
751 * intl-auto-encap-win32.h (CreateFile):
752 * intl-auto-encap-win32.h (SetFileAttributes):
753 * intl-auto-encap-win32.h (GetFileAttributes):
754 * intl-auto-encap-win32.h (GetFileAttributesEx):
755 * intl-auto-encap-win32.h (GetCompressedFileSize):
756 * intl-auto-encap-win32.h (DeleteFile):
757 * intl-auto-encap-win32.h (FindFirstFileEx):
758 * intl-auto-encap-win32.h (SearchPath):
759 * intl-auto-encap-win32.h (CopyFile):
760 * intl-auto-encap-win32.h (CopyFileEx):
761 * intl-auto-encap-win32.h (MoveFile):
762 * intl-auto-encap-win32.h (MoveFileEx):
763 * intl-auto-encap-win32.h (MoveFileWithProgress):
764 * intl-auto-encap-win32.h (CreateHardLink):
765 * intl-auto-encap-win32.h (CreateNamedPipe):
766 * intl-auto-encap-win32.h (GetNamedPipeHandleState):
767 * intl-auto-encap-win32.h (CallNamedPipe):
768 * intl-auto-encap-win32.h (WaitNamedPipe):
769 * intl-auto-encap-win32.h (SetVolumeLabel):
770 * intl-auto-encap-win32.h (GetVolumeInformation):
771 * intl-auto-encap-win32.h (ClearEventLog):
772 * intl-auto-encap-win32.h (BackupEventLog):
773 * intl-auto-encap-win32.h (OpenEventLog):
774 * intl-auto-encap-win32.h (RegisterEventSource):
775 * intl-auto-encap-win32.h (OpenBackupEventLog):
776 * intl-auto-encap-win32.h (ReadEventLog):
777 * intl-auto-encap-win32.h (ReportEvent):
778 * intl-auto-encap-win32.h (AccessCheckAndAuditAlarm):
779 * intl-auto-encap-win32.h (AccessCheckByTypeAndAuditAlarm):
780 * intl-auto-encap-win32.h (AccessCheckByTypeResultListAndAuditAlarm):
781 * intl-auto-encap-win32.h (ObjectOpenAuditAlarm):
782 * intl-auto-encap-win32.h (ObjectPrivilegeAuditAlarm):
783 * intl-auto-encap-win32.h (ObjectCloseAuditAlarm):
784 * intl-auto-encap-win32.h (ObjectDeleteAuditAlarm):
785 * intl-auto-encap-win32.h (PrivilegedServiceAuditAlarm):
786 * intl-auto-encap-win32.h (SetFileSecurity):
787 * intl-auto-encap-win32.h (GetFileSecurity):
788 * intl-auto-encap-win32.h (FindFirstChangeNotification):
789 * intl-auto-encap-win32.h (ReadDirectoryChanges):
790 * intl-auto-encap-win32.h (IsBadStringPtr):
791 * intl-auto-encap-win32.h (LookupAccountSid):
792 * intl-auto-encap-win32.h (LookupAccountName):
793 * intl-auto-encap-win32.h (LookupPrivilegeValue):
794 * intl-auto-encap-win32.h (LookupPrivilegeName):
795 * intl-auto-encap-win32.h (LookupPrivilegeDisplayName):
796 * intl-auto-encap-win32.h (BuildCommDCB):
797 * intl-auto-encap-win32.h (BuildCommDCBAndTimeouts):
798 * intl-auto-encap-win32.h (CommConfigDialog):
799 * intl-auto-encap-win32.h (GetDefaultCommConfig):
800 * intl-auto-encap-win32.h (SetDefaultCommConfig):
801 * intl-auto-encap-win32.h (GetComputerName):
802 * intl-auto-encap-win32.h (SetComputerName):
803 * intl-auto-encap-win32.h (GetUserName):
804 * intl-auto-encap-win32.h (LogonUser):
805 * intl-auto-encap-win32.h (CreateProcessAsUser):
806 * intl-auto-encap-win32.h (GetCurrentHwProfile):
807 * intl-auto-encap-win32.h (GetVersionEx):
808 * intl-auto-encap-win32.h (CreateJobObject):
809 * intl-auto-encap-win32.h (OpenJobObject):
810 * intl-auto-encap-win32.h (qxemciGetErrorString):
811 Regenerate.
812
813 ---------------------------
814 Unicode-work
815 ---------------------------
816
817 * intl-win32.c (convert_multibyte_to_unicode_malloc):
818 * intl-win32.c (convert_unicode_to_multibyte_malloc):
819 * intl-win32.c (unicode_multibyte_convert_now_damn_it):
820 * intl-win32.c (unicode_multibyte_convert_size):
821 * intl-win32.c (unicode_multibyte_convert_copy_data):
822 * intl-win32.c (convert_multibyte_to_unicode_dynarr):
823 * intl-win32.c (convert_unicode_to_multibyte_dynarr):
824 * intl-win32.c (mswindows_multibyte_to_unicode_convert):
825 * syswindows.h:
826 Factor out common options to MultiByteToWideChar and
827 WideCharToMultiByte. Add convert_unicode_to_multibyte_malloc()
828 and convert_unicode_to_multibyte_dynarr() and use. Add stuff for
829 alloca() conversion of multibyte/unicode.
830
831 * alloc.c (build_ext_string):
832 Use dfc_external_data_len() in case of unicode coding system.
833
834 * alloc.c:
835 * mule-charset.c:
836 * mule-charset.c (make_charset):
837 * mule-charset.c (syms_of_mule_charset):
838 Don't zero out and reinit charset Unicode tables. This fucks up
839 dump-time loading. Anyway, either we load them at dump time or
840 run time, never both.
841
842 * unicode.c (init_charset_unicode_tables):
843 * unicode.c (vars_of_unicode):
844 Dump the blank tables as well.
845
846 ---------------------------------------------------------------
847 DOCUMENTATION, MOSTLY MULE-RELATED:
848 ---------------------------------------------------------------
849
850 * EmacsFrame.c (Xt_StringToScrollBarPlacement):
851 * emodules.c:
852 * event-Xt.c (x_to_emacs_keysym):
853 * fileio.c (Fencrypt_string):
854 * input-method-xlib.c (EmacsXtCvtStringToXIMStyles):
855 * mule-wnnfns.c (Fwnn_open):
856 * redisplay-gtk.c (gtk_output_string):
857 * redisplay-gtk.c (gtk_text_width):
858 * redisplay-tty.c (init_tty_for_redisplay):
859 * redisplay-x.c (x_text_width):
860 * regex.c:
861 * sysdep.c (init_system_name):
862 Add comment about Mule work needed.
863
864 * text.h (NEW_DFC_CONVERT_1_ALLOCA):
865 Add more documentation describing why DFC routines were not written
866 to return their value. Add some other DFC documentation.
867
868 * console-msw.c:
869 * console-msw.h:
870 Add pointer to docs in win32.c.
871
872 * emacs.c:
873 Add comments on sources of doc info.
874
875 * text.c:
876 * text.c (NOTE): New.
877 * text.c (Note): New.
878 * charset.h (struct Lisp_Charset):
879 * unicode.c:
880 * intl-win32.c:
881 * intl-win32.c (NOTE): New.
882 * intl-win32.c (Abstract): New.
883 * intl-encap-win32.c:
884 * text.h:
885 * text.h (internal_format):
886 * file-coding.c (encode_decode_coding_region):
887 * file-coding.c:
888 * mule-coding.c (parse_iso2022_esc):
889 Collect background comments and related to text matters and
890 internationalization, and proposals for work to be done, in text.c
891 or Internals manual, stuff related to specific textual API's in
892 text.h, and stuff related to internal implementation of Unicode
893 conversion in unicode.c. Put lots of pointers to the comments to
894 make them easier to find.
895
896 * s/mingw32.h:
897 * s/win32-common.h:
898 * s/win32-native.h:
899 * s/windowsnt.h:
900 * win32.c:
901 * win32.c (console-msw.h): New.
902 * win32.c (process-nt.c): New.
903 * win32.c (nt.c): New.
904 * win32.c (win32.c): New.
905 * win32.c (syswindows.h): New.
906 * win32.c (intl-win32.c): New.
907 * win32.c (intl-encap-win32.c): New.
908 * win32.c (intl-auto-encap-win32.c): New.
909 * win32.c (intl-auto-encap-win32.h): New.
910 Add bunches of new documentation on the different kinds of
911 builds and environments under Windows and how they work.
912 Collect this info in win32.c. Add pointers to these docs in
913 the relevant s/* files.
914
915 * emacs.c (mswindows_handle_hardware_exceptions_1):
916 * emacs.c:
917 Document places with long comments.
918 Remove comment about exiting, move to internals manual, put
919 in pointer.
920
921 * event-stream.c:
922 Move docs about event queues and focus to internals manual, put
923 in pointer.
924
925 * events.h:
926 Move docs about event stream callbacks to internals manual, put
927 in pointer.
928
929 * profile.c:
930 * redisplay.c (create_text_block):
931 * signal.c:
932 Move documentation to the Internals manual.
933
934 * process-nt.c:
935 Add pointer to comment in win32-native.el.
936
937 * lisp.h:
938 Add comments about some comment conventions.
939
940 * lisp.h (xfree):
941 Add comment about the second argument.
942
943 * device-msw.c (msprinter_init_device):
944 * redisplay-msw.c (mswindows_text_width_single_run):
945 @@#### comments are out-of-date.
946
947 ---------------------------------------------------------------
948 PDUMP WORK (MOTIVATED BY UNICODE CHANGES)
949 ---------------------------------------------------------------
950
951 * alloc.c (lispdesc_block_size_1):
952 * alloc.c (lispdesc_one_description_line_size):
953 * alloc.c (mark_struct_contents):
954 * buffer.c:
955 * buffer.c (complex_vars_of_buffer):
956 * buffer.c (vars_of_buffer):
957 * bytecode.c:
958 * console-impl.h (INITIALIZE_CONSOLE_TYPE):
959 * console.c (complex_vars_of_console):
960 * console.c (console_type_create):
961 * console.c:
962 * device.c:
963 * dumper.c (dump_add_root_block):
964 * dumper.c (dump_add_root_block_ptr):
965 * dumper.c (dump_add_root_lisp_object):
966 * dumper.c (dump_add_weak_object_chain):
967 * dumper.c (pdump_add_block):
968 * dumper.c (pdump_allocate_offset):
969 * dumper.c (pdump_block_list_elt):
970 * dumper.c (pdump_desc_list_elt):
971 * dumper.c (pdump_dump_data):
972 * dumper.c (pdump_dump_root_blocks):
973 * dumper.c (pdump_dump_rtables):
974 * dumper.c (pdump_get_block_list):
975 * dumper.c (pdump_register_block):
976 * dumper.c (pdump_register_block_contents):
977 * dumper.c (pdump_register_object):
978 * dumper.c (pdump_scan_by_alignment):
979 * alloc.c (lispdesc_one_description_line_size):
980 * alloc.c (kkcc_marking):
981 * dumper.c (pdump_register_sub):
982 * lrecord.h:
983 * lrecord.h (struct lrecord_implementation):
984 * lrecord.h (memory_description_type):
985 * elhash.c:
986 * emodules.h:
987 * events.c:
988 * extents.c:
989 * frame.c:
990 * glyphs.c:
991 * glyphs.h (INITIALIZE_DEVICE_IIFORMAT):
992 * glyphs.h (INITIALIZE_IMAGE_INSTANTIATOR_FORMAT_NO_SYM):
993 * mule-charset.c (vars_of_mule_charset):
994 * mule-coding.c:
995 * objects.c:
996 * profile.c (vars_of_profile):
997 * rangetab.c:
998 * redisplay.c:
999 * specifier.c (specifier_type_create):
1000 * specifier.c:
1001 * specifier.h (INITIALIZE_SPECIFIER_TYPE):
1002 * window.c:
1003 * lstream.c (lstream_description):
1004 * file-coding.h (INITIALIZE_CODING_SYSTEM_TYPE):
1005 * file-coding.c (coding_system_description):
1006 * file-coding.c (coding_system_type_create):
1007 * lrecord.h (XD_DYNARR_DESC):
1008 PDUMP:
1009
1010 Properly implement dump_add_root_block(), which never worked before,
1011 and is necessary for dumping Unicode tables.
1012
1013 Pdump name changes for accuracy:
1014 XD_STRUCT_PTR -> XD_BLOCK_PTR.
1015 XD_STRUCT_ARRAY -> XD_BLOCK_ARRAY.
1016 XD_C_STRING -> XD_ASCII_STRING.
1017 *_structure_* -> *_block_*.
1018
1019 * lrecord.h (XD_DYNARR_DESC): some comments added about
1020 dump_add_root_block() vs dump_add_root_block_ptr().
1021
1022 * extents.c:
1023 remove incorrect comment about pdump problems with gap array.
1024
1025 ---------------------------------------------------------------
1026 ALLOCATION
1027 ---------------------------------------------------------------
1028
1029 * abbrev.c (abbrev_oblookup):
1030 * alloc.c (MALLOC_BEGIN):
1031 * bytecode.c (compiled_function_instructions):
1032 * casefiddle.c (casify_object):
1033 * device-msw.c (Fmswindows_printer_list):
1034 * device-x.c:
1035 * dired-msw.c (mswindows_get_files):
1036 * doc.c (Fsubstitute_command_keys):
1037 * doc.c (unparesseuxify_doc_string):
1038 * doc.c:
1039 * doprnt.c (emacs_vsprintf_malloc):
1040 * doprnt.c (emacs_vsprintf_malloc_lisp):
1041 * dragdrop.c (dnd_url_hexify_string):
1042 * dragdrop.c:
1043 * editfns.c (Fformat_time_string):
1044 * editfns.c (Finsert_char):
1045 * editfns.c (get_home_directory):
1046 * emodules.c (emodules_load):
1047 * file-coding.c (setup_eol_coding_systems):
1048 * fileio.c (Fdirectory_file_name):
1049 * fileio.c (Ffile_name_directory):
1050 * fileio.c (Fsubstitute_in_file_name):
1051 * fileio.c (Fexpand_file_name):
1052 * filelock.c (MAKE_LOCK_NAME):
1053 * filelock.c (current_lock_owner):
1054 * filelock.c (lock_file):
1055 * filelock.c (lock_file_1):
1056 * fns.c (mapcar1):
1057 * glyphs-eimage.c (jpeg_instantiate):
1058 * glyphs-eimage.c (gif_instantiate):
1059 * glyphs-eimage.c (tiff_instantiate):
1060 * glyphs-gtk.c (gtk_xpm_instantiate):
1061 * glyphs-msw.c (mswindows_combo_box_property):
1062 * glyphs-msw.c (mswindows_widget_property):
1063 * glyphs-msw.c (convert_EImage_to_DIBitmap):
1064 * glyphs-msw.c (mswindows_initialize_image_instance_mask):
1065 * glyphs-msw.c (xbm_create_bitmap_from_data):
1066 * glyphs-x.c (convert_EImage_to_XImage):
1067 * glyphs-x.c (x_xface_instantiate):
1068 * gui-msw.c (mswindows_translate_menu_or_dialog_item):
1069 * gui-x.c (add_accel_and_to_external):
1070 * imgproc.c (create_colorcell):
1071 * imgproc.c (build_EImage_quantable):
1072 * intl-win32.c (Fmswindows_get_valid_keyboard_layouts):
1073 * intl-win32.c (convert_multibyte_to_unicode_malloc):
1074 * intl-win32.c (wcsdup):
1075 * lread.c (Fload_internal):
1076 * lread.c (locate_file_map_suffixes):
1077 * menubar-gtk.c (menu_descriptor_to_widget_1):
1078 * menubar.c (Fnormalize_menu_item_name):
1079 * nt.c (init_mswindows_environment):
1080 * nt.c (get_cached_volume_information):
1081 * nt.c (get_volume_info):
1082 * nt.c (nt_get_resource):
1083 * objects-msw.c (mswindows_string_to_color):
1084 * objects-x.c (truename_via_random_props):
1085 * print.c (output_string):
1086 * process-nt.c (nt_create_process):
1087 * process-unix.c (child_setup):
1088 * process.c (init_xemacs_process):
1089 * realpath.c (readlink_and_correct_case):
1090 * redisplay.c (add_disp_table_entry_runes_1):
1091 * search.c (Fregexp_quote):
1092 * search.c (search_buffer):
1093 * search.c (wordify):
1094 * select-common.c (receive_incremental_selection):
1095 * symbols.c (check_module_subr):
1096 * sysdep.c (sys_subshell):
1097 * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT):
1098 * syswindows.h (WIN32_TO_LOCAL_FILE_FORMAT):
1099 * text.c (convert_ichar_string_into_malloced_string):
1100 * text.c (eito_malloc_1):
1101 * text.h (EI_CASECHANGE):
1102 * text.h (EI_ALLOC):
1103 * text.h (eicpy_c):
1104 * text.h (eicpyout_alloca_fmt):
1105 * text.h (eito_alloca):
1106 * text.h (LISP_STRING_TO_ALLOCA):
1107 * ui-byhand.c (Fgtk_curve_get_vector):
1108 * ui-byhand.c (Fgtk_curve_set_vector):
1109 * text.h:
1110 New macros {alloca,xnew}_{itext,{i,ext,raw,bin,asc}bytes} for
1111 more convenient allocation of these commonly requested items.
1112 Modify functions to use alloca_ibytes, alloca_array, alloca_extbytes,
1113 xnew_ibytes, etc. also XREALLOC_ARRAY, xnew.
1114
1115 * alloc.c (FREE_FIXED_TYPE):
1116 * alloc.c (Fstring):
1117 * alloc.c (MALLOC_BEGIN):
1118 * alloc.c (free_managed_lcrecord):
1119 * alloc.c (garbage_collect_1):
1120 * alloc.c (init_alloc_once_early):
1121 * alloc.c (xcalloc):
1122 * alloc.c (xfree_1):
1123 * alloc.c (xrealloc):
1124 * alloc.c:
1125 Rewrite the allocation functions to factor out repeated code.
1126 Add assertions for freeing dumped data.
1127
1128 * lisp.h (xmalloc_and_record_unwind):
1129 * lisp.h (xfree):
1130 Moved down and consolidated with other allocation stuff.
1131
1132 * lisp.h:
1133 * dynarr.c (stack_like_malloc):
1134 * dynarr.c (stack_like_free):
1135 New functions for allocation that's very efficient when mostly in
1136 LIFO order.
1137
1138 * lisp.h:
1139 * text.c (find_pos_of_existing_active_alloca_convert):
1140 * text.h (NEW_DFC_CONVERT_1_ALLOCA):
1141 * text.c (new_dfc_convert_now_damn_it):
1142 * text.c (new_dfc_convert_size):
1143 * text.c (new_dfc_convert_copy_data):
1144 * text.c (new_dfc_convert_malloc):
1145 * text.h:
1146 Factor out some stuff for general use by alloca()-conversion funs.
1147
1148 * text.h (xmalloc_ibytes):
1149 * lisp.h:
1150 Fill out convenience routines for allocating various kinds of
1151 bytes and put them in lisp.h. Use them in place of xmalloc(),
1152 ALLOCA().
1153
1154 * text.h (SIZED_C_STRING_TO_EXTERNAL_MALLOC):
1155 * text.h (C_STRING_TO_SIZED_EXTERNAL_MALLOC):
1156 Fill out the convenience functions so the _MALLOC() kinds match
1157 the alloca() kinds.
1158
1159 ---------------------------------------------------------------
1160 ERROR-CHECKING
1161 ---------------------------------------------------------------
1162
1163 * text.h (eicpy_c):
1164 * text.h (eicpy_c_len):
1165 * text.h (eicat_c):
1166 * text.h (eisub_c):
1167 Create ASSERT_ASCTEXT_ASCII() and ASSERT_ASCTEXT_ASCII_LEN()
1168 from similar Eistring checkers and change the Eistring checkers to
1169 use them instead.
1170
1171
1172 ---------------------------------------------------------------
1173 MACROS IN LISP.H
1174 ---------------------------------------------------------------
1175
1176 * lisp.h (GCDECL1):
1177 * lisp.h (NNUNGCPRO):
1178 * lisp.h (XGCDECL1):
1179 * lisp.h (XGCPRO1):
1180 * lisp.h (XUNGCPRO):
1181 Redo GCPRO declarations. Create a "base" set of functions that can
1182 be used to generate any kind of gcpro sets -- regular, ngcpro,
1183 nngcpro, private ones used in GC_EXTERNAL_LIST_LOOP_2.
1184
1185 * buffer.c (Fkill_buffer):
1186 * callint.c (quotify_args):
1187 * chartab.c (chartab_data_validate):
1188 * console-msw.c:
1189 * device-x.c:
1190 * dialog-msw.c (handle_question_dialog_box):
1191 * dired.c (file_name_completion):
1192 * dired.c (Fdirectory_files):
1193 * dired.c (file_name_completion_stat):
1194 * extents.c (memoize_extent_face_internal):
1195 * extents.c (report_extent_modification_mapper):
1196 * ui-gtk.c (Fgtk_call_function):
1197 * ui-gtk.c (Fgtk_import_function_internal):
1198 * rangetab.c (rangetab_data_validate):
1199 * nt.c (init_mswindows_environment):
1200 * mule-coding.c (parse_charset_conversion_specs):
1201 * minibuf.c (regexp_ignore_completion_p):
1202 * menubar-msw.c (populate_or_checksum_helper):
1203 * menubar.c (Fmenu_find_real_submenu):
1204 * menubar-gtk.c (menu_create_menubar):
1205 * lread.c (locate_file_without_hash):
1206 * lread.c (Flocate_file):
1207 * lread.c (Flocate_file_clear_hashing):
1208 * lread.c (decode_mode):
1209 * lread.c (locate_file):
1210 * lisp.h (PROPERTY_LIST_LOOP):
1211 * lisp.h (GC_EXTERNAL_LIST_LOOP_2): New.
1212 * lisp.h (END_GC_EXTERNAL_LIST_LOOP): New.
1213 * lisp.h (EXTERNAL_LIST_LOOP): Deleted.
1214 * gutter.c (gutter_visible_validate):
1215 * glyphs.c (decode_image_instance_type_list):
1216 * glyphs.c (Fset_console_type_image_conversion_list):
1217 * glyphs-widget.c (check_valid_instantiator_list):
1218 * glyphs-widget.c (check_valid_item_list):
1219 * fns.c (Freplace_list):
1220 * fileio.c (Finsert_file_contents_internal):
1221 * fileio.c (Ffind_file_name_handler):
1222 * file-coding.c (Fset_coding_priority_list):
1223 * file-coding.c (chain_putprop):
1224 * specifier.c (display_table_validate):
1225 Eliminate EXTERNAL_LIST_LOOP, which does not check for circularities.
1226 Use EXTERNAL_LIST_LOOP_2 instead or EXTERNAL_LIST_LOOP_3
1227 or EXTERNAL_PROPERTY_LIST_LOOP_3 or GC_EXTERNAL_LIST_LOOP_2
1228 (new macro). Removed/redid comments on EXTERNAL_LIST_LOOP.
1229
1230
1231 ---------------------------------------------------------------
1232 SPACING FIXES
1233 ---------------------------------------------------------------
1234
1235 * callint.c (Fcall_interactively):
1236 * hftctl.c (WR_REQ):
1237 * number-gmp.c (init_number_gmp):
1238 * process-unix.c (unix_deactivate_process):
1239 Spacing fixes.
1240
1241
1242 ---------------------------------------------------------------
1243 FIX FOR GEOMETRY PROBLEM IN FIRST FRAME
1244 ---------------------------------------------------------------
1245
1246 * unicode.c (init_charset_unicode_tables):
1247 Add workaround for newlib bug in sscanf() [should be fixed by
1248 release 1.5.12 of Cygwin].
1249 * toolbar.c (update_frame_toolbars_geometry):
1250 bug fix for problem of initial frame being 77 chars wide on Windows.
1251 will be overridden by my other ws.
1252
1253 ---------------------------------------------------------------
1254 FIX FOR LEAKING PROCESS HANDLES:
1255 ---------------------------------------------------------------
1256
1257
1258 * process-nt.c (free_process_memory):
1259 * process-nt.c (alloc_process_memory):
1260 * process-nt.c (run_in_other_process):
1261 * process-nt.c (send_signal_the_nt_way):
1262 * process-nt.c (nt_finalize_process_data):
1263 * process-nt.c (nt_create_process):
1264 * process-nt.c (nt_deactivate_process):
1265 * process-nt.c (process_type_create_nt):
1266 Fixes for leaking handles. Inspired by work done by Adrian Aichner
1267 <adrian@xemacs.org>.
1268
1269 ---------------------------------------------------------------
1270 FIX FOR CYGWIN BUG (Unicode-related):
1271 ---------------------------------------------------------------
1272
1273 * unicode.c (init_charset_unicode_tables):
1274 Add workaround for newlib bug in sscanf() [should be fixed by
1275 release 1.5.12 of Cygwin].
1276
1277 ---------------------------------------------------------------
1278 WARNING FIXES:
1279 ---------------------------------------------------------------
1280
1281 * console-stream.c (init_console_stream):
1282 `reinit' is unused.
1283
1284 * compiler.h:
1285 * event-msw.c (mswindows_wnd_proc):
1286 * frame-msw.c (mswindows_frame_totally_visible_p):
1287 * intl-encap-win32.c (qxeRegisterClass):
1288 * intl-encap-win32.c (qxeRegisterClassEx):
1289 * text.h (DFC_ALLOCA_USE_CONVERTED_DATA):
1290 Add stuff to deal with ANSI-aliasing warnings I got.
1291
1292 * regex.c:
1293 * regex.c (itext_ichar):
1294 Gather includes together to avoid warning.
1295
1296 ---------------------------------------------------------------
1297 CHANGES TO INITIALIZATION ROUTINES:
1298 ---------------------------------------------------------------
1299
1300 * buffer.c (vars_of_buffer):
1301 * emacs.c (main_1):
1302 * console.c (vars_of_console):
1303 * debug.c (vars_of_debug):
1304 * device-x.c (vars_of_device_x):
1305 * device.c (vars_of_device):
1306 * dragdrop.c (vars_of_dragdrop):
1307 * emodules.c (vars_of_module):
1308 * eval.c (vars_of_eval):
1309 * eval.c (reinit_vars_of_eval):
1310 * event-Xt.c (vars_of_event_Xt):
1311 * event-gtk.c (vars_of_event_gtk):
1312 * event-msw.c (vars_of_event_mswindows):
1313 * event-stream.c (vars_of_event_stream):
1314 * event-tty.c (vars_of_event_tty):
1315 * events.c (vars_of_events):
1316 * extents.c (vars_of_extents):
1317 * faces.c (complex_vars_of_faces):
1318 * file-coding.c (vars_of_file_coding):
1319 * fileio.c (vars_of_fileio):
1320 * font-lock.c (vars_of_font_lock):
1321 * frame-msw.c (vars_of_frame_mswindows):
1322 * glyphs-widget.c (vars_of_glyphs_widget):
1323 * glyphs.c (vars_of_glyphs):
1324 * glyphs.c (complex_vars_of_glyphs):
1325 * gui-x.c (vars_of_gui_x):
1326 * insdel.c (vars_of_insdel):
1327 * lread.c (vars_of_lread):
1328 * lstream.c (vars_of_lstream):
1329 * menubar-gtk.c (vars_of_menubar_gtk):
1330 * menubar-x.c (vars_of_menubar_x):
1331 * minibuf.c (vars_of_minibuf):
1332 * mule-wnnfns.c (vars_of_mule_wnn):
1333 * objects-msw.c (vars_of_objects_mswindows):
1334 * objects.c (vars_of_objects):
1335 * print.c (vars_of_print):
1336 * scrollbar-x.c (vars_of_scrollbar_x):
1337 * search.c (vars_of_search):
1338 * select-x.c (vars_of_select_x):
1339 * text.c (reinit_vars_of_text):
1340 * text.c (vars_of_text):
1341 * undo.c (vars_of_undo):
1342 * unicode.c (vars_of_unicode):
1343 * window.c (vars_of_window):
1344 * symsinit.h:
1345 Call reinit_*() functions directly from emacs.c, for clarity.
1346 Factor out some redundant init code. Move disallowed stuff
1347 that had crept into vars_of_glyphs() into complex_vars_of_glyphs().
1348 Call init_eval_semi_early() from eval.c not in the middle of
1349 vars_of_() in emacs.c since there should be no order dependency
1350 in the latter calls.
1351
1352 ---------------------------------------------------------------
1353 ARMAGEDDON:
1354 ---------------------------------------------------------------
1355
1356 * alloc.c:
1357 * emacs.c:
1358 * lisp.h:
1359 * print.c (debug_backtrace):
1360 * print.c (debug_p3):
1361 * print.c (debug_p4):
1362 * print.c (debug_prin1):
1363 * print.c (print_internal):
1364 * print.c (printing_major_badness):
1365 * print.c (struct debug_bindings ):
1366 * print.c (write_string_to_stdio_stream_1):
1367 * print.c (write_string_to_external_output_va):
1368 * print.c (debug_prin1_exit):
1369 * print.c (write_string_to_alternate_debugging_output):
1370 Rename inhibit_non_essential_printing_operations to
1371 inhibit_non_essential_conversion_operations.
1372
1373 * text.c (dfc_convert_to_external_format):
1374 * text.c (dfc_convert_to_internal_format):
1375 Assert on !inhibit_non_essential_conversion_operations.
1376
1377 * console-msw.c (Fmswindows_message_box):
1378 * console-msw.c (GetConsoleHwnd):
1379 * console-msw.c (mswindows_output_console_string):
1380 * console-msw.c (write_string_to_mswindows_debugging_output):
1381 * print.c (write_string_to_stdio_stream_1):
1382 Don't do conversion in SetConsoleTitle or FindWindow to avoid
1383 problems during armageddon. Put #errors for NON_ASCII_INTERNAL_FORMAT
1384 in places where problems would arise.
1385
1386 ---------------------------------------------------------------
1387 CHANGES TO THE BUILD PROCEDURE:
1388 ---------------------------------------------------------------
1389
1390 * config.h.in:
1391 * s/cxux.h:
1392 * s/usg5-4-2.h:
1393 * m/powerpc.h:
1394 Add comment about correct ordering of this file.
1395 Rearrange everything to follow this -- put all #undefs together
1396 and before the s&m files. Add undefs for HAVE_ALLOCA, C_ALLOCA,
1397 BROKEN_ALLOCA_IN_FUNCTION_CALLS, STACK_DIRECTION. Remove unused
1398 HAVE_STPCPY, HAVE_GETWD, HAVE_SETLOCALE.
1399
1400 * m/gec63.h: Deleted; totally broken, not used at all, not in FSF.
1401
1402 * m/7300.h:
1403 * m/acorn.h:
1404 * m/alliant-2800.h:
1405 * m/alliant.h:
1406 * m/altos.h:
1407 * m/altos.h (SWITCH_ENUM_BUG):
1408 * m/amdahl.h:
1409 * m/apollo.h:
1410 * m/att3b.h:
1411 * m/aviion.h:
1412 * m/celerity.h:
1413 * m/clipper.h:
1414 * m/cnvrgnt.h:
1415 * m/convex.h:
1416 * m/cydra5.h:
1417 * m/cydra5.h (DATA_START):
1418 * m/delta.h:
1419 * m/delta88k.h:
1420 * m/dpx2.h:
1421 * m/elxsi.h:
1422 * m/ews4800r.h:
1423 * m/gould.h:
1424 * m/hp300bsd.h (LOAD_AVE_TYPE):
1425 * m/hp800.h:
1426 * m/hp9000s300.h:
1427 * m/i860.h:
1428 * m/ibmps2-aix.h:
1429 * m/ibmps2-aix.h (LIBS_MACHINE):
1430 * m/ibmrs6000.h:
1431 * m/ibmrt-aix.h:
1432 * m/ibmrt.h:
1433 * m/intel386.h:
1434 * m/intel386.h (SEGMENT_MASK):
1435 * m/iris4d.h:
1436 * m/iris5d.h:
1437 * m/iris6d.h:
1438 * m/irist.h:
1439 * m/isi-ov.h:
1440 * m/luna88k.h:
1441 * m/m68k.h (ASSERT_VALID_POINTER):
1442 * m/masscomp.h:
1443 * m/mg1.h:
1444 * m/mips-nec.h:
1445 * m/mips-siemens.h:
1446 * m/mips.h:
1447 * m/news.h:
1448 * m/nh3000.h:
1449 * m/nh4000.h:
1450 * m/ns32000.h:
1451 * m/orion105.h:
1452 * m/pfa50.h:
1453 * m/plexus.h:
1454 * m/pmax.h:
1455 * m/powerpc.h:
1456 * m/pyrmips.h (CANNOT_DUMP):
1457 * m/sequent-ptx.h:
1458 * m/sequent.h:
1459 * m/sgi-challenge.h:
1460 * m/symmetry.h:
1461 * m/tad68k.h:
1462 * m/tahoe.h:
1463 * m/targon31.h:
1464 * m/tekxd88.h:
1465 * m/template.h:
1466 * m/tower32.h:
1467 * m/tower32v3.h:
1468 * m/ustation.h:
1469 * m/vax.h:
1470 * m/wicat.h:
1471 * m/xps100.h:
1472 * m/xps100.h (TERMINFO):
1473 Delete C_ALLOCA, HAVE_ALLOCA, STACK_DIRECTION,
1474 BROKEN_ALLOCA_IN_FUNCTION_CALLS. All of this is auto-detected.
1475 When in doubt, I followed recent FSF sources, which also have
1476 these things deleted.
1477
1478
1 2002-04-05 Golubev I. N. <gin@mo.msk.ru> 1479 2002-04-05 Golubev I. N. <gin@mo.msk.ru>
2 1480
3 * .gdbinit (pptype): 1481 * .gdbinit (pptype):
4 Replace `ptype', which clashes with the gdb builtin `ptype'. 1482 Replace `ptype', which clashes with the gdb builtin `ptype'.
5 1483