ack/util/ego/share
George Koehler 36f16b0cb8 Cut down some clang warnings
Edit C code to reduce warnings from clang.  Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().

Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c.  Such changes don't silence warnings; I make
such changes while I silence warnings in the same file.  In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.

Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning.  I wrongly added the `const` in d347207.

For warnings about implicit declarations of functions, the fix is to
declare the function before calling it.  For example, my OpenBSD
system needs <sys/wait.h> to declare wait().

In util/int, add "whatever.h" to declare more functions.  Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-30 18:36:38 -04:00
..
alloc.c Use size_t and void with memory allocation in ego. 2017-11-14 20:35:18 -05:00
alloc.h Use size_t and void with memory allocation in ego. 2017-11-14 20:35:18 -05:00
build.lua Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
cldefs.src Entry for LOI changed from CLASS1 to CLASS12. 1985-01-30 14:49:03 +00:00
cset.c Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
cset.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
debug.c Fixes for compiling ego with -DTRACE 2018-03-01 13:19:38 -05:00
debug.h Switch ego to libc <assert.h> 2017-11-15 19:48:53 -05:00
def.h Header --> Id 1994-06-24 11:31:16 +00:00
files.c Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
files.h Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
get.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
get.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
global.c Header --> Id 1994-06-24 11:31:16 +00:00
global.h Use prototypes in ego/cs, ego/sp. 2018-02-05 16:09:30 -05:00
go.c Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
go.h Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
init_glob.c Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
init_glob.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
locals.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
locals.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
lset.c Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
lset.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
makecldef.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
Makefile Added Makefile to do a 'make distr' 1991-09-10 09:55:38 +00:00
map.c More common symbol fixing. 2019-02-10 14:03:55 +01:00
map.h Header --> Id 1994-06-24 11:31:16 +00:00
parser.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
parser.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
pop_push.awk Renamed 'switch' variable to avoid conflict with a keyword in modern awks. 2010-08-01 10:35:04 +00:00
put.c Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
put.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
show.c Fix: wrong offsets for locals when < -32768, installation error for 'show' 1995-11-08 11:09:14 +00:00
stack_chg.c Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
stack_chg.h Add prototypes, void in util/ego/share 2017-11-15 17:19:56 -05:00
types.h Solve some gcc warnings in ego. 2018-03-08 18:51:07 -05:00
utils.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
utils.h Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00