You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/03/24 01:28:40 UTC
svn commit: r757617 -
/incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc
Author: bryanduxbury
Date: Tue Mar 24 00:28:40 2009
New Revision: 757617
URL: http://svn.apache.org/viewvc?rev=757617&view=rev
Log:
THRIFT-266. erlang: Erlang atoms must always start with lower-case character
Forces first char of atom to lowercase for struct fields.
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc?rev=757617&r1=757616&r2=757617&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc Tue Mar 24 00:28:40 2009
@@ -489,8 +489,9 @@
out << ", ";
hrl_out << ", ";
}
- out << (*m_iter)->get_name();
- hrl_out << (*m_iter)->get_name();
+ std::string name = uncapitalize((*m_iter)->get_name());
+ out << name;
+ hrl_out << name;
}
out << "})." << endl;
hrl_out << "})." << endl;