Commit graph

27 commits

Author SHA1 Message Date
carl 5f9a199257 CPP ISO C90 compatibility and conversion. 2019-03-02 01:44:16 +08:00
George Koehler 3463f0c944 bts2str(), long2str() are in <ack_string.h> 2017-11-10 18:00:00 -05:00
George Koehler ca4bd38206 Delete old "assert.h" files; use libc <assert.h>.
Edit build.lua for programs losing their private assert.h, so they
depend on a list of .h files excluding assert.h.

Remove modules/src/assert; it would be a dependency of cpp.ansi but we
didn't build it, so cpp.ansi uses the libc assert.

I hope that libc <assert.h> can better report failed assertions.  Some
old "assert.h" files didn't report the expression.  Some reported a
literal "x", because traditional C expanded the macro parameter x in
"x", but ANSI C89 doesn't expand macro parameters in string literals.
2017-11-09 22:22:13 -05:00
David Given 3e69d1185a Fix a whole lot more stray prototypes. 2016-11-24 21:47:40 +01:00
David Given fd91851005 Add enough return types to the K&R C that the ACK builds (on Linux) using clang
now.
2016-11-10 22:04:18 +01:00
David Given c1aca7dae5 First milestone of replacing the build system.
--HG--
branch : dtrg-buildsystem
rename : lang/cem/cpp.ansi/Parameters => lang/cem/cpp.ansi/parameters.h
2013-05-12 20:45:55 +01:00
dtrg 45b4fef7d6 Rationalised use of #includes to be more standards-compliant. 2006-07-30 23:40:35 +00:00
ceriel 91cb060d10 Replaced a couple of UnGetChar calls with ChPushBack calls. The
UnGetChar call is wrong after skipspaces().
1998-02-09 09:49:00 +00:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel f06b39f112 removed wrong assertion 1994-04-19 10:46:08 +00:00
ceriel b8b3054bba Fix: prevent unintentional token pasting 1994-03-01 15:04:52 +00:00
ceriel 6fc94eb375 Improved constant arithmetic: had several bugs 1993-03-18 13:24:20 +00:00
ceriel dab38becd4 Fixed preprocessor problem with empty macro bodies 1991-02-21 12:08:13 +00:00
ceriel 797441009d prevent multiple occurrences of TOKSEP in replace.c 1991-02-18 15:25:11 +00:00
ceriel 5ba9685e76 de-linted somewhat 1990-10-02 17:19:17 +00:00
eck 7b00154c54 oops, previous fix was wrong for ## operator 1990-09-25 13:40:32 +00:00
eck 707d811586 fixed error with # && ##-operators in non function-like macro's 1990-09-13 15:14:52 +00:00
eck 7987a1fed8 cast ptrdiff_t to int for ANSI 1990-04-25 15:10:13 +00:00
eck d04a8595f3 fixed calls of echo() macro's 1990-03-13 14:33:43 +00:00
eck 8d04be4a13 deleted a ';': pasting didn't work properly 1990-02-26 10:18:40 +00:00
eck 64e1fa33d3 fixed bugs, added No_Mem() 1990-02-21 16:38:45 +00:00
eck f4dcfc3c64 bug fix with #include in argument
save #pragma's until they can be printed
1990-01-26 14:49:13 +00:00
eck c19026af9e bug fix: defined(aap)1 expanded to 01 1990-01-16 15:27:24 +00:00
eck c6d60cb24f fixed small bug 1989-11-27 11:40:58 +00:00
eck f9fadbf045 fixed bugs, added dynamic buffer allocation 1989-11-22 12:59:15 +00:00
eck bdbbf32404 fixed bug, added -o option 1989-10-31 10:02:48 +00:00
eck 1d37165575 Initial revision 1989-10-23 10:35:56 +00:00