ack/util/opt
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 ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
alloc.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
backward.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
build.lua ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
cleanup.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
em_opt.6 ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
ext.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
flow.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
getline.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
getline.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
line.h Header --> Id 1994-06-24 11:31:16 +00:00
lookup.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
lookup.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
main.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
mktab.y Cut down some clang warnings 2019-10-30 18:36:38 -04:00
optim.h Header --> Id 1994-06-24 11:31:16 +00:00
param.h Header --> Id 1994-06-24 11:31:16 +00:00
pattern.h Header --> Id 1994-06-24 11:31:16 +00:00
patterns ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
peephole.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
pop_push.awk Renamed 'switch' variable to avoid conflict with a keyword in modern awks. 2010-08-01 10:35:04 +00:00
pop_push.h Added pop_push.h 1991-12-18 09:47:19 +00:00
process.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
proinf.h Header --> Id 1994-06-24 11:31:16 +00:00
putline.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
putline.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
reg.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
reg.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
scan.l ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
special.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
tes.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
tes.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
testopt Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.) 2006-07-18 17:20:46 +00:00
types.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
util.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
util.h ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00
var.c ANSI C conversion and add procedure declarations. 2019-05-11 01:17:40 +08:00