summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.h
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-12-27 18:26:22 +0000
committerrillig <rillig@NetBSD.org>2021-12-27 18:26:22 +0000
commit7c8de358685bcb54e7d8ca6ff0e68244f27d1ed4 (patch)
tree282898a122c3ef9d0250d414ce5de593c22f18f8 /usr.bin/make/make.h
parent802525406eefb0d4e9eb06aad7b5b03bfd55609c (diff)
make: remove unnecessary words from command line options
Several years ago, the command line options were individual global variables. The global variable could therefore not be named 'silent' since that would have conflicted with local variables of the same name. After moving the global variable to the namespace 'struct CmdOpts', there is no conflict anymore. There doesn't seem to be any risk of naming collisions for the names 'touch' and 'query'. No functional change.
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r--usr.bin/make/make.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h
index 85e7f12ef68..8f7b6cbbce3 100644
--- a/usr.bin/make/make.h
+++ b/usr.bin/make/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.278 2021/12/15 13:03:33 rillig Exp $ */
+/* $NetBSD: make.h,v 1.279 2021/12/27 18:26:22 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -718,19 +718,19 @@ typedef struct CmdOpts {
* -q: if true, do not really make anything, just see if the targets
* are out-of-date
*/
- bool queryFlag;
+ bool query;
/* -r: raw mode, do not load the builtin rules. */
bool noBuiltins;
/* -s: don't echo the shell commands before executing them */
- bool beSilent;
+ bool silent;
/*
* -t: touch the targets if they are out-of-date, but don't actually
* make them
*/
- bool touchFlag;
+ bool touch;
/* -[Vv]: print expanded or unexpanded selected variables */
PrintVarsMode printVars;