]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Remove error code argument from cdecl__err.
authorNick Bowler <nbowler@draconx.ca>
Tue, 9 Jan 2024 02:21:53 +0000 (21:21 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 9 Jan 2024 04:59:52 +0000 (23:59 -0500)
commite9d3a59c29b3eea45ea37bc3ceef5d32ed81b9eb
tree1f5effdd4bd7f2095a6e8a670e43591fee29220e
parent7031fb3bec5bbef1d14686ba0434442a4ebf5ebd
libcdecl: Remove error code argument from cdecl__err.

All callers of this internal function use the same error code
(CDECL__ENOPARSE), so removing this from the internal interface
can save a little bit of code.

Or at least it would except that this simplification makes GCC
decide to inline yyerror in the parser, which has a significantly
worse opposite effect.  It's not so pretty, but let's mark yyerror
"noinline" as a workaround so that deleting this code actually
results in less code...
src/cdecl-internal.h
src/error.c
src/parse.y
src/scan.l
t/cdeclerr.c
t/scantest.c