carl
f74b29d303
* Remove some more compiler warnings.
2019-02-24 00:46:05 +08:00
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
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
8636e9d10a
Changed Header into Id
1994-06-27 08:03:14 +00:00
ceriel
e9a4337ccf
Fixed problem with missed unstacks
1993-03-30 09:41:00 +00:00
ceriel
439ec389a0
found some small leaks with Purify
1993-01-18 15:10:01 +00:00
ceriel
47c7e6a43d
Fixed bug in initalization expression handling
1992-04-21 09:54:32 +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
34d6b23ba6
Fixed two bugs:
...
- did not accept arrays in 'if (a) ...'
- did not detect too few parameters in functions with ellipsis prototypes
1991-07-01 14:10:15 +00:00
ceriel
e7b7aa3944
simplified compile time floating point somewhat
1991-01-15 18:21:16 +00:00
dick
4a7ef15df2
more additions for lint
1991-01-07 12:33:38 +00:00
eck
43b01a70a0
squeezing for MINIX & bug fix in dumpidf
1990-07-19 17:16:36 +00:00
ceriel
c4dabcd9a4
unsigned but-fields were sometimes sign-extended when converted to int
1990-05-18 10:29:57 +00:00
eck
dc12b2fa3d
warn about ptrdiff_t passed as long on 2-4 machines
1990-04-25 15:09:51 +00:00
eck
ed2516a57a
bug fixes after test-suite
1990-03-29 10:41:46 +00:00
eck
44d9a8b42d
improved the generation of floating-point messages
1990-02-28 14:51:35 +00:00
eck
073c81c9aa
added extern declaration for flt_flt2arith()
1990-02-26 15:39:45 +00:00
ceriel
1228fe1baf
a few fixes: usual arithmetic conversions were wrong
1990-02-20 13:31:52 +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
b3a142e244
fixed null-pointer constants and SkipToNewLine()
1989-12-12 12:52:03 +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
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
dfb4d0c576
deleted } in arith.c
1989-10-23 14:39:33 +00:00
ceriel
4a5a463e44
improved handling of , (comma) operator and some more Minix squeezing
1989-10-23 13:50:27 +00:00
ceriel
352c5c581b
some more Minix squeezing
1989-10-20 16:16:06 +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