Module Name: src
Committed By: rillig
Date: Tue Oct 20 23:15:23 UTC 2020
Modified Files:
src/usr.bin/make: var.c
Log Message:
make(1): document parameter to Var_Parse
To generate a diff of this commit:
cvs rdiff -u -r1.578 -r1.579 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.578 src/usr.bin/make/var.c:1.579
--- src/usr.bin/make/var.c:1.578 Sun Oct 18 17:19:54 2020
+++ src/usr.bin/make/var.c Tue Oct 20 23:15:23 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.578 2020/10/18 17:19:54 rillig Exp $ */
+/* $NetBSD: var.c,v 1.579 2020/10/20 23:15:23 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.578 2020/10/18 17:19:54 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.579 2020/10/20 23:15:23 rillig Exp $");
#define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
#define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -3445,6 +3445,10 @@ ValidShortVarname(char varname, const ch
* modifiers and find its value by applying the modifiers to the
* original value.
*
+ * When parsing a condition in ParseEmptyArg, pp may also point to
+ * the "y" of "empty(VARNAME:Modifiers)", which is syntactically
+ * identical.
+ *
* Input:
* str The string to parse
* ctxt The context for the variable