mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
Clean up some bad/missed merges from the alterl merge.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb13729795
commit
cc0c9e98b5
@ -9,6 +9,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sstream>
|
||||
#include "t_erl_generator.h"
|
||||
#include "platform.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -20,7 +21,7 @@ using namespace std;
|
||||
*/
|
||||
void t_erl_generator::init_generator() {
|
||||
// Make output directory
|
||||
mkdir(get_out_dir().c_str(), S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
MKDIR(get_out_dir().c_str());
|
||||
|
||||
// setup export lines
|
||||
export_lines_first_ = true;
|
||||
@ -174,6 +175,7 @@ void t_erl_generator::generate_const(t_const* tconst) {
|
||||
* validate_types method in main.cc
|
||||
*/
|
||||
string t_erl_generator::render_const_value(t_type* type, t_const_value* value) {
|
||||
type = get_true_type(type);
|
||||
std::ostringstream out;
|
||||
|
||||
if (type->is_base_type()) {
|
||||
@ -290,6 +292,8 @@ string t_erl_generator::render_const_value(t_type* type, t_const_value* value) {
|
||||
out << render_const_value(etype, *v_iter);
|
||||
}
|
||||
out << "]";
|
||||
} else {
|
||||
throw "CANNOT GENERATE CONSTANT FOR TYPE: " + type->get_name();
|
||||
}
|
||||
return out.str();
|
||||
}
|
||||
|
@ -8,3 +8,11 @@ all clean docs:
|
||||
|
||||
install: all
|
||||
echo 'No install target, sorry.'
|
||||
|
||||
check: all
|
||||
|
||||
distclean: clean
|
||||
|
||||
# Hack to make "make dist" work.
|
||||
# This should not work, but it appears to.
|
||||
distdir:
|
||||
|
@ -59,11 +59,6 @@ class TestHandler:
|
||||
time.sleep(seconds)
|
||||
print 'done sleeping'
|
||||
|
||||
def testAsync(self, seconds):
|
||||
print 'testAsync(%d) => sleeping...' % seconds
|
||||
time.sleep(seconds)
|
||||
print 'done sleeping'
|
||||
|
||||
handler = TestHandler()
|
||||
processor = ThriftTest.Processor(handler)
|
||||
transport = TSocket.TServerSocket(9090)
|
||||
|
Loading…
Reference in New Issue
Block a user