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
diff --git a/tutorial/tutorial.thrift b/tutorial/tutorial.thrift
index 323c96a..575afcb 100755
--- a/tutorial/tutorial.thrift
+++ b/tutorial/tutorial.thrift
@@ -44,7 +44,7 @@
* Thrift files can namespace, package, or prefix their output in various
* target languages.
*/
-cpp_namespace tutorial
+namespace cpp tutorial
java_package tutorial
php_namespace tutorial
perl_package tutorial