ack/mach/proto/as
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 Add the .dataf4 and .dataf8 directives to the assembler --- manually converting 2018-09-10 22:56:18 +02:00
comm0.h Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
comm1.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
comm2.y Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
comm3.c Add .data8 for 8-byte literal integers to the assembler. 2019-08-13 11:47:44 -04:00
comm4.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
comm5.c Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
comm6.c Fix buffer overflow issue. 2019-03-25 00:13:42 +08:00
comm7.c Add .data8 for 8-byte literal integers to the assembler. 2019-08-13 11:47:44 -04:00
comm8.c Header --> Id 1994-06-24 14:02:31 +00:00
proto.make Header --> Id 1994-06-24 14:02:31 +00:00