ack/util
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
..
ack Cut down some clang warnings 2019-10-30 18:36:38 -04:00
amisc * More ANSI C portability fixes. 2019-03-24 23:53:13 +08:00
arch * Fix merge conflict issue. 2019-06-16 01:19:15 +08:00
ass Read beyond buffer bugfix. 2019-03-31 00:53:09 +08:00
build Run all tests, even the ones which fail, and emit a test summary right at the 2016-12-01 23:03:30 +01:00
byacc Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ceg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
cgg Cut down some clang warnings 2019-10-30 18:36:38 -04:00
cmisc ANSI C conversion. 2019-05-11 01:14:01 +08:00
cpp Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ego Cut down some clang warnings 2019-10-30 18:36:38 -04:00
flex Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
grind Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
int Add util/int/switch.h to declare do_instr() and Do???() 2019-10-30 18:36:55 -04:00
led Adapt to new object API 2019-05-11 01:15:18 +08:00
LLgen LLgen: use size_t, reduce warnings, other small changes 2019-10-22 15:32:23 -04:00
make * Fix compilation warning. 2019-05-11 00:49:10 +08:00
mcgg Add the OPTIONS clause to the mcgg grammar; add an optional pass which converts 2018-09-22 11:19:00 +02:00
misc ANSI C conversion. 2019-05-11 01:15:51 +08:00
ncgg Change the optional parameter of n_coerc() to a pointer 2019-10-30 18:36:56 -04:00
opt Cut down some clang warnings 2019-10-30 18:36:38 -04:00
shf Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
topgen Reduce clang warnings from top 2019-10-30 18:36:55 -04:00