Mercurial > hg > xemacs-beta
comparison src/unexcw.c @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 8626e4521993 |
children | de805c49cfc1 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
19 02111-1307, USA. | 19 02111-1307, USA. |
20 | 20 |
21 */ | 21 */ |
22 | 22 |
23 /* This is a complete rewrite, some code snarfed from unexnt.c and | 23 /* This is a complete rewrite, some code snarfed from unexnt.c and |
24 unexec.c, Andy Piper (andyp@parallax.co.uk) 13-1-98 */ | 24 unexec.c, Andy Piper (andy@xemacs.org) 13-1-98 */ |
25 | 25 |
26 #include <stdio.h> | 26 #include <stdio.h> |
27 #include <stdlib.h> | 27 #include <stdlib.h> |
28 #include <unistd.h> | 28 #include <unistd.h> |
29 #include <fcntl.h> | 29 #include <fcntl.h> |
37 { | 37 { |
38 PERROR("cannot unexec() a.out.h not installed"); | 38 PERROR("cannot unexec() a.out.h not installed"); |
39 } | 39 } |
40 #else | 40 #else |
41 | 41 |
42 #undef CONST | 42 #ifndef MAX_PATH |
43 #include <windows.h> | 43 #define MAX_PATH 260 |
44 #endif | |
44 #include <a.out.h> | 45 #include <a.out.h> |
45 | 46 |
46 #define ALLOC_UNIT 0xFFFF | 47 #define ALLOC_UNIT 0xFFFF |
47 #define ALLOC_MASK ~((unsigned long)(ALLOC_UNIT)) | 48 #define ALLOC_MASK ~((unsigned long)(ALLOC_UNIT)) |
48 #define ALIGN_ALLOC(addr) \ | 49 #define ALIGN_ALLOC(addr) \ |