Mercurial > hg > xemacs-beta
comparison src/unexcw.c @ 546:666d73d6ac56
[xemacs-hg @ 2001-05-20 01:17:07 by ben]
fixes so MinGW compiles.
console-msw.h, scrollbar-msw.c, event-msw.c: we might receive scrollbar events on windows without scrollbars
(e.g. holding down and moving the wheel button).
dired.c: win9x support.
eval.c: doc comment about gcpro'ing in record_unwind_protect.
frame-msw.c: typo.
frame.c: avoid problems with errors during init_frame_3.
process-nt.c: remove unused mswindows-quote-process-args. rec for 21.4.
unexcw.c: use do/while.
autoload.el: Oops, off by one argument.
mouse.el: Add an argument to mouse-track so that hooks can be overridden.
(let-binding doesn't work when the hooks have been made local.)
modify mouse-track-run-hook accordingly, and fix mouse-track-default
and mouse-track-insert to use the new functionality.
printer.el: Oops, off by one paren.
author | ben |
---|---|
date | Sun, 20 May 2001 01:17:16 +0000 |
parents | 0784d089fdc9 |
children | ed498ef2108b |
comparison
equal
deleted
inserted
replaced
545:9a775fb11bb7 | 546:666d73d6ac56 |
---|---|
33 #include <string.h> | 33 #include <string.h> |
34 | 34 |
35 #define DONT_ENCAPSULATE /* filenames are external in unex*.c */ | 35 #define DONT_ENCAPSULATE /* filenames are external in unex*.c */ |
36 #include "sysfile.h" | 36 #include "sysfile.h" |
37 | 37 |
38 #define PERROR(arg) perror(arg);exit(-1) | 38 #define PERROR(arg) \ |
39 | 39 do { \ |
40 #ifndef HAVE_A_OUT_H | 40 perror (arg); \ |
41 exit (-1); \ | |
42 } while (0) | |
43 | |
44 #if !defined (HAVE_A_OUT_H) && !defined (WIN32_NATIVE) | |
41 unexec (char *, char *, void *, void *, void *) | 45 unexec (char *, char *, void *, void *, void *) |
42 { | 46 { |
43 PERROR("cannot unexec() a.out.h not installed"); | 47 PERROR("cannot unexec() a.out.h not installed"); |
44 } | 48 } |
45 #else | 49 #else |
46 | 50 |
47 #ifndef MAX_PATH | 51 #ifndef MAX_PATH |
48 #define MAX_PATH 260 | 52 #define MAX_PATH 260 |
49 #endif | 53 #endif |
54 | |
55 #ifdef MINGW | |
56 #include <../../include/a.out.h> | |
57 #else | |
50 #include <a.out.h> | 58 #include <a.out.h> |
59 #endif | |
51 | 60 |
52 #define ALLOC_UNIT 0xFFFF | 61 #define ALLOC_UNIT 0xFFFF |
53 #define ALLOC_MASK ~((unsigned long)(ALLOC_UNIT)) | 62 #define ALLOC_MASK ~((unsigned long)(ALLOC_UNIT)) |
54 #define ALIGN_ALLOC(addr) \ | 63 #define ALIGN_ALLOC(addr) \ |
55 ((((unsigned long)addr) + ALLOC_UNIT) & ALLOC_MASK) | 64 ((((unsigned long)addr) + ALLOC_UNIT) & ALLOC_MASK) |