ack/modules/src
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 Fix syntax mistake in man page. 2019-05-11 00:51:42 +08:00
data Add init/free functions and rename parameters. 2019-05-11 00:52:40 +08:00
em_code Remove unused variable. 2019-02-21 00:43:49 +08:00
em_data Remove CMake changes and generic sed scripts so they are move to a separate branch. 2019-02-21 00:43:04 +08:00
em_mes ANSI C conversion of code and adapt man page accordingly. 2019-05-11 00:53:52 +08:00
em_opt ANSI C compilation fixes 2019-05-14 23:22:38 +08:00
flt_arith Cut down some clang warnings 2019-10-30 18:36:38 -04:00
idf + Have the DEBUG version compile 2019-03-17 22:46:31 +08:00
input * Was trying to use the new system API which is not ready causing stack issues. 2019-02-20 00:44:32 +08:00
malloc Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
object rename rd_long/wr_long to rd_int4/wr_int4 for consistency. Align declaration and definition name of parameters and adapt man page accordingly. 2019-05-11 01:03:36 +08:00
print Adapt man page with correct prototype information. 2019-05-11 01:01:52 +08:00
read_em ANSI C conversion of code, adapt man pages accordingly. Some autodocs added. 2019-05-11 01:01:21 +08:00
string ANSI C conversion of code, rename some parameters to better names and adapt man page accordingly. 2019-05-11 00:57:58 +08:00
system Cut down some clang warnings 2019-10-30 18:36:38 -04:00
Xmalloc Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
Action Added flt_arith 1989-07-10 11:25:02 +00:00
Action.lint Changed action names to reflect action taken 1991-11-22 13:55:56 +00:00