Make the C++ generator use non-hardcoded namespaces.
authorDavid Reiss <dreiss@apache.org>
Wed, 27 Feb 2008 01:55:17 +0000 (01:55 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 27 Feb 2008 01:55:17 +0000 (01:55 +0000)
commit9a08dc6184cd0c3fd3d774fcf3f0a4233e28975f
treea047210c4603c6d119639b2112049e5ebce8136d
parent79eca14125c391c6011f4ffb14bfea898bc6c2f9
Make the C++ generator use non-hardcoded namespaces.

- Make the C++ generator use program->get_namespace("cpp")
  instead of program->get_cpp_namespace()
- Eliminate the explicit "cpp_namespace" in t_program.
- Deprecate the cpp_namespace token.
- Update example .thrift files and syntax files.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665513 13f79535-47bb-0310-9956-ffa450edef68
14 files changed:
compiler/cpp/src/generate/t_cpp_generator.cc
compiler/cpp/src/parse/t_program.h
compiler/cpp/src/thrifty.yy
test/ConstantsDemo.thrift
test/DebugProtoTest.thrift
test/DenseLinkingTest.thrift
test/DocTest.thrift
test/OptionalRequiredTest.thrift
test/StressTest.thrift
test/ThriftTest.thrift
thrift.el
thrift.vim
tutorial/shared.thrift
tutorial/tutorial.thrift