Commit graph

29 commits

Author SHA1 Message Date
carl 750a6bc684 Better ANSI C compatibility and portability:
+ Addition of function prototypes and include files.
+ Change function definitions to ANSI C style.
+ Initial support for CMake
+ Scripts to generate compiler header is now sed based.
2019-02-19 00:54:23 +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 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
ceriel df46c5e165 Fix for union initializers 2001-07-03 10:10:56 +00:00
ceriel d1e4c3d930 Fixed: union initialization did not work properly 1994-10-03 12:57:39 +00:00
ceriel 8636e9d10a Changed Header into Id 1994-06-27 08:03:14 +00:00
ceriel b3863b7247 Fixed bug with union initializers 1993-08-09 09:40:44 +00:00
ceriel 9c64294186 Fixed bit-field initializers bug 1993-01-21 11:00:51 +00:00
ceriel a38be6605e Do not use '#endif/#else xxx'; it is not allowed for ANSI C 1991-12-17 13:12:22 +00:00
ceriel 4e99d889ff Changed manual page installation mechanism 1991-11-05 15:31:14 +00:00
ceriel 6333faba3c Bug fix in padding code 1991-10-25 11:15:09 +00:00
ceriel 8d25f69e77 Fix: sometimes crashed on initializers for unknown types 1991-09-30 15:00:46 +00:00
ceriel e7b7aa3944 simplified compile time floating point somewhat 1991-01-15 18:21:16 +00:00
dick 495a037714 lint update (merge from C compiler) 1990-12-07 14:42:26 +00:00
eck b4f97588b7 fixed bug with undefined structs
ceriel changed debugging information
1990-10-19 11:50:32 +00:00
eck 67819cfd6c made a little mistake with the #else and #endif 1990-02-09 11:29:57 +00:00
eck d7d56d2cbb fixed bug with 0L; don't give warning on char x[3] = "abc" 1990-02-09 10:35:44 +00:00
eck c4e0fddf5b MINIX squeezing with strings, fixed small preprocessor bug 1990-01-16 15:21:15 +00:00
eck d50600e263 fixed unary & and indirect calls 1989-11-22 16:41:09 +00:00
eck 96da16ce33 fixed bugs, added dynamic buffer allocation to preprocessor 1989-11-22 13:58:36 +00:00
ceriel b6c29b5541 fixed bug which caused memory faults on erroneous input 1989-11-17 11:36:43 +00:00
ceriel 67f9f2a74f many little changes: removed some lint complaints; max_int and max_unsigned
are now constants if NOCROSS is defined; added lexstrict and expr_strict,
and changed calls where needed
1989-11-08 16:52:34 +00:00
eck 8ff400fd0f squeezing for MINIX 1989-10-18 13:12:31 +00:00
eck 4bde31f78a minor changes concerning void and pre-processor 1989-09-29 16:20:38 +00:00
eck 00027d3893 some minor fixes, renamed ch7 stuff to ch3 1989-09-25 14:28:10 +00:00
eck fa4e6eecb4 lots and lots of changes & improvements 1989-09-19 16:13:23 +00:00
ceriel 926da49d39 Initial revision 1989-02-07 11:04:05 +00:00