1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

b2/: rename "again" to "continue"

This commit is contained in:
Werner Almesberger
2012-05-22 15:33:22 -03:00
parent bb809b0d6c
commit 107280b6d5
5 changed files with 14 additions and 13 deletions

View File

@@ -262,11 +262,11 @@ struct subst *subst_break(const char *block)
}
struct subst *subst_again(const char *block)
struct subst *subst_continue(const char *block)
{
struct subst *sub;
sub = alloc_subst(st_again);
sub = alloc_subst(st_continue);
sub->u.tmp = block;
return sub;
}
@@ -372,7 +372,7 @@ static void recurse_fin(struct subst *sub, const struct parent *parent)
break;
case st_break:
/* fall through */
case st_again:
case st_continue:
sub->u.jump = resolve_jump(sub->u.tmp, parent);
break;
default:
@@ -445,8 +445,9 @@ static void recurse_dump(FILE *file, const struct subst *sub, int level)
case st_break:
fprintf(file, "break %s\n", sub->u.jump->u.match.src);
break;
case st_again:
fprintf(file, "again %s\n", sub->u.jump->u.match.src);
case st_continue:
fprintf(file, "continue %s\n",
sub->u.jump->u.match.src);
break;
default:
abort();