Fix Thrift compiler to support reuse of enums and constants in later constants
authorMark Slee <mcslee@apache.org>
Fri, 27 Jul 2007 22:14:41 +0000 (22:14 +0000)
committerMark Slee <mcslee@apache.org>
Fri, 27 Jul 2007 22:14:41 +0000 (22:14 +0000)
commitd0767c579673c868d1ae15e5979a9301ac1347d7
treef877b2b08a1778f3b885e03fa6d2b158501ad381
parenta46438e11d506433ec7c995ad7d11003ca7d87de
Fix Thrift compiler to support reuse of enums and constants in later constants

Summary: So for example, you can make a constant map of enum values to string identifiers.

Reviewed By: dreiss

Test Plan: ConstantsDemo.thrift in the test folder

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665181 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/parse/t_const_value.h
compiler/cpp/src/parse/t_scope.h
compiler/cpp/src/thrifty.yy
test/ConstantsDemo.thrift