Module Name:    src
Committed By:   rillig
Date:           Sat Nov 21 19:21:50 UTC 2020

Modified Files:
        src/usr.bin/make: suff.c

Log Message:
make(1): rename type SuffFlags to SuffixFlags


To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/usr.bin/make/suff.c

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/suff.c
diff -u src/usr.bin/make/suff.c:1.269 src/usr.bin/make/suff.c:1.270
--- src/usr.bin/make/suff.c:1.269	Sat Nov 21 19:18:24 2020
+++ src/usr.bin/make/suff.c	Sat Nov 21 19:21:49 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: suff.c,v 1.269 2020/11/21 19:18:24 rillig Exp $	*/
+/*	$NetBSD: suff.c,v 1.270 2020/11/21 19:21:49 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*	"@(#)suff.c	8.4 (Berkeley) 3/21/94"	*/
-MAKE_RCSID("$NetBSD: suff.c,v 1.269 2020/11/21 19:18:24 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.270 2020/11/21 19:21:49 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -140,14 +140,14 @@ static GNodeList *transforms;
 
 static int sNum = 0;		/* Counter for assigning suffix numbers */
 
-typedef enum SuffFlags {
+typedef enum SuffixFlags {
     SUFF_INCLUDE	= 0x01,	/* One which is #include'd */
     SUFF_LIBRARY	= 0x02,	/* One which contains a library */
     SUFF_NULL		= 0x04	/* The empty suffix */
     /* XXX: Why is SUFF_NULL needed? Wouldn't nameLen == 0 mean the same? */
-} SuffFlags;
+} SuffixFlags;
 
-ENUM_FLAGS_RTTI_3(SuffFlags,
+ENUM_FLAGS_RTTI_3(SuffixFlags,
 		  SUFF_INCLUDE, SUFF_LIBRARY, SUFF_NULL);
 
 typedef List SuffixListList;
@@ -158,7 +158,7 @@ typedef struct Suffix {
     /* Length of the name, to avoid strlen calls */
     size_t nameLen;
     /* Type of suffix */
-    SuffFlags flags;
+    SuffixFlags flags;
     /* The path along which files of this suffix may be found */
     SearchPath *searchPath;
     /* The suffix number; TODO: document the purpose of this number */
@@ -2011,11 +2011,12 @@ PrintSuff(Suffix *suff)
     debug_printf("# \"%s\" (num %d, ref %d)",
 		 suff->name, suff->sNum, suff->refCount);
     if (suff->flags != 0) {
-	char flags_buf[SuffFlags_ToStringSize];
+	char flags_buf[SuffixFlags_ToStringSize];
 
 	debug_printf(" (%s)",
 		     Enum_FlagsToString(flags_buf, sizeof flags_buf,
-					suff->flags, SuffFlags_ToStringSpecs));
+					suff->flags,
+					SuffixFlags_ToStringSpecs));
     }
     debug_printf("\n");
 

Reply via email to