ack/util/ncgg
George Koehler be1662dd15 Change the optional parameter of n_coerc() to a pointer
Fixes https://github.com/davidgiven/ack/issues/188

One call to n_coerc() omits the 6th and last argument.  This worked in
traditional K&R C, but stops working if we declare n_coerc() with a
prototype of all 6 parameters.

Change the last parameter to a pointer.  Declare n_coerc() with
prototype, so it now requires all 6 arguments.  Pass NULL when have no
iocc_t.  This NULL exists only to satisfy the prototype; n_coerc()
will not use this NULL.

A different fix would declare n_coerc() with 5 parameters and `...`,
then use <stdarg.h> to read the 6th argument when it exists.
2019-10-30 18:36:56 -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 Change the optional parameter of n_coerc() to a pointer 2019-10-30 18:36:56 -04:00
coerc.c Change the optional parameter of n_coerc() to a pointer 2019-10-30 18:36:56 -04:00
coerc.h Change the optional parameter of n_coerc() to a pointer 2019-10-30 18:36:56 -04: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