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): clean up comments in ApplyModifier_Words



details:   https://anonhg.NetBSD.org/src/rev/dc6399bc2868
branches:  trunk
changeset: 945555:dc6399bc2868
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 01 12:34:45 2020 +0000

description:
make(1): clean up comments in ApplyModifier_Words

diffstat:

 usr.bin/make/var.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 5b8e32821634 -r dc6399bc2868 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sun Nov 01 12:13:21 2020 +0000
+++ b/usr.bin/make/var.c        Sun Nov 01 12:34:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.632 2020/10/31 23:23:22 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.633 2020/11/01 12:34:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -130,7 +130,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.632 2020/10/31 23:23:22 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.633 2020/11/01 12:34:45 rillig Exp $");
 
 #define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
 #define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -2114,7 +2114,8 @@
     return AMR_OK;
 }
 
-static Boolean TryParseTime(const char **pp, time_t *out_time)
+static Boolean
+TryParseTime(const char **pp, time_t *out_time)
 {
     char *end;
     unsigned long n;
@@ -2720,8 +2721,8 @@
        goto bad_modifier;      /* Found junk instead of ".." */
 
     /*
-     * Now seldata is properly filled in, but we still have to check for 0 as
-     * a special case.
+     * Now first and last are properly filled in, but we still have to check
+     * for 0 as a special case.
      */
     if (first == 0 && last == 0) {
        /* ":[0]" or perhaps ":[0..0]" */
@@ -2734,7 +2735,7 @@
     if (first == 0 || last == 0)
        goto bad_modifier;
 
-    /* Normal case: select the words described by seldata. */
+    /* Normal case: select the words described by first and last. */
     st->newVal = VarSelectWords(st->sep, st->oneBigWord, st->val, first, last);
 
 ok:



Home | Main Index | Thread Index | Old Index