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): use proper data type for GNode.type



details:   https://anonhg.NetBSD.org/src/rev/d450ce94172b
branches:  trunk
changeset: 975193:d450ce94172b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 23 08:26:03 2020 +0000

description:
make(1): use proper data type for GNode.type

Theoretically this should show the enum constant names when displaying
the field in the debugger.  This only happens for GNode.flags though,
but not for GNode.type.  Not sure what the exact cause is.

diffstat:

 usr.bin/make/make.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8b93e5dc6d92 -r d450ce94172b usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sun Aug 23 08:21:50 2020 +0000
+++ b/usr.bin/make/make.h       Sun Aug 23 08:26:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.123 2020/08/22 21:42:38 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.124 2020/08/23 08:26:03 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -258,7 +258,7 @@
 
     /* The type of operator used to define the sources (see the OP flags below).
      * XXX: This looks like a wild mixture of type and flags. */
-    int type;
+    GNodeType type;
     /* whether it is involved in this invocation of make */
     GNodeFlags flags;
 



Home | Main Index | Thread Index | Old Index