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): rename VarSet_Flags to VarSetFlags
details: https://anonhg.NetBSD.org/src/rev/febc434a792d
branches: trunk
changeset: 942110:febc434a792d
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 07 00:02:54 2020 +0000
description:
make(1): rename VarSet_Flags to VarSetFlags
Most other types don't have an underscore as well.
diffstat:
usr.bin/make/nonints.h | 6 +++---
usr.bin/make/var.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 758231afbd73 -r febc434a792d usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h Fri Nov 06 23:59:21 2020 +0000
+++ b/usr.bin/make/nonints.h Sat Nov 07 00:02:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.151 2020/11/06 23:59:21 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.152 2020/11/07 00:02:54 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -229,7 +229,7 @@
/* Make the variable read-only. No further modification is possible,
* except for another call to Var_Set with the same flag. */
VAR_SET_READONLY = 0x02
-} VarSet_Flags;
+} VarSetFlags;
/* The state of error handling returned by Var_Parse.
*
@@ -288,7 +288,7 @@
void Var_Delete(const char *, GNode *);
void Var_Set(const char *, const char *, GNode *);
-void Var_Set_with_flags(const char *, const char *, GNode *, VarSet_Flags);
+void Var_Set_with_flags(const char *, const char *, GNode *, VarSetFlags);
void Var_Append(const char *, const char *, GNode *);
Boolean Var_Exists(const char *, GNode *);
const char *Var_Value(const char *, GNode *, void **);
diff -r 758231afbd73 -r febc434a792d usr.bin/make/var.c
--- a/usr.bin/make/var.c Fri Nov 06 23:59:21 2020 +0000
+++ b/usr.bin/make/var.c Sat Nov 07 00:02:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.669 2020/11/06 23:11:11 rillig Exp $ */
+/* $NetBSD: var.c,v 1.670 2020/11/07 00:02:54 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -130,7 +130,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.669 2020/11/06 23:11:11 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.670 2020/11/07 00:02:54 rillig Exp $");
#define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
#define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -434,7 +434,7 @@
/* Add a new variable of the given name and value to the given context.
* The name and val arguments are duplicated so they may safely be freed. */
static void
-VarAdd(const char *name, const char *val, GNode *ctxt, VarSet_Flags flags)
+VarAdd(const char *name, const char *val, GNode *ctxt, VarSetFlags flags)
{
HashEntry *he = HashTable_CreateEntry(&ctxt->context, name, NULL);
Var *v = VarNew(he->key /* aliased */, NULL, val,
@@ -768,7 +768,7 @@
/* See Var_Set for documentation. */
void
Var_Set_with_flags(const char *name, const char *val, GNode *ctxt,
- VarSet_Flags flags)
+ VarSetFlags flags)
{
const char *unexpanded_name = name;
char *name_freeIt = NULL;
Home |
Main Index |
Thread Index |
Old Index