diff options
| author | Richard M. Stallman | 1995-05-04 21:57:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-05-04 21:57:30 +0000 |
| commit | 34b4ece5fe5aa8bbc633b586a4a71e4712c4f949 (patch) | |
| tree | 82d0a797b1c668c1c1dfbecba1151fde5fc420dc | |
| parent | 633796fee369cbbcb45246a30580b238b4eba91d (diff) | |
| download | emacs-34b4ece5fe5aa8bbc633b586a4a71e4712c4f949.tar.gz emacs-34b4ece5fe5aa8bbc633b586a4a71e4712c4f949.zip | |
Include config.h.
(NO_SHORTNAMES): New definition.
(xmalloc): Return long *.
| -rw-r--r-- | lib-src/make-docfile.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 006600e162d..e45fd75b3a1 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -31,6 +31,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 31 | Then comes the documentation for that function or variable. | 31 | Then comes the documentation for that function or variable. |
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | #define NO_SHORTNAMES /* Tell config not to load remap.h */ | ||
| 35 | #include <../src/config.h> | ||
| 36 | |||
| 34 | #include <stdio.h> | 37 | #include <stdio.h> |
| 35 | #ifdef MSDOS | 38 | #ifdef MSDOS |
| 36 | #include <fcntl.h> | 39 | #include <fcntl.h> |
| @@ -84,11 +87,11 @@ fatal (s1, s2) | |||
| 84 | 87 | ||
| 85 | /* Like malloc but get fatal error if memory is exhausted. */ | 88 | /* Like malloc but get fatal error if memory is exhausted. */ |
| 86 | 89 | ||
| 87 | char * | 90 | long * |
| 88 | xmalloc (size) | 91 | xmalloc (size) |
| 89 | unsigned int size; | 92 | unsigned int size; |
| 90 | { | 93 | { |
| 91 | char *result = (char *) malloc (size); | 94 | long *result = (long *) malloc (size); |
| 92 | if (result == NULL) | 95 | if (result == NULL) |
| 93 | fatal ("virtual memory exhausted", 0); | 96 | fatal ("virtual memory exhausted", 0); |
| 94 | return result; | 97 | return result; |