Module Name: src
Committed By: rillig
Date: Sun Aug 2 08:10:36 UTC 2020
Modified Files:
src/usr.bin/make: for.c
Log Message:
make(1): move and condense comment for For_Run
It was simply wrong that calling For_Run had "Side Effects: None".
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/usr.bin/make/for.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/for.c
diff -u src/usr.bin/make/for.c:1.59 src/usr.bin/make/for.c:1.60
--- src/usr.bin/make/for.c:1.59 Sat Aug 1 21:40:49 2020
+++ src/usr.bin/make/for.c Sun Aug 2 08:10:36 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: for.c,v 1.59 2020/08/01 21:40:49 rillig Exp $ */
+/* $NetBSD: for.c,v 1.60 2020/08/02 08:10:36 rillig Exp $ */
/*
* Copyright (c) 1992, The Regents of the University of California.
@@ -30,14 +30,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: for.c,v 1.59 2020/08/01 21:40:49 rillig Exp $";
+static char rcsid[] = "$NetBSD: for.c,v 1.60 2020/08/02 08:10:36 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)for.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: for.c,v 1.59 2020/08/01 21:40:49 rillig Exp $");
+__RCSID("$NetBSD: for.c,v 1.60 2020/08/02 08:10:36 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -311,19 +311,6 @@ For_Accum(char *line)
}
-/*-
- *-----------------------------------------------------------------------
- * For_Run --
- * Run the for loop, imitating the actions of an include file
- *
- * Results:
- * None.
- *
- * Side Effects:
- * None.
- *
- *-----------------------------------------------------------------------
- */
static size_t
for_var_len(const char *var)
@@ -477,6 +464,7 @@ For_Iterate(void *v_arg, size_t *ret_len
return cp;
}
+/* Run the for loop, imitating the actions of an include file. */
void
For_Run(int lineno)
{