From: Mark Slee Date: Thu, 12 Oct 2006 03:58:49 +0000 (+0000) Subject: Generate .cpp files instead of .cc in Thrift X-Git-Tag: 0.2.0~1643 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=65681d061ec434b7466872824ad41eacf68cd3c7;p=common%2Fthrift.git Generate .cpp files instead of .cc in Thrift Reviewed By: aditya Notes: Be consistent on cpp, dunno why ever chose cc git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664829 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_cpp_generator.cc b/compiler/cpp/src/generate/t_cpp_generator.cc index 46f71c19..28c9913a 100644 --- a/compiler/cpp/src/generate/t_cpp_generator.cc +++ b/compiler/cpp/src/generate/t_cpp_generator.cc @@ -18,7 +18,7 @@ void t_cpp_generator::init_generator(t_program* tprogram) { string f_types_name = string(T_CPP_DIR)+"/"+program_name_+"_types.h"; f_types_.open(f_types_name.c_str()); - string f_types_impl_name = string(T_CPP_DIR)+"/"+program_name_+"_types.cc"; + string f_types_impl_name = string(T_CPP_DIR)+"/"+program_name_+"_types.cpp"; f_types_impl_.open(f_types_impl_name.c_str()); // Print header @@ -457,7 +457,7 @@ void t_cpp_generator::generate_service(t_service* tservice) { endl; // Service implementation file includes - string f_service_name = string(T_CPP_DIR)+"/"+svcname+".cc"; + string f_service_name = string(T_CPP_DIR)+"/"+svcname+".cpp"; f_service_.open(f_service_name.c_str()); f_service_ << autogen_comment();