comparison lib-src/make-docfile.c @ 11690:450b9598aca5

Include config.h. (NO_SHORTNAMES): New definition. (xmalloc): Return long *.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 May 1995 21:57:30 +0000
parents 9cd115f44483
children cf65209088d6
comparison
equal deleted inserted replaced
11689:fa8b13d1a665 11690:450b9598aca5
28 Each entry starts with a ^_ character. 28 Each entry starts with a ^_ character.
29 Then comes F for a function or V for a variable. 29 Then comes F for a function or V for a variable.
30 Then comes the function or variable name, terminated with a newline. 30 Then comes the function or variable name, terminated with a newline.
31 Then comes the documentation for that function or variable. 31 Then comes the documentation for that function or variable.
32 */ 32 */
33
34 #define NO_SHORTNAMES /* Tell config not to load remap.h */
35 #include <../src/config.h>
33 36
34 #include <stdio.h> 37 #include <stdio.h>
35 #ifdef MSDOS 38 #ifdef MSDOS
36 #include <fcntl.h> 39 #include <fcntl.h>
37 #endif /* MSDOS */ 40 #endif /* MSDOS */
82 exit (1); 85 exit (1);
83 } 86 }
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;
95 } 98 }
96 99