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): initialize all CmdOpts fiels



details:   https://anonhg.NetBSD.org/src/rev/91e859a1e08e
branches:  trunk
changeset: 941691:91e859a1e08e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Oct 27 07:16:27 2020 +0000

description:
make(1): initialize all CmdOpts fiels

diffstat:

 usr.bin/make/main.c |  12 ++++++------
 usr.bin/make/var.c  |   6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (67 lines):

diff -r 0e075497f95b -r 91e859a1e08e usr.bin/make/main.c
--- a/usr.bin/make/main.c       Tue Oct 27 07:13:02 2020 +0000
+++ b/usr.bin/make/main.c       Tue Oct 27 07:16:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.395 2020/10/27 07:13:02 rillig Exp $        */
+/*     $NetBSD: main.c,v 1.396 2020/10/27 07:16:27 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.395 2020/10/27 07:13:02 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.396 2020/10/27 07:16:27 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
            "The Regents of the University of California.  "
@@ -1067,7 +1067,7 @@
        opts.debug = 0;                 /* No debug verbosity, please. */
        /* opts.debug_file has been initialized earlier */
        opts.debugVflag = FALSE;
-       /* TODO: checkEnvFirst = FALSE; */
+       opts.checkEnvFirst = FALSE;
        opts.makefiles = Lst_New();
        opts.ignoreErrors = FALSE;      /* Pay attention to non-zero returns */
        opts.maxJobs = DEFMAXLOCAL;     /* Set default local max concurrency */
@@ -1080,9 +1080,9 @@
        opts.touchFlag = FALSE;         /* Actually update targets */
        opts.printVars = 0;
        opts.variables = Lst_New();
-       /* TODO: parseWarnFatal = FALSE; */
-       /* TODO: enterFlag = FALSE; */
-       /* TODO: varNoExportEnv = FALSE; */
+       opts.parseWarnFatal = FALSE;
+       opts.enterFlag = FALSE;
+       opts.varNoExportEnv = FALSE;
        opts.create = Lst_New();
 }
 
diff -r 0e075497f95b -r 91e859a1e08e usr.bin/make/var.c
--- a/usr.bin/make/var.c        Tue Oct 27 07:13:02 2020 +0000
+++ b/usr.bin/make/var.c        Tue Oct 27 07:16:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.590 2020/10/26 21:34:10 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.591 2020/10/27 07:16:27 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.590 2020/10/26 21:34:10 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.591 2020/10/27 07:16:27 rillig Exp $");
 
 #define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
 #define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -176,7 +176,7 @@
  *        list. On this list are located the structures describing such
  *        local variables as $(@) and $(*)
  * The four contexts are searched in the reverse order from which they are
- * listed (but see checkEnvFirst).
+ * listed (but see opts.checkEnvFirst).
  */
 GNode          *VAR_INTERNAL;  /* variables from make itself */
 GNode          *VAR_GLOBAL;    /* variables from the makefile */



Home | Main Index | Thread Index | Old Index