Module Name: src Committed By: rillig Date: Sun Nov 1 12:34:46 UTC 2020
Modified Files: src/usr.bin/make: var.c Log Message: make(1): clean up comments in ApplyModifier_Words To generate a diff of this commit: cvs rdiff -u -r1.632 -r1.633 src/usr.bin/make/var.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/var.c diff -u src/usr.bin/make/var.c:1.632 src/usr.bin/make/var.c:1.633 --- src/usr.bin/make/var.c:1.632 Sat Oct 31 23:23:22 2020 +++ src/usr.bin/make/var.c Sun Nov 1 12:34:45 2020 @@ -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 @@ ApplyModifier_Literal(const char **pp, A 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 @@ ApplyModifier_Words(const char **pp, App 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 @@ ApplyModifier_Words(const char **pp, App 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: