]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: reduce snprintf reliance for error reporting.
authorNick Bowler <nbowler@draconx.ca>
Wed, 15 Nov 2023 03:43:00 +0000 (22:43 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 15 Nov 2023 21:03:07 +0000 (16:03 -0500)
commit72aedaedd7afa666f7c69dfe7ef4b7ec3dbc2458
treedd8992b02d3176a0cb5f6c1b00b5b36fca6038bf
parente745d25d7f109057962c6904be98f5f35e874ecc
libcdecl: reduce snprintf reliance for error reporting.

Add a fallback formatting method using the main libcdecl rendering
functions which works in the NLS-disabled case.

We don't need to avoid snprintf if NLS is enabled, as GNU libintl
will provide a usable snprintf if the system does not.
Makefile.am
src/cdecl-internal.h
src/error.c
src/output.c
t/cdeclerr.c