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: remove unused Expr.varFlags
details: https://anonhg.NetBSD.org/src/rev/357890a9a255
branches: trunk
changeset: 982185:357890a9a255
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Apr 03 22:06:23 2021 +0000
description:
make: remove unused Expr.varFlags
No functional change.
diffstat:
usr.bin/make/var.c | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diffs (76 lines):
diff -r 6d37a7d28054 -r 357890a9a255 usr.bin/make/var.c
--- a/usr.bin/make/var.c Sat Apr 03 22:02:59 2021 +0000
+++ b/usr.bin/make/var.c Sat Apr 03 22:06:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.899 2021/04/03 22:02:59 rillig Exp $ */
+/* $NetBSD: var.c,v 1.900 2021/04/03 22:06:23 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -140,7 +140,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.899 2021/04/03 22:02:59 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.900 2021/04/03 22:06:23 rillig Exp $");
typedef enum VarFlags {
VFL_NONE = 0,
@@ -347,10 +347,6 @@
GNode *SCOPE_GLOBAL;
GNode *SCOPE_INTERNAL;
-ENUM_FLAGS_RTTI_6(VarFlags,
- VFL_IN_USE, VFL_FROM_ENV,
- VFL_EXPORTED, VFL_REEXPORT, VFL_FROM_CMD, VFL_READONLY);
-
static VarExportedMode var_exportedVars = VAR_EXPORTED_NONE;
@@ -2059,7 +2055,6 @@
typedef struct Expr {
const char *name;
FStr value;
- VarFlags varFlags;
VarEvalFlags const_member eflags;
GNode *const_member scope;
ExprDefined defined;
@@ -4314,18 +4309,17 @@
}
#if __STDC_VERSION__ >= 199901L
-#define Expr_Literal(name, value, vflags, eflags, scope, defined) \
- { name, value, vflags, eflags, scope, defined }
+#define Expr_Literal(name, value, eflags, scope, defined) \
+ { name, value, eflags, scope, defined }
#else
MAKE_INLINE Expr
-Expr_Literal(const char *name, FStr value, VarFlags vflags,
+Expr_Literal(const char *name, FStr value,
VarEvalFlags eflags, GNode *scope, ExprDefined defined)
{
Expr expr;
expr.name = name;
expr.value = value;
- expr.varFlags = vflags;
expr.eflags = eflags;
expr.scope = scope;
expr.defined = defined;
@@ -4389,7 +4383,7 @@
bool dynamic;
const char *extramodifiers;
Var *v;
- Expr expr = Expr_Literal(NULL, FStr_InitRefer(NULL), VFL_NONE, eflags,
+ Expr expr = Expr_Literal(NULL, FStr_InitRefer(NULL), eflags,
scope, DEF_REGULAR);
DEBUG2(VAR, "Var_Parse: %s (%s)\n", start,
@@ -4423,7 +4417,6 @@
}
expr.name = v->name.str;
- expr.varFlags = v->flags;
if (v->flags & VFL_IN_USE)
Fatal("Variable %s is recursive.", v->name.str);
Home |
Main Index |
Thread Index |
Old Index