ack/util/int
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
..
switch ANSI C conversion. 2019-05-11 01:14:54 +08:00
test Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
alloc.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
alloc.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
build.lua Move int to $(INSDIR)/bin/int 2018-11-05 15:14:29 -05:00
ChangeLog Header --> Id 1994-06-24 11:31:16 +00:00
core.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
data.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
data.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
debug.h Header --> Id 1994-06-24 11:31:16 +00:00
disassemble.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
do_array.c Closes #193 (signed integer shift left does not correctly check overflow in the interpreter when shifting by 0 bits), Closes #192 (integer division overflow is not handled in the interpreter and crashes it) and closes #194 (lar instruction does not accept negative bounds in interpreter when doing array index checking). 2019-06-16 01:03:01 +08:00
do_branch.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_comp.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_conv.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_fpar.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_incdec.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_intar.c Cleanup of modified code fixing several overflow checking issues. 2019-06-16 01:27:49 +08:00
do_load.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_logic.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_misc.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
do_proc.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
do_ptrar.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_sets.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_store.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
do_unsar.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
dump.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
dump.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
e.out.h Header --> Id 1994-06-24 11:31:16 +00:00
fra.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
fra.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
global.c More common symbol removal. 2019-02-10 14:09:52 +01:00
global.h ANSI C conversion. 2019-05-11 01:14:54 +08:00
init.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
int.1 Header --> Id 1994-06-24 11:31:16 +00:00
io.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
io.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
linfil.h Header --> Id 1994-06-24 11:31:16 +00:00
log.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
log.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
logging.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
M.trap_msg Make the em interpreter build --- again, lots of warnings, so it probably won't 2018-06-09 21:13:31 +09:00
M.warn_h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
M.warn_msg Make the em interpreter build --- again, lots of warnings, so it probably won't 2018-06-09 21:13:31 +09:00
m_ioctl.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
m_sigtrp.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
m_sigtrp.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
main.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
mem.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
memdirect.h Header --> Id 1994-06-24 11:31:16 +00:00
moncalls.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
monstruct.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
monstruct.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00
nofloat.h Header --> Id 1994-06-24 11:31:16 +00:00
opcode.h Header --> Id 1994-06-24 11:31:16 +00:00
proctab.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
proctab.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
read.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
read.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
READ_ME Header --> Id 1994-06-24 11:31:16 +00:00
rsb.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
rsb.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
segcheck.h Header --> Id 1994-06-24 11:31:16 +00:00
segment.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
segment.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
shadow.h Header --> Id 1994-06-24 11:31:16 +00:00
stack.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
stack.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
switch.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
sysidf.h Get moncalls.c to compile on OpenBSD. 2018-06-10 19:05:42 -04:00
tally.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
text.c + ANSI C conversion 2019-03-17 22:46:32 +08:00
text.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
TODO Model 3 (Intelligent Calls) implemented (Remco Feenstra & Peter Boersma); 1990-06-21 12:16:31 +00:00
trap.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
trap.h + ANSI C conversion 2019-03-17 22:46:32 +08:00
v7ioctl.h Header --> Id 1994-06-24 11:31:16 +00:00
warn.c Cut down some clang warnings 2019-10-30 18:36:38 -04:00
whatever.h Cut down some clang warnings 2019-10-30 18:36:38 -04:00