X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/779cb9b02891e3f9fc8b9620bb630cf529d76c67..41ff7ec97691736525bb3da095afd5ca9a8ef003:/src/parse.y diff --git a/src/parse.y b/src/parse.y index a993ea6..f507d5b 100644 --- a/src/parse.y +++ b/src/parse.y @@ -53,6 +53,13 @@ ALLOC(ptr, sizeof (type)); \ *(ptr) = (type) { __VA_ARGS__ }; \ } while (0) + +/* + * With the postprocessing performed by fix-yytname.awk, all the symbol + * name strings can be used directly in error messages and there is no + * need for any string processing. + */ +#define yytnamerr(a, b) cdecl__strlcpy(a, b, (a) ? INT_MAX : 0) %} %code requires {