Do not use '#endif/#else xxx'; it is not allowed for ANSI C

This commit is contained in:
ceriel 1991-12-17 14:27:24 +00:00
parent 929a0025ca
commit 8482d2c110
5 changed files with 5 additions and 9 deletions

View file

@ -2,7 +2,7 @@
# include <stdio.h> # include <stdio.h>
# ifndef NOSIGNAL # ifndef NOSIGNAL
# include <signal.h> # include <signal.h>
# endif not NOSIGNAL #endif /* not NOSIGNAL */
/* /*
* setjmptest * setjmptest
@ -239,4 +239,4 @@ hard() {
printf("Sending signal ..."); printf("Sending signal ...");
kill(getpid(),SIGHUP); kill(getpid(),SIGHUP);
} }
# endif not NOSIGNAL #endif /* not NOSIGNAL */

View file

@ -45,4 +45,4 @@ fcvt(value, ndigit, decpt, sign)
return cvt(value, ndigit, decpt, sign, 0); return cvt(value, ndigit, decpt, sign, 0);
} }
#endif NOFLOAT #endif /* NOFLOAT */

View file

@ -26,4 +26,4 @@ strtod(p, pp)
_str_ext_cvt(p, pp, &e); _str_ext_cvt(p, pp, &e);
return _ext_dbl_cvt(&e); return _ext_dbl_cvt(&e);
} }
#endif NOFLOAT #endif /* NOFLOAT */

View file

@ -53,10 +53,8 @@
#define SZ_WORD (arith)4 #define SZ_WORD (arith)4
#define SZ_INT (arith)4 #define SZ_INT (arith)4
#define SZ_LONG (arith)4 #define SZ_LONG (arith)4
#ifndef NOFLOAT
#define SZ_FLOAT (arith)4 #define SZ_FLOAT (arith)4
#define SZ_DOUBLE (arith)8 #define SZ_DOUBLE (arith)8
#endif NOFLOAT
#define SZ_POINTER (arith)4 #define SZ_POINTER (arith)4
/* target machine alignment requirements */ /* target machine alignment requirements */
@ -65,10 +63,8 @@
#define AL_WORD SZ_WORD #define AL_WORD SZ_WORD
#define AL_INT SZ_WORD #define AL_INT SZ_WORD
#define AL_LONG SZ_WORD #define AL_LONG SZ_WORD
#ifndef NOFLOAT
#define AL_FLOAT SZ_WORD #define AL_FLOAT SZ_WORD
#define AL_DOUBLE SZ_WORD #define AL_DOUBLE SZ_WORD
#endif NOFLOAT
#define AL_POINTER SZ_WORD #define AL_POINTER SZ_WORD
#define AL_STRUCT 1 #define AL_STRUCT 1
#define AL_UNION 1 #define AL_UNION 1

View file

@ -26,5 +26,5 @@ sprint(s, format) char *s; char *format; { ; }
/* FORMAT1 */ /* FORMAT1 */
doprnt(filep, format) File *filep; char *format; { ; } doprnt(filep, format) File *filep; char *format; { ; }
#endif lint #endif /* lint */