Mercurial > emacs
changeset 30913:fa7ad139efa1
Use #error.
[POINTER_TYPE]: Use it.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 17 Aug 2000 13:57:01 +0000 |
parents | a524f6c09fe0 |
children | 6362b1fc09f2 |
files | src/alloca.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloca.c Thu Aug 17 13:54:16 2000 +0000 +++ b/src/alloca.c Thu Aug 17 13:57:01 2000 +0000 @@ -51,9 +51,7 @@ in order to make unexec workable */ #ifndef STACK_DIRECTION -you -lose --- must know STACK_DIRECTION at compile-time + #error "Must know STACK_DIRECTION at compile-time" #endif /* STACK_DIRECTION undefined */ #endif /* static */ #endif /* emacs */ @@ -68,11 +66,16 @@ #define ADDRESS_FUNCTION(arg) &(arg) #endif +#ifdef POINTER_TYPE +typedef POINTER_TYPE *pointer; +#else #if __STDC__ typedef void *pointer; #else typedef char *pointer; -#endif +#endif /*__STDC__*/ +#endif /*POINTER_TYPE*/ + #ifndef NULL #define NULL 0