]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Consolidate most error messages.
authorNick Bowler <nbowler@draconx.ca>
Fri, 9 Jun 2023 14:43:36 +0000 (10:43 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 16 Jun 2023 04:10:13 +0000 (00:10 -0400)
commita9ae295484868287ff1b8f2d613fa4c010c06891
tree6208c4a4b8e741f9c57045b345d452c9dca44ae5
parentbd7cc50d498bc0dcf403af437accdc82dea5f587
libcdecl: Consolidate most error messages.

Almost every error message returned by the library is a fixed
string describing some particular syntax problem.  Keep this
list of strings in one place, and add a new internal helper
to report one of these errors.

Furthermore, reduce the amount of distinct error codes returned
to the user to (once again) just two, as the current plethora of
codes seems completely pointless.
Makefile.am
src/cdecl-internal.h
src/cdecl.h
src/error.c
src/parse-decl.c
src/parse.y
src/scan.l
t/cdeclerr.c