[hackers] [scc] [cc1] Add names to enums || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 15 Feb 2017 09:02:36 +0100 (CET)

commit 2415117f72d9b53f10e6ced86efc9a34f527ed15
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Feb 15 08:46:51 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Feb 15 08:46:51 2017 +0100

    [cc1] Add names to enums
    
    These two enums are commonly used while you are debugging,
    so having a name for them is very helpful.

diff --git a/cc1/cc1.h b/cc1/cc1.h
index a543d7b..704c37e 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -67,7 +67,7 @@ enum {
 };
 
 /* type constructors */
-enum {
+enum typeop {
         FTN = 1,
         PTR,
         ARY,
_AT_@ -75,7 +75,7 @@ enum {
 };
 
 /* namespaces */
-enum {
+enum namespaces {
         NS_DUMMY,
         NS_IDEN,
         NS_TAG,
Received on Wed Feb 15 2017 - 09:02:36 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 15 2017 - 09:12:24 CET