ack/util/ego/cs
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
..
cs.c Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
cs.h Optimize procedures that do both a / b and a % b. 2018-03-05 13:32:06 -05:00
cs_alloc.c Use size_t and void with memory allocation in ego. 2017-11-14 20:35:18 -05:00
cs_alloc.h Fix my typo from commit 5bbbaf4. 2017-11-17 15:46:24 -05:00
cs_aux.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_aux.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_avail.c More void, fewer clang warnings in util/ego 2019-11-01 15:27:16 -04:00
cs_avail.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_debug.c Fix bogus test. 2018-06-05 09:20:46 +09:00
cs_debug.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_elim.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_elim.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_entity.c Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_entity.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_getent.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_getent.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_kill.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_kill.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_partit.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_partit.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_profit.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_profit.h Optimize procedures that do both a / b and a % b. 2018-03-05 13:32:06 -05:00
cs_stack.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_stack.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
cs_vnm.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cs_vnm.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00