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/2ed74146ece3
branches:  trunk
changeset: 937661:2ed74146ece3
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 3e4c16c46b4f -r 2ed74146ece3 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