c: use YYNOMEM instead of -2

See 84b1972c96.

* data/skeletons/glr.c, data/skeletons/yacc.c (YYNOMEM): New.
Use it.
This commit is contained in:
Akim Demaille
2020-03-27 06:33:08 +01:00
parent 90f0500ef8
commit 59d820d1ef
3 changed files with 28 additions and 25 deletions

3
TODO
View File

@@ -2,13 +2,12 @@
** Documentation
- yyexpected_tokens in all the languages.
- remove yysyntax_error_arguments.
- YYNOMEM
** Naming conventions
yysyntax_error_arguments should be yy_syntax_error_arguments, since it's a
private implementation detail.
Give a name to magic constants such as -2 (YYNOMEM?).
There's no good reason to use the "yy" prefix in parser::context, is there?
See also the case of Java. We should keep the prefix for private
implementation details, but maybe not for public APIs.