shithub: scc

Download patch

ref: 8fa4d78c9bdcea6207df841df6da28fd2b8170a9
parent: ffe00cd02c8c8d38ddb845c3dc54d20dfce61985
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Feb 15 03:46:51 EST 2017

[cc1] Add names to enums

These two enums are commonly used while you are debugging,
so having a name for them is very helpful.

--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -67,7 +67,7 @@
 };
 
 /* type constructors */
-enum {
+enum typeop {
 	FTN = 1,
 	PTR,
 	ARY,
@@ -75,7 +75,7 @@
 };
 
 /* namespaces */
-enum {
+enum namespaces {
 	NS_DUMMY,
 	NS_IDEN,
 	NS_TAG,