From: ceriel Date: Tue, 17 Dec 1991 14:27:24 +0000 (+0000) Subject: Do not use '#endif/#else xxx'; it is not allowed for ANSI C X-Git-Tag: release-5-5~544 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8482d2c110f5db03eb1518f0ae52ea471d3deeb9;p=ack.git Do not use '#endif/#else xxx'; it is not allowed for ANSI C --- diff --git a/lang/cem/ctest/ctsetjmp/stjmp.c b/lang/cem/ctest/ctsetjmp/stjmp.c index bb4bd1227..fa7c540a5 100644 --- a/lang/cem/ctest/ctsetjmp/stjmp.c +++ b/lang/cem/ctest/ctsetjmp/stjmp.c @@ -2,7 +2,7 @@ # include # ifndef NOSIGNAL # include -# endif not NOSIGNAL +#endif /* not NOSIGNAL */ /* * setjmptest @@ -239,4 +239,4 @@ hard() { printf("Sending signal ..."); kill(getpid(),SIGHUP); } -# endif not NOSIGNAL +#endif /* not NOSIGNAL */ diff --git a/lang/cem/libcc/gen/ecvt.c b/lang/cem/libcc/gen/ecvt.c index 16cb4d1b4..ebe19f500 100644 --- a/lang/cem/libcc/gen/ecvt.c +++ b/lang/cem/libcc/gen/ecvt.c @@ -45,4 +45,4 @@ fcvt(value, ndigit, decpt, sign) return cvt(value, ndigit, decpt, sign, 0); } -#endif NOFLOAT +#endif /* NOFLOAT */ diff --git a/lang/cem/libcc/gen/strtod.c b/lang/cem/libcc/gen/strtod.c index 2f6f61442..e50658fcd 100644 --- a/lang/cem/libcc/gen/strtod.c +++ b/lang/cem/libcc/gen/strtod.c @@ -26,4 +26,4 @@ strtod(p, pp) _str_ext_cvt(p, pp, &e); return _ext_dbl_cvt(&e); } -#endif NOFLOAT +#endif /* NOFLOAT */ diff --git a/lang/cem/lint/lpass1/Parameters b/lang/cem/lint/lpass1/Parameters index 9d33d7fae..35feabcea 100644 --- a/lang/cem/lint/lpass1/Parameters +++ b/lang/cem/lint/lpass1/Parameters @@ -53,10 +53,8 @@ #define SZ_WORD (arith)4 #define SZ_INT (arith)4 #define SZ_LONG (arith)4 -#ifndef NOFLOAT #define SZ_FLOAT (arith)4 #define SZ_DOUBLE (arith)8 -#endif NOFLOAT #define SZ_POINTER (arith)4 /* target machine alignment requirements */ @@ -65,10 +63,8 @@ #define AL_WORD SZ_WORD #define AL_INT SZ_WORD #define AL_LONG SZ_WORD -#ifndef NOFLOAT #define AL_FLOAT SZ_WORD #define AL_DOUBLE SZ_WORD -#endif NOFLOAT #define AL_POINTER SZ_WORD #define AL_STRUCT 1 #define AL_UNION 1 diff --git a/lang/cem/lint/lpass2/l_print3ack.c b/lang/cem/lint/lpass2/l_print3ack.c index d4684d2bb..efcaa7727 100644 --- a/lang/cem/lint/lpass2/l_print3ack.c +++ b/lang/cem/lint/lpass2/l_print3ack.c @@ -26,5 +26,5 @@ sprint(s, format) char *s; char *format; { ; } /* FORMAT1 */ doprnt(filep, format) File *filep; char *format; { ; } -#endif lint +#endif /* lint */