ack/h
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
..
arch.h arch.h flag fixing 2019-03-25 00:07:43 +08:00
as_spec.h Header --> Id 1994-06-24 11:31:16 +00:00
build.lua C preprocessor; tabgen; now the pc86 boot.s builds using the ack 2016-07-29 00:22:49 +02:00
cg_pattern.h Header --> Id 1994-06-24 11:31:16 +00:00
cgg_cg.h Add prototypes to functions in subr.c 2017-11-12 16:11:05 -05:00
con_float Cut down some clang warnings 2019-10-30 18:36:38 -04:00
em_abs.h Adapted for ANSI C and our pseudo-Posix syscall interface. 2007-04-21 23:18:14 +00:00
em_ego.h Header --> Id 1994-06-24 11:31:16 +00:00
em_flag.h Header --> Id 1994-06-24 11:31:16 +00:00
em_mes.h Header --> Id 1994-06-24 11:31:16 +00:00
em_ptyp.h Header --> Id 1994-06-24 11:31:16 +00:00
em_reg.h Header --> Id 1994-06-24 11:31:16 +00:00
em_table Moved from /etc. 2007-02-25 12:42:04 +00:00
em_table.doc After finding the em_table documentation, move it somewhere where other people 2018-06-13 20:58:44 +09:00
ip_spec.h Header --> Id 1994-06-24 11:31:16 +00:00
Makefile Initial revision 1984-08-23 13:00:32 +00:00
ocm_chan.h Header --> Id 1994-06-24 11:31:16 +00:00
ocm_parco.h Header --> Id 1994-06-24 11:31:16 +00:00
ocm_proc.h Header --> Id 1994-06-24 11:31:16 +00:00
out.h Rework relocations again: add RELO2HI and RELO2HISAD for the high two bytes of 2018-09-09 14:11:11 +02:00
ranlib.h Header --> Id 1994-06-24 11:31:16 +00:00
stb.h Header --> Id 1994-06-24 11:31:16 +00:00