Commit graph

46 commits

Author SHA1 Message Date
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
dtrg e859ef2491 Rationalised use of #includes to be more standards-compliant. 2006-07-19 10:28:43 +00:00
ceriel 910316cfde Fix: parameter name same as function name not dealt with properly 2001-07-03 08:55:16 +00:00
ceriel 3895a59e03 Fix to fix in idf.c 1996-02-19 12:19:47 +00:00
ceriel 67cb729554 Fixed bug: crashed when parameter has same name as function 1995-12-20 09:58:56 +00:00
ceriel c97f79454d Fixed a bug with local character arrays initialized with a string 1995-11-15 09:42:25 +00:00
ceriel 8636e9d10a Changed Header into Id 1994-06-27 08:03:14 +00:00
ceriel dd67502468 Minor fix 1994-04-19 10:04:53 +00:00
ceriel 6f8002f540 Fix: previous version did not work with variable # of args 1993-01-28 11:45:38 +00:00
ceriel d9bd02fda6 Removed static buffer in gen_idf 1992-10-22 16:56:28 +00:00
ceriel 5d9c7f4d9b Fixed bug: old-style float parameters resulted in wrong addresses for following parameters 1992-04-16 16:29:35 +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 9381b34dfa Fix: sometimes generated illegal register messages for parameters 1991-10-02 12:00:05 +00:00
ceriel 9f43986877 ANSI requires separate name space for labels, and made to use idf module 1991-06-19 16:12:56 +00:00
ceriel 2838d446ef Did not detect redeclaration of formal as local 1991-05-27 15:06:36 +00:00
ceriel e096bc3fb3 fixed problem with extern declarations 1991-04-09 10:15:48 +00:00
ceriel 8a25f4e66b Some minor mods in mixed mode checking 1991-03-27 12:46:37 +00:00
ceriel 3e16cf5116 Fix: prevent incorrect error messages 1991-03-26 09:45:20 +00:00
ceriel e48822da7b Improved identifier string allocation mechanism 1991-01-30 11:25:25 +00:00
dick 32eddf7846 undo modifications outside #ifdef LINT 1991-01-10 17:49:19 +00:00
dick 4a7ef15df2 more additions for lint 1991-01-07 12:33:38 +00:00
dick 495a037714 lint update (merge from C compiler) 1990-12-07 14:42:26 +00:00
eck 0b35c31e5b fixed bug with function returning pointer to function 1990-12-04 11:09:34 +00:00
eck 8a00e32bc8 fixed type of sizeof (decreases size!)
fixed bug with typedef of function with block scope
1990-11-12 15:28:44 +00:00
eck d7c15759ee added warning about old-fashioned declarations
cleaned up error reporting
changed implicit declaration handling
1990-11-02 09:23:27 +00:00
eck b4f97588b7 fixed bug with undefined structs
ceriel changed debugging information
1990-10-19 11:50:32 +00:00
ceriel 41e3cf403b Added support for debugger, de-linted somewhat 1990-10-01 15:28:28 +00:00
eck e144c7cc4c fixed bugs with prototype scopes 1990-09-12 16:36:16 +00:00
eck a1e2a583b5 fixed bug with double definition 1990-05-03 16:18:22 +00:00
eck dc12b2fa3d warn about ptrdiff_t passed as long on 2-4 machines 1990-04-25 15:09:51 +00:00
eck aa4de95f26 various bug fixes & improvements 1990-04-06 15:37:16 +00:00
eck 00876cd9df added alloction dump
shrunk some data structures
changed some ALLOCDEF's
changed setjmp to __setjmp
1990-01-10 17:33:35 +00:00
eck 96da16ce33 fixed bugs, added dynamic buffer allocation to preprocessor 1989-11-22 13:58:36 +00:00
eck 776233c718 improved qualifier checking 1989-11-13 14:01:50 +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 480de7cafb fixed some bugs, changed warning interface 1989-10-27 13:33:10 +00:00
ceriel 0f8516f861 use more simple hashing algorithm, made namelist generation dependant on a #define 1989-10-26 16:16:35 +00:00
ceriel 352c5c581b some more Minix squeezing 1989-10-20 16:16:06 +00:00
ceriel e4857c2446 many minor modifications (it still will not fit on Minix!) 1989-10-19 14:53:25 +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 0bc88b77b2 fixed several problems:
- hex numbers and floating point numbers were wrong
- grammar was wrong; did not accept correct ANSI C
- prototype updates did not work
- float parameters to routines without prototype were not upgraded to double
- the dot operator no longer requires lvalue as left-hand-side
1989-02-07 13:16:02 +00:00
ceriel 926da49d39 Initial revision 1989-02-07 11:04:05 +00:00