Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): move and condense comment for For_Run



details:   https://anonhg.NetBSD.org/src/rev/49d5e95409ed
branches:  trunk
changeset: 936711:49d5e95409ed
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 02 08:10:36 2020 +0000

description:
make(1): move and condense comment for For_Run

It was simply wrong that calling For_Run had "Side Effects: None".

diffstat:

 usr.bin/make/for.c |  20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diffs (54 lines):

diff -r 9afef481bf5d -r 49d5e95409ed usr.bin/make/for.c
--- a/usr.bin/make/for.c        Sun Aug 02 08:06:35 2020 +0000
+++ b/usr.bin/make/for.c        Sun Aug 02 08:10:36 2020 +0000
@@ -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_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 @@
     return cp;
 }
 
+/* Run the for loop, imitating the actions of an include file. */
 void
 For_Run(int lineno)
 {



Home | Main Index | Thread Index | Old Index