Since we don't use snprintf in the library anymore, we can remove
the glibc bug workaround when calling cdecl__strlcpy in the parser
error handler.
* name strings can be used directly in error messages and there is no
* need for any string processing.
*/
-#define yytnamerr(a, b) ( (a) ? yytnamerr_copy(a, b) \
- : strlen(b) )
-
-static size_t yytnamerr_copy(char *dst, const char *src)
-{
- return cdecl__strlcpy(dst, src, strlen(src)+1);
-}
+#define yytnamerr(a, b) ( (a) ? cdecl__strlcpy(a, b, -1) : strlen(b) )
%}
%code requires {