diff options
Diffstat (limited to 'for.c')
| -rw-r--r-- | for.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: for.c,v 1.168 2022/06/12 16:09:21 rillig Exp $ */ +/* $NetBSD: for.c,v 1.170 2022/09/03 00:50:07 rillig Exp $ */ /* * Copyright (c) 1992, The Regents of the University of California. @@ -58,7 +58,7 @@ #include "make.h" /* "@(#)for.c 8.1 (Berkeley) 6/6/93" */ -MAKE_RCSID("$NetBSD: for.c,v 1.168 2022/06/12 16:09:21 rillig Exp $"); +MAKE_RCSID("$NetBSD: for.c,v 1.170 2022/09/03 00:50:07 rillig Exp $"); typedef struct ForLoop { @@ -490,6 +490,13 @@ For_NextIteration(ForLoop *f, Buffer *body) return true; } +/* Break out of the .for loop. */ +void +For_Break(ForLoop *f) +{ + f->nextItem = (unsigned int)f->items.len; +} + /* Run the .for loop, imitating the actions of an include file. */ void For_Run(unsigned headLineno, unsigned bodyReadLines) |
