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): document InitDefSysIncPath



details:   https://anonhg.NetBSD.org/src/rev/8525d7859e7c
branches:  trunk
changeset: 942118:8525d7859e7c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 07 10:25:28 2020 +0000

description:
make(1): document InitDefSysIncPath

diffstat:

 usr.bin/make/main.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r b7b252fc35b6 -r 8525d7859e7c usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sat Nov 07 10:23:20 2020 +0000
+++ b/usr.bin/make/main.c       Sat Nov 07 10:25:28 2020 +0000
@@ -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 @@
        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 @@
         * 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



Home | Main Index | Thread Index | Old Index