comparison src/tparam.c @ 551:e9a3f8b4de53

[xemacs-hg @ 2001-05-21 05:26:06 by martinb] realloc() handling on sunos4; remove lwlib-config kludge
author martinb
date Mon, 21 May 2001 05:26:51 +0000
parents c33ae14dd6d0
children b39c14581166
comparison
equal deleted inserted replaced
550:1638aacf421d 551:e9a3f8b4de53
25 25
26 #include <config.h> 26 #include <config.h>
27 27
28 #include <string.h> 28 #include <string.h>
29 29
30 #undef realloc
31 #undef malloc
32 #undef free
30 #define realloc xrealloc 33 #define realloc xrealloc
31 #define malloc xmalloc 34 #define malloc xmalloc
32 #define free xfree 35 #define free xfree
33 extern void *xmalloc (size_t size); 36 extern void *xmalloc (size_t size);
34 extern void *xrealloc (void *, size_t size); 37 extern void *xrealloc (void *, size_t size);
35 38
36 #else /* emacs */ 39 #else /* !emacs */
37 40
38 #ifdef STDC_HEADERS
39 #include <stdlib.h> 41 #include <stdlib.h>
40 #include <string.h> 42 #include <string.h>
41 #else
42 extern char *malloc ();
43 extern char *realloc ();
44 #endif
45 43
46 #endif /* !emacs */ 44 #endif /* !emacs */
47 45
48 /* Assuming STRING is the value of a termcap string entry 46 /* Assuming STRING is the value of a termcap string entry
49 containing `%' constructs to expand parameters, 47 containing `%' constructs to expand parameters,