Avoid a filename collision on case-insensitive filesystems.
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:56:48 +0000 (22:56 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:56:48 +0000 (22:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666373 13f79535-47bb-0310-9956-ffa450edef68

test/ConstantsDemo.thrift

index dc12bb0..5249f79 100644 (file)
@@ -5,19 +5,19 @@ struct thing {
   2: i32 goodbye
 }
 
-enum constants {
+enum enumconstants {
   ONE = 1,
   TWO = 2
 }
 
 struct thing2 {
-  1: constants val = TWO
+  1: enumconstants val = TWO
 }
 
 typedef i32 myIntType
 const myIntType myInt = 3
 
-const map<constants,string> GEN_ENUM_NAMES = {ONE : "HOWDY", TWO: PARTNER}
+const map<enumconstants,string> GEN_ENUM_NAMES = {ONE : "HOWDY", TWO: PARTNER}
 
 const i32 hex_const = 0x0001F