Module Name:    src
Committed By:   rillig
Date:           Sun Aug 23 08:26:04 UTC 2020

Modified Files:
        src/usr.bin/make: make.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/usr.bin/make/make.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/make.h
diff -u src/usr.bin/make/make.h:1.123 src/usr.bin/make/make.h:1.124
--- src/usr.bin/make/make.h:1.123	Sat Aug 22 21:42:38 2020
+++ src/usr.bin/make/make.h	Sun Aug 23 08:26:03 2020
@@ -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 @@ typedef struct GNode {
 
     /* 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;
 

Reply via email to