Module Name:    src
Committed By:   rillig
Date:           Sat Nov  7 10:25:28 UTC 2020

Modified Files:
        src/usr.bin/make: main.c

Log Message:
make(1): document InitDefSysIncPath


To generate a diff of this commit:
cvs rdiff -u -r1.433 -r1.434 src/usr.bin/make/main.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/main.c
diff -u src/usr.bin/make/main.c:1.433 src/usr.bin/make/main.c:1.434
--- src/usr.bin/make/main.c:1.433	Sat Nov  7 10:16:18 2020
+++ src/usr.bin/make/main.c	Sat Nov  7 10:25:28 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.433 2020/11/07 10:16:18 rillig Exp $	*/
+/*	$NetBSD: main.c,v 1.434 2020/11/07 10:25:28 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -118,7 +118,7 @@
 #include "trace.h"
 
 /*	"@(#)main.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: main.c,v 1.433 2020/11/07 10:16:18 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.434 2020/11/07 10:25:28 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
 	    "The Regents of the University of California.  "
@@ -1161,6 +1161,8 @@ InitVarMake(const char *argv0)
 	Var_Set(".MAKE", make, VAR_GLOBAL);
 }
 
+/* Add the directories from the colon-separated syspath to defSysIncPath.
+ * After returning, the contents of syspath is unspecified. */
 static void
 InitDefSysIncPath(char *syspath)
 {
@@ -1172,7 +1174,6 @@ InitDefSysIncPath(char *syspath)
 	 * add the directories from the DEFSYSPATH (more than one may be given
 	 * as dir1:...:dirn) to the system include path.
 	 */
-	/* XXX: mismatch: the -m option sets sysIncPath, not syspath */
 	if (syspath == NULL || syspath[0] == '\0')
 		syspath = defsyspath;
 	else

Reply via email to