[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reporting malloc failure in actions
From: |
Akim Demaille |
Subject: |
Re: Reporting malloc failure in actions |
Date: |
Sat, 16 Jan 2021 14:22:07 +0100 |
Hi Joe,
> Le 30 déc. 2020 à 07:48, Akim Demaille <akim@lrde.epita.fr> a écrit :
>
> I don't think this area (yyexhaustedlab) would change, but you are right
> it is an internal detail. I'll add something public in the future,
> maybe YYNOMEM. Any idea of a good spelling for such a macro?
> YYEXHAUSTED doesn't sound right.
Done, see https://lists.gnu.org/r/bison-patches/2021-01/msg00056.html.
commit 17fb1d0377493a218b2f4300533cd26e3a9fc22f
Author: Akim Demaille <akim.demaille@gmail.com>
Date: Sat Jan 16 09:17:07 2021 +0100
c: add support for YYNOMEM
Suggested by Joe Nelson <joe@begriffs.com>.
https://lists.gnu.org/r/help-bison/2020-12/msg00020.html
* data/skeletons/glr.c, data/skeletons/yacc.c (YYNOMEM): New.
Use it.
* tests/calc.at: Check it.
* doc/bison.texi: Document it.
Fix incorrect statements about non-existing constants for YYERROR etc.
Cheers!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Reporting malloc failure in actions,
Akim Demaille <=