mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
b2/: handle attempts to break/continue (in substitutions) without a block
This commit is contained in:
@@ -395,6 +395,8 @@ static void recurse_fin(struct subst *sub, const struct parent *parent)
|
||||
case st_break:
|
||||
/* fall through */
|
||||
case st_continue:
|
||||
if (!parent)
|
||||
yyerror("jump without block");
|
||||
sub->u.jump = resolve_jump(sub->u.tmp, parent);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user