comparison src/alloca.c @ 118:7d55a9ba150c r20-1b11

Import from CVS: tag r20-1b11
author cvs
date Mon, 13 Aug 2007 09:24:17 +0200
parents 376386a54a3c
children 3d6bfa290dbd
comparison
equal deleted inserted replaced
117:578fd4947a72 118:7d55a9ba150c
84 # else 84 # else
85 void xfree (pointer); 85 void xfree (pointer);
86 # endif 86 # endif
87 #endif 87 #endif
88 88
89 #ifndef WINDOWSNT
89 #define NULL 0 90 #define NULL 0
91 #endif
90 92
91 /* Different portions of Emacs need to call different versions of 93 /* Different portions of Emacs need to call different versions of
92 malloc. The Emacs executable needs alloca to call xmalloc, because 94 malloc. The Emacs executable needs alloca to call xmalloc, because
93 ordinary malloc isn't protected from input signals. On the other 95 ordinary malloc isn't protected from input signals. On the other
94 hand, the utilities in lib-src need alloca to call malloc; some of 96 hand, the utilities in lib-src need alloca to call malloc; some of
99 Callers below should use malloc. */ 101 Callers below should use malloc. */
100 102
101 #ifndef emacs 103 #ifndef emacs
102 #define malloc xmalloc 104 #define malloc xmalloc
103 #endif 105 #endif
106 #ifndef WINDOWSNT
104 extern pointer malloc (); 107 extern pointer malloc ();
108 #else
109 extern void *malloc();
110 #endif
105 111
106 /* Define STACK_DIRECTION if you know the direction of stack 112 /* Define STACK_DIRECTION if you know the direction of stack
107 growth for your system; otherwise it will be automatically 113 growth for your system; otherwise it will be automatically
108 deduced at run-time. 114 deduced at run-time.
109 115