ack/util/ego/ra
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
..
build.lua ego now builds and is used. 2016-08-21 22:01:19 +02:00
itemtab.src Initial revision 1984-11-27 16:16:36 +00:00
makeitems.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
ra.c Crudely bounds check some naked fscanf("%s") parsing. Fixes #79, mostly. 2018-06-02 20:51:41 +02:00
ra.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_allocl.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
ra_allocl.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_aux.c Header --> Id 1994-06-24 11:31:16 +00:00
ra_aux.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_interv.c Build ego. 2013-05-15 21:14:06 +01:00
ra_interv.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_items.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
ra_items.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_lifet.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
ra_lifet.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_pack.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
ra_pack.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_profits.c In ego, put both words and double-words in reg_float. 2017-02-16 19:55:52 -05:00
ra_profits.h Header --> Id 1994-06-24 11:31:16 +00:00
ra_xform.c Rename all files called 'aux.*' to something else; Windows can't handle them. 2019-02-09 00:02:41 +01:00
ra_xform.h Header --> Id 1994-06-24 11:31:16 +00:00