ack/util/ncgg
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 Adopt a copy of Minix 2's ed; this allows the ACK's antiquated ed scripts to 2018-06-02 18:02:51 +02:00
cgg.y ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
coerc.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
coerc.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
cost.h Header --> Id 1994-06-24 11:31:16 +00:00
cvtkeywords Cut down some clang warnings 2019-10-30 18:36:38 -04:00
emlookup.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
error.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
expr.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
expr.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
extern.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
hall.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
hall.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
instruct.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
instruct.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
iocc.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
iocc.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
keywords Add regvar_w() and regvar_d() for use with reglap. 2017-10-17 12:05:41 -04:00
lookup.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
lookup.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
main.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
ncgg.6 Header --> Id 1994-06-24 11:31:16 +00:00
output.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
param.h In ncgg, increase MAXREGS from 80 to 200. 2016-09-18 14:37:42 -04:00
property.h Header --> Id 1994-06-24 11:31:16 +00:00
pseudo.h Remove stackadjust and stackoffset() from ncg. 2016-10-07 20:52:13 -04:00
reg.h Header --> Id 1994-06-24 11:31:16 +00:00
regvar.h Add reglap to ncg. Add 4-byte reg_float to PowerPC ncg. 2017-10-14 12:40:04 -04:00
scan.l ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
set.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
set.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
strlookup.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
subr.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
subr.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:24 +08:00
token.h Header --> Id 1994-06-24 11:31:16 +00:00
var.c Add reglap to ncg. Add 4-byte reg_float to PowerPC ncg. 2017-10-14 12:40:04 -04:00
varinfo.h Header --> Id 1994-06-24 11:31:16 +00:00