ack/util
George Koehler 17bc9cdef7 More void, fewer clang warnings in util/ego
Most warnings are for functions implicitly returning int.  Change most
of these functions to return void.  (Traditional K&R C had no void
type, but C89 has it.)

Add prototypes to most function declarations in headers.  This is
easy, because ego declares most of its extern functions, and the
comments listed most parameters.  There were a few outdated or missing
declarations, and a few .c files that failed to include an .h with the
declarations.

Add prototypes to a few function definitions in .c files.  Most
functions still have traditional K&R definitions.  Most STATIC
functions still don't have prototypes, because they have no earlier
declaration where I would have added the prototype.

Change some prototypes in util/ego/share/alloc.h.  Functions newmap()
and oldmap() handle an array of pointers to something; change the
array's type from `short **` to `void **`.  Callers use casts to go
between `void **` and the correct type, like `line_p *`.  Function
oldtable() takes a `short *`, not a `short **`; I added the wrong type
in 5bbbaf4.

Make a few other changes to silence warnings.  There are a few places
where clang wants extra parentheses in the code.

Edit util/ego/ra/build.lua to add the missing dependency on ra*.h; I
needed this to prevent crashes from ra.
2019-11-01 15:27:16 -04:00
..
ack Cut down some clang warnings 2019-10-30 18:36:38 -04:00
amisc * More ANSI C portability fixes. 2019-03-24 23:53:13 +08:00
arch * Fix merge conflict issue. 2019-06-16 01:19:15 +08:00
ass Read beyond buffer bugfix. 2019-03-31 00:53:09 +08:00
build Run all tests, even the ones which fail, and emit a test summary right at the 2016-12-01 23:03:30 +01:00
byacc Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ceg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
cgg Cut down some clang warnings 2019-10-30 18:36:38 -04:00
cmisc ANSI C conversion. 2019-05-11 01:14:01 +08:00
cpp Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ego More void, fewer clang warnings in util/ego 2019-11-01 15:27:16 -04:00
flex Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
grind Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
int Add util/int/switch.h to declare do_instr() and Do???() 2019-10-30 18:36:55 -04:00
led Adapt to new object API 2019-05-11 01:15:18 +08:00
LLgen LLgen: use size_t, reduce warnings, other small changes 2019-10-22 15:32:23 -04:00
make * Fix compilation warning. 2019-05-11 00:49:10 +08:00
mcgg Add the OPTIONS clause to the mcgg grammar; add an optional pass which converts 2018-09-22 11:19:00 +02:00
misc ANSI C conversion. 2019-05-11 01:15:51 +08:00
ncgg Change the optional parameter of n_coerc() to a pointer 2019-10-30 18:36:56 -04:00
opt Cut down some clang warnings 2019-10-30 18:36:38 -04:00
shf Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
topgen Reduce clang warnings from top 2019-10-30 18:36:55 -04:00