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): renumber the flags in GNodeType
details: https://anonhg.NetBSD.org/src/rev/1db2e2028119
branches: trunk
changeset: 957250:1db2e2028119
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Nov 22 10:48:11 2020 +0000
description:
make(1): renumber the flags in GNodeType
In plain C, bit 31 of an enum is not guaranteed to play well with binary
operators. Bit 23 was unused until now, so shift them all down.
The order of the bits is only used in Targ_PrintType.
diffstat:
usr.bin/make/make.h | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r bb78db5d6a6d -r 1db2e2028119 usr.bin/make/make.h
--- a/usr.bin/make/make.h Sun Nov 22 10:27:56 2020 +0000
+++ b/usr.bin/make/make.h Sun Nov 22 10:48:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.212 2020/11/21 19:15:06 rillig Exp $ */
+/* $NetBSD: make.h,v 1.213 2020/11/22 10:48:11 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -260,29 +260,29 @@
/* Attributes applied by PMake */
/* The node is a transformation rule, such as ".c.o". */
- OP_TRANSFORM = 1 << 31,
+ OP_TRANSFORM = 1 << 30,
/* Target is a member of an archive */
/* XXX: How does this differ from OP_ARCHV? */
- OP_MEMBER = 1 << 30,
+ OP_MEMBER = 1 << 29,
/* The node is a library,
* its name has the form "-l<libname>" */
- OP_LIB = 1 << 29,
+ OP_LIB = 1 << 28,
/* The node is an archive member,
* its name has the form "archive(member)" */
/* XXX: How does this differ from OP_MEMBER? */
- OP_ARCHV = 1 << 28,
+ OP_ARCHV = 1 << 27,
/* Target has all the commands it should. Used when parsing to catch
* multiple command groups for a target. Only applies to the dependency
* operators ':' and '!', but not to '::'. */
- OP_HAS_COMMANDS = 1 << 27,
+ OP_HAS_COMMANDS = 1 << 26,
/* The special command "..." has been seen. All further commands from
* this node will be saved on the .END node instead, to be executed at
* the very end. */
- OP_SAVE_CMDS = 1 << 26,
+ OP_SAVE_CMDS = 1 << 25,
/* Already processed by Suff_FindDeps */
- OP_DEPS_FOUND = 1 << 25,
+ OP_DEPS_FOUND = 1 << 24,
/* Node found while expanding .ALLSRC */
- OP_MARK = 1 << 24,
+ OP_MARK = 1 << 23,
OP_NOTARGET = OP_NOTMAIN | OP_USE | OP_EXEC | OP_TRANSFORM
} GNodeType;
Home |
Main Index |
Thread Index |
Old Index