diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloca.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/alloca.c b/src/alloca.c index bc34529fdd2..30efa5ae663 100644 --- a/src/alloca.c +++ b/src/alloca.c | |||
| @@ -60,6 +60,17 @@ typedef char *pointer; | |||
| 60 | 60 | ||
| 61 | #define NULL 0 | 61 | #define NULL 0 |
| 62 | 62 | ||
| 63 | /* Different portions of Emacs need to call different versions of | ||
| 64 | malloc. The Emacs executable needs alloca to call xmalloc, because | ||
| 65 | ordinary malloc isn't protected from input signals. On the other | ||
| 66 | hand, the utilities in lib-src need alloca to call malloc; some of | ||
| 67 | them are very simple, and don't have an xmalloc routine. | ||
| 68 | |||
| 69 | Everybody else should just call malloc. */ | ||
| 70 | #ifndef emacs | ||
| 71 | extern pointer malloc (); | ||
| 72 | #endif | ||
| 73 | |||
| 63 | /* Define STACK_DIRECTION if you know the direction of stack | 74 | /* Define STACK_DIRECTION if you know the direction of stack |
| 64 | growth for your system; otherwise it will be automatically | 75 | growth for your system; otherwise it will be automatically |
| 65 | deduced at run-time. | 76 | deduced at run-time. |