In util/ack, add prototypes and static to functions.
authorGeorge Koehler <xkernigh@netscape.net>
Sun, 13 Nov 2016 02:12:45 +0000 (21:12 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Sun, 13 Nov 2016 02:12:45 +0000 (21:12 -0500)
commit65278bc9a9ffe8a924c616765afea3bf4e3728d5
treeb6d45e3a71c84eb4487f2f498c65e4f582462c46
parent7b3f870f6385f60b9cae18241b3ae058f890b986
In util/ack, add prototypes and static to functions.

Declare most functions before using them.  I declare some functions in
ack.h and some in trans.h (because trans.h declares type trf).  I
leave declarations of scanb() and scanvars() in .c files because they
need type growstring.  (I can't #include "grows.h" in another header
file as long as grows.h doesn't guard against multiple inclusion.)

Functions used within one file become static.  I remove a few tiny
functions.  I move a few functions or declarations to more convenient
places.  Some functions now return void instead of a garbage int.

I feel that keyword "register" is obsolete, so I removed it from where
I was editing.  This commit doesn't touch mktables.c
15 files changed:
util/ack/ack.h
util/ack/data.h
util/ack/files.c
util/ack/grows.c
util/ack/grows.h
util/ack/list.c
util/ack/list.h
util/ack/main.c
util/ack/rmach.c
util/ack/run.c
util/ack/scan.c
util/ack/svars.c
util/ack/trans.c
util/ack/trans.h
util/ack/util.c