From: Jay Freeman (saurik) Date: Wed, 18 Nov 2015 23:07:49 +0000 (-0800) Subject: YYABORT does not actually lead to a parse failure. X-Git-Tag: v0.9.590~303 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/44fc505c95ac105c4d362e3f23df37d78f3b9a0b?ds=inline YYABORT does not actually lead to a parse failure. --- diff --git a/Cycript.yy.in b/Cycript.yy.in index 0c5d044..0f45ef8 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -1707,7 +1707,7 @@ Statement__ /* }}} */ /* Cycript (C): extern "C" {{{ */ Statement__ - : "extern" StringLiteral { if (strcmp($2->Value(), "C") != 0) YYABORT; } TypedIdentifier { if ($4->identifier_ == NULL) error($4->location_, "expected identifier"); } Terminator { $$ = CYNew CYExternal($2, $4); } + : "extern" StringLiteral { if (strcmp($2->Value(), "C") != 0) error(@2, "unknown extern binding"); } TypedIdentifier { if ($4->identifier_ == NULL) error($4->location_, "expected identifier"); } Terminator { $$ = CYNew CYExternal($2, $4); } ; /* }}} */