diff options
| author | Dave Love | 2000-08-17 13:57:01 +0000 |
|---|---|---|
| committer | Dave Love | 2000-08-17 13:57:01 +0000 |
| commit | 29f4bda5cf9360df591f30c7391e71b14283d709 (patch) | |
| tree | 18ac33509116ee7033c044289c12640a2dd82e53 /src | |
| parent | 77d2026234a57b46a4053a088cc73b5daa8b3b95 (diff) | |
| download | emacs-29f4bda5cf9360df591f30c7391e71b14283d709.tar.gz emacs-29f4bda5cf9360df591f30c7391e71b14283d709.zip | |
Use #error.
[POINTER_TYPE]: Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloca.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/alloca.c b/src/alloca.c index 087e990ab1e..78704e5dc93 100644 --- a/src/alloca.c +++ b/src/alloca.c | |||
| @@ -51,9 +51,7 @@ | |||
| 51 | in order to make unexec workable | 51 | in order to make unexec workable |
| 52 | */ | 52 | */ |
| 53 | #ifndef STACK_DIRECTION | 53 | #ifndef STACK_DIRECTION |
| 54 | you | 54 | #error "Must know STACK_DIRECTION at compile-time" |
| 55 | lose | ||
| 56 | -- must know STACK_DIRECTION at compile-time | ||
| 57 | #endif /* STACK_DIRECTION undefined */ | 55 | #endif /* STACK_DIRECTION undefined */ |
| 58 | #endif /* static */ | 56 | #endif /* static */ |
| 59 | #endif /* emacs */ | 57 | #endif /* emacs */ |
| @@ -68,11 +66,16 @@ long i00afunc (); | |||
| 68 | #define ADDRESS_FUNCTION(arg) &(arg) | 66 | #define ADDRESS_FUNCTION(arg) &(arg) |
| 69 | #endif | 67 | #endif |
| 70 | 68 | ||
| 69 | #ifdef POINTER_TYPE | ||
| 70 | typedef POINTER_TYPE *pointer; | ||
| 71 | #else | ||
| 71 | #if __STDC__ | 72 | #if __STDC__ |
| 72 | typedef void *pointer; | 73 | typedef void *pointer; |
| 73 | #else | 74 | #else |
| 74 | typedef char *pointer; | 75 | typedef char *pointer; |
| 75 | #endif | 76 | #endif /*__STDC__*/ |
| 77 | #endif /*POINTER_TYPE*/ | ||
| 78 | |||
| 76 | 79 | ||
| 77 | #ifndef NULL | 80 | #ifndef NULL |
| 78 | #define NULL 0 | 81 | #define NULL 0 |