Mercurial > hg > xemacs-beta
comparison src/syswindows.h @ 814:a634e3b7acc8
[xemacs-hg @ 2002-04-14 12:41:59 by ben]
latest changes
TODO.ben-mule-21-5: Update.
make-docfile.c: Add basic support for handling ISO 2022 doc strings -- we parse
the basic charset designation sequences so we know whether we're
in ASCII and have to pay attention to end quotes and such.
Reformat code according to coding standards.
abbrev.el: Add `global-abbrev-mode', which turns on or off abbrev-mode in all
buffers. Added `defining-abbrev-turns-on-abbrev-mode' -- if
non-nil, defining an abbrev through an interactive function will
automatically turn on abbrev-mode, either globally or locally
depending on the command. This is the "what you'd expect"
behavior.
indent.el: general function for indenting a balanced expression in a
mode-correct way. Works similar to indent-region in that a mode
can specify a specific command to do the whole operation; if not,
figure out the region using forward-sexp and indent each line
using indent-according-to-mode.
keydefs.el: Removed.
Modify M-C-backslash to do indent-region-or-balanced-expression.
Make S-Tab just insert a TAB char, like it's meant to do.
make-docfile.el: Now that we're using the call-process-in-lisp, we need to load
an extra file win32-native.el because we're running a bare temacs.
menubar-items.el: Totally redo the Cmds menu so that most used commands appear
directly on the menu and less used commands appear in submenus.
The old way may have been very pretty, but rather impractical.
process.el: Under Windows, don't ever use old-call-process-internal, even
in batch mode. We can do processes in batch mode.
subr.el: Someone recoded truncate-string-to-width, saying "the FSF version
is too complicated and does lots of hard-to-understand stuff" but
the resulting recoded version was *totally* wrong! it
misunderstood the basic point of this function, which is work in
*columns* not chars. i dumped ours and copied the version from
FSF 21.1. Also added truncate-string-with-continuation-dots,
since this idiom is used often.
config.inc.samp, xemacs.mak: Separate out debug and optimize flags.
Remove all vestiges of USE_MINIMAL_TAGBITS,
USE_INDEXED_LRECORD_IMPLEMENTATION, and GUNG_HO, since those
ifdefs have long been removed.
Make error-checking support actually work.
Some rearrangement of config.inc.samp to make it more logical.
Remove callproc.c and ntproc.c from xemacs.mak, no longer used.
Make pdump the default.
lisp.h: Add support for strong type-checking of Bytecount, Bytebpos,
Charcount, Charbpos, and others, by making them classes,
overloading the operators to provide integer-like operation and
carefully controlling what operations are allowed. Not currently
enabled in C++ builds because there are still a number of compile
errors, and it won't really work till we merge in my "8-bit-Mule"
workspace, in which I make use of the new types Charxpos,
Bytexpos, Memxpos, representing a "position" either in a buffer or
a string. (This is especially important in the extent code.)
abbrev.c, alloc.c, eval.c, buffer.c, buffer.h, editfns.c, fns.c, text.h: Warning fixes, some of them related to new C++ strict type
checking of Bytecount, Charbpos, etc.
dired.c: Caught an actual error due to strong type checking -- char len
being passed when should be byte len.
alloc.c, backtrace.h, bytecode.c, bytecode.h, eval.c, sysdep.c: Further optimize Ffuncall:
-- process arg list at compiled-function creation time, converting
into an array for extra-quick access at funcall time.
-- rewrite funcall_compiled_function to use it, and inline this
function.
-- change the order of check for magic stuff in
SPECBIND_FAST_UNSAFE to be faster.
-- move the check for need to garbage collect into the allocation
code, so only a single flag needs to be checked in funcall.
buffer.c, symbols.c: add debug funs to check on mule optimization info in buffers and
strings.
eval.c, emacs.c, text.c, regex.c, scrollbar-msw.c, search.c: Fix evil crashes due to eistrings not properly reinitialized under
pdump. Redo a bit some of the init routines; convert some
complex_vars_of() into simple vars_of(), because they didn't need
complex processing.
callproc.c, emacs.c, event-stream.c, nt.c, process.c, process.h, sysdep.c, sysdep.h, syssignal.h, syswindows.h, ntproc.c: Delete. Hallelujah, praise the Lord, there is no god
but Allah!!!
fix so that processes can be invoked in bare temacs -- thereby
eliminating any need for callproc.c. (currently only eliminated
under NT.) remove all crufty and unnecessary old process code in
ntproc.c and elsewhere. move non-callproc-specific stuff (mostly
environment) into process.c, so callproc.c can be left out under
NT.
console-tty.c, doc.c, file-coding.c, file-coding.h, lstream.c, lstream.h: fix doc string handling so it works with Japanese, etc docs.
change handling of "character mode" so callers don't have to
manually set it (quite error-prone).
event-msw.c: spacing fixes.
lread.c: eliminate unused crufty vintage-19 "FSF defun hack" code.
lrecord.h: improve pdump description docs.
buffer.c, ntheap.c, unexnt.c, win32.c, emacs.c: Mule-ize some unexec and startup code. It was pseudo-Mule-ized
before by simply always calling the ...A versions of functions,
but that won't cut it -- eventually we want to be able to run
properly even if XEmacs has been installed in a Japanese
directory. (The current problem is the timing of the loading of
the Unicode tables; this will eventually be fixed.) Go through and
fix various other places where the code was not Mule-clean.
Provide a function mswindows_get_module_file_name() to get our own
name without resort to PATH_MAX and such. Add a big comment in
main() about the problem with Unicode table load timing that I
just alluded to.
emacs.c: When error-checking is enabled (interpreted as "user is developing
XEmacs"), don't ask user to "pause to read messages" when a fatal
error has occurred, because it will wedge if we are in an inner
modal loop (typically when a menu is popped up) and make us unable
to get a useful stack trace in the debugger.
text.c: Correct update_entirely_ascii_p_flag to actually work.
lisp.h, symsinit.h: declarations for above changes.
author | ben |
---|---|
date | Sun, 14 Apr 2002 12:43:31 +0000 |
parents | a5954632b187 |
children | 6504113e7c2d |
comparison
equal
deleted
inserted
replaced
813:9541922fb765 | 814:a634e3b7acc8 |
---|---|
935 #define get_allocation_unit() sysinfo_cache.dwAllocationGranularity | 935 #define get_allocation_unit() sysinfo_cache.dwAllocationGranularity |
936 #define get_processor_type() sysinfo_cache.dwProcessorType | 936 #define get_processor_type() sysinfo_cache.dwProcessorType |
937 #define get_nt_major_version() nt_major_version | 937 #define get_nt_major_version() nt_major_version |
938 #define get_nt_minor_version() nt_minor_version | 938 #define get_nt_minor_version() nt_minor_version |
939 | 939 |
940 extern unsigned char *get_data_start(); | 940 unsigned char *get_data_start (void); |
941 extern unsigned char *get_data_end(); | 941 unsigned char *get_data_end (void); |
942 extern unsigned long data_region_size; | 942 extern unsigned long data_region_size; |
943 extern unsigned long reserved_heap_size; | 943 extern unsigned long reserved_heap_size; |
944 extern SYSTEM_INFO sysinfo_cache; | 944 extern SYSTEM_INFO sysinfo_cache; |
945 extern int nt_major_version; | 945 extern int nt_major_version; |
946 extern int nt_minor_version; | 946 extern int nt_minor_version; |
948 /* To prevent zero-initialized variables from being placed into the bss | 948 /* To prevent zero-initialized variables from being placed into the bss |
949 section, use non-zero values to represent an uninitialized state. */ | 949 section, use non-zero values to represent an uninitialized state. */ |
950 #define UNINIT_PTR ((unsigned char*) 0xF0A0F0A0) | 950 #define UNINIT_PTR ((unsigned char*) 0xF0A0F0A0) |
951 #define UNINIT_LONG (0xF0A0F0A0L) | 951 #define UNINIT_LONG (0xF0A0F0A0L) |
952 | 952 |
953 /* Emulation of Unix sbrk(). */ | |
954 extern void *sbrk (unsigned long size); | |
955 | |
956 /* Recreate the heap created during dumping. */ | 953 /* Recreate the heap created during dumping. */ |
957 extern void recreate_heap (char *executable_path); | 954 void recreate_heap (Extbyte *executable_path); |
958 | 955 |
959 /* Round the heap to this size. */ | 956 /* Round the heap to this size. */ |
960 extern void round_heap (unsigned long size); | 957 void round_heap (unsigned long size); |
961 | 958 |
962 /* Load in the dumped .bss section. */ | 959 /* Load in the dumped .bss section. */ |
963 extern void read_in_bss (char *name); | 960 void read_in_bss (Extbyte *name); |
964 | 961 |
965 /* Map in the dumped heap. */ | 962 /* Map in the dumped heap. */ |
966 extern void map_in_heap (char *name); | 963 void map_in_heap (Extbyte *name); |
967 | 964 |
968 /* Cache system info, e.g., the NT page size. */ | 965 /* Cache system info, e.g., the NT page size. */ |
969 extern void cache_system_info (void); | 966 void cache_system_info (void); |
970 | 967 |
971 /* Round ADDRESS up to be aligned with ALIGN. */ | 968 /* Round ADDRESS up to be aligned with ALIGN. */ |
972 extern unsigned char *round_to_next (unsigned char *address, | 969 unsigned char *round_to_next (unsigned char *address, |
973 unsigned long align); | 970 unsigned long align); |
974 #endif /* WIN32_NATIVE */ | 971 #endif /* WIN32_NATIVE */ |
975 | 972 |
976 /* ------------------------- Misc prototypes ------------------------- */ | 973 /* ------------------------- Misc prototypes ------------------------- */ |
977 | 974 |
978 #ifdef WIN32_NATIVE | 975 #ifdef WIN32_NATIVE |
995 Intbyte *mswindows_getdcwd (int drivelet); | 992 Intbyte *mswindows_getdcwd (int drivelet); |
996 | 993 |
997 /* In process-nt.c */ | 994 /* In process-nt.c */ |
998 extern int mswindows_compare_env (const void *strp1, const void *strp2); | 995 extern int mswindows_compare_env (const void *strp1, const void *strp2); |
999 | 996 |
1000 /* in sysdep.c */ | |
1001 #ifdef WIN32_NATIVE | |
1002 void wait_for_termination (HANDLE pid); | |
1003 #endif | |
1004 | |
1005 /* in win32.c */ | 997 /* in win32.c */ |
998 Extbyte *mswindows_get_module_file_name (void); | |
1006 void mswindows_output_last_error (char *frob); | 999 void mswindows_output_last_error (char *frob); |
1007 DECLARE_DOESNT_RETURN (mswindows_report_process_error (const char *string, | 1000 DECLARE_DOESNT_RETURN (mswindows_report_process_error (const char *string, |
1008 Lisp_Object data, | 1001 Lisp_Object data, |
1009 int errnum)); | 1002 int errnum)); |
1010 Lisp_Object mswindows_lisp_error (int errnum); | 1003 Lisp_Object mswindows_lisp_error (int errnum); |
1011 | 1004 |
1012 | |
1013 /*--------------------------------------------------------------------*/ | |
1014 /* stuff in ntproc.c */ | |
1015 /* DIE DIE DIE */ | |
1016 /*--------------------------------------------------------------------*/ | |
1017 | |
1018 /* Prepare our standard handles for proper inheritance by child processes. */ | |
1019 extern void prepare_standard_handles (int in, int out, | |
1020 int err, HANDLE handles[4]); | |
1021 /* Reset our standard handles to their original state. */ | |
1022 extern void reset_standard_handles (int in, int out, | |
1023 int err, HANDLE handles[4]); | |
1024 void set_process_dir (const char * dir); | |
1025 extern void init_ntproc (void); | |
1026 /* Will die as soon as callproc.c dies */ | |
1027 int spawnve_will_die_soon (int mode, const Intbyte *cmdname, | |
1028 const Intbyte * const *argv, | |
1029 const Intbyte *const *envp); | |
1030 int pipe_will_die_soon (int *phandles); | |
1031 | |
1032 #endif /* INCLUDED_syswindows_h_ */ | 1005 #endif /* INCLUDED_syswindows_h_ */ |