You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2014/11/09 01:59:20 UTC
[6/8] thrift git commit: THRIFT-2644 Haxe support Client: Haxe Patch:
Jens Geyer
THRIFT-2644 Haxe support
Client: Haxe
Patch: Jens Geyer
This closes #214
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/bd52f1a1
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/bd52f1a1
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/bd52f1a1
Branch: refs/heads/master
Commit: bd52f1a1dd0a45aa01c551cdb15338ff3ac82a02
Parents: 4712f8c
Author: Jens Geyer <je...@apache.org>
Authored: Mon Jul 28 01:25:30 2014 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Sun Nov 9 01:58:25 2014 +0100
----------------------------------------------------------------------
.gitignore | 2 +
compiler/cpp/CMakeLists.txt | 1 +
compiler/cpp/Makefile.am | 1 +
compiler/cpp/compiler.vcxproj | 3 +-
compiler/cpp/compiler.vcxproj.filters | 3 +
compiler/cpp/src/generate/t_haxe_generator.cc | 2949 ++++++++++++++++++
configure.ac | 19 +
lib/haxe/README.md | 75 +
.../org/apache/thrift/AbstractMethodError.hx | 40 +
lib/haxe/src/org/apache/thrift/ArgumentError.hx | 29 +
lib/haxe/src/org/apache/thrift/Limits.hx | 44 +
.../org/apache/thrift/TApplicationException.hx | 102 +
lib/haxe/src/org/apache/thrift/TBase.hx | 66 +
lib/haxe/src/org/apache/thrift/TException.hx | 35 +
.../org/apache/thrift/TFieldRequirementType.hx | 31 +
lib/haxe/src/org/apache/thrift/TProcessor.hx | 30 +
.../src/org/apache/thrift/helper/Int64Map.hx | 265 ++
lib/haxe/src/org/apache/thrift/helper/IntSet.hx | 96 +
.../src/org/apache/thrift/helper/ObjectSet.hx | 96 +
.../src/org/apache/thrift/helper/StringSet.hx | 96 +
.../apache/thrift/meta_data/FieldMetaData.hx | 56 +
.../thrift/meta_data/FieldValueMetaData.hx | 43 +
.../org/apache/thrift/meta_data/ListMetaData.hx | 30 +
.../org/apache/thrift/meta_data/MapMetaData.hx | 32 +
.../org/apache/thrift/meta_data/SetMetaData.hx | 30 +
.../apache/thrift/meta_data/StructMetaData.hx | 30 +
.../apache/thrift/protocol/TBinaryProtocol.hx | 296 ++
.../thrift/protocol/TBinaryProtocolFactory.hx | 45 +
.../src/org/apache/thrift/protocol/TField.hx | 43 +
.../org/apache/thrift/protocol/TJSONProtocol.hx | 1074 +++++++
.../thrift/protocol/TJSONProtocolFactory.hx | 40 +
.../src/org/apache/thrift/protocol/TList.hx | 32 +
lib/haxe/src/org/apache/thrift/protocol/TMap.hx | 34 +
.../src/org/apache/thrift/protocol/TMessage.hx | 41 +
.../org/apache/thrift/protocol/TMessageType.hx | 27 +
.../src/org/apache/thrift/protocol/TProtocol.hx | 82 +
.../thrift/protocol/TProtocolException.hx | 39 +
.../apache/thrift/protocol/TProtocolFactory.hx | 26 +
.../org/apache/thrift/protocol/TProtocolUtil.hx | 135 +
lib/haxe/src/org/apache/thrift/protocol/TSet.hx | 32 +
.../src/org/apache/thrift/protocol/TStruct.hx | 30 +
.../src/org/apache/thrift/protocol/TType.hx | 38 +
.../src/org/apache/thrift/server/TServer.hx | 105 +
.../apache/thrift/server/TServerEventHandler.hx | 41 +
.../org/apache/thrift/server/TSimpleServer.hx | 125 +
.../apache/thrift/transport/TFramedTransport.hx | 142 +
.../thrift/transport/TFramedTransportFactory.hx | 37 +
.../thrift/transport/TFullDuplexHttpClient.hx | 247 ++
.../org/apache/thrift/transport/THttpClient.hx | 183 ++
.../apache/thrift/transport/TServerSocket.hx | 132 +
.../apache/thrift/transport/TServerTransport.hx | 43 +
.../src/org/apache/thrift/transport/TSocket.hx | 296 ++
.../org/apache/thrift/transport/TTransport.hx | 133 +
.../thrift/transport/TTransportException.hx | 36 +
.../thrift/transport/TTransportFactory.hx | 44 +
test/Makefile.am | 4 +
test/haxe/Makefile.am | 52 +
test/haxe/cpp.hxml | 41 +
test/haxe/csharp.hxml | 38 +
test/haxe/flash.hxml | 41 +
test/haxe/java.hxml | 38 +
test/haxe/javascript.hxml | 44 +
test/haxe/make_all.bat | 68 +
test/haxe/make_all.sh | 41 +
test/haxe/neko.hxml | 38 +
test/haxe/php.hxml | 38 +
test/haxe/project.hide | 85 +
test/haxe/python.hxml | 38 +
test/haxe/src/Arguments.hx | 181 ++
test/haxe/src/Main.hx | 48 +
test/haxe/src/TestClient.hx | 696 +++++
test/haxe/src/TestServer.hx | 106 +
test/haxe/src/TestServerEventHandler.hx | 53 +
test/haxe/src/TestServerHandler.hx | 470 +++
tutorial/Makefile.am | 4 +
tutorial/haxe/Makefile.am | 50 +
tutorial/haxe/cpp.hxml | 41 +
tutorial/haxe/csharp.hxml | 38 +
tutorial/haxe/flash.hxml | 41 +
tutorial/haxe/java.hxml | 38 +
tutorial/haxe/javascript.hxml | 44 +
tutorial/haxe/make_all.bat | 68 +
tutorial/haxe/make_all.sh | 41 +
tutorial/haxe/neko.hxml | 38 +
tutorial/haxe/php.hxml | 38 +
tutorial/haxe/project.hide | 105 +
tutorial/haxe/python.hxml | 38 +
tutorial/haxe/src/CalculatorHandler.hx | 101 +
tutorial/haxe/src/Main.hx | 329 ++
tutorial/shared.thrift | 1 +
tutorial/tutorial.thrift | 1 +
91 files changed, 10917 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/bd52f1a1/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index d0f93f7..e9d5d9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -229,6 +229,7 @@ test-driver
/test/go/src/code.google.com/
/test/go/src/gen/
/test/go/src/thrift
+/test/haxe/bin
/test/hs/TestClient
/test/hs/TestServer
/test/py.twisted/_trial_temp/
@@ -250,6 +251,7 @@ test-driver
/tutorial/go/src/shared
/tutorial/go/src/tutorial
/tutorial/go/src/git.apache.org
+/tutorial/haxe/bin
/tutorial/hs/dist/
/tutorial/java/build/
/tutorial/js/build/
http://git-wip-us.apache.org/repos/asf/thrift/blob/bd52f1a1/compiler/cpp/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/compiler/cpp/CMakeLists.txt b/compiler/cpp/CMakeLists.txt
index 606bfcd..4ed8b2b 100644
--- a/compiler/cpp/CMakeLists.txt
+++ b/compiler/cpp/CMakeLists.txt
@@ -120,6 +120,7 @@ THRIFT_ADD_COMPILER(c_glib "Enable compiler for C with Glib" ON)
THRIFT_ADD_COMPILER(cpp "Enable compiler for C++" ON)
THRIFT_ADD_COMPILER(java "Enable compiler for Java" ON)
THRIFT_ADD_COMPILER(as3 "Enable compiler for ActionScript 3" ON)
+THRIFT_ADD_COMPILER(haxe "Enable compiler for Haxe" ON)
THRIFT_ADD_COMPILER(csharp "Enable compiler for C#" ON)
THRIFT_ADD_COMPILER(py "Enable compiler for Python 2.0" ON)
THRIFT_ADD_COMPILER(rb "Enable compiler for Ruby" ON)
http://git-wip-us.apache.org/repos/asf/thrift/blob/bd52f1a1/compiler/cpp/Makefile.am
----------------------------------------------------------------------
diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am
index ee28d0c..d3dadab 100644
--- a/compiler/cpp/Makefile.am
+++ b/compiler/cpp/Makefile.am
@@ -72,6 +72,7 @@ thrift_SOURCES += src/generate/t_c_glib_generator.cc \
src/generate/t_java_generator.cc \
src/generate/t_json_generator.cc \
src/generate/t_as3_generator.cc \
+ src/generate/t_haxe_generator.cc \
src/generate/t_csharp_generator.cc \
src/generate/t_py_generator.cc \
src/generate/t_rb_generator.cc \
http://git-wip-us.apache.org/repos/asf/thrift/blob/bd52f1a1/compiler/cpp/compiler.vcxproj
----------------------------------------------------------------------
diff --git a/compiler/cpp/compiler.vcxproj b/compiler/cpp/compiler.vcxproj
index 1f0bee3..f49106f 100644
--- a/compiler/cpp/compiler.vcxproj
+++ b/compiler/cpp/compiler.vcxproj
@@ -60,7 +60,8 @@
<ClCompile Include="src\generate\t_erl_generator.cc" />
<ClCompile Include="src\generate\t_generator.cc" />
<ClCompile Include="src\generate\t_go_generator.cc" />
- <ClCompile Include="src\generate\t_gv_generator.cc" />
+ <ClCompile Include="src\generate\t_gv_generator.cc" />
+ <ClCompile Include="src\generate\t_haxe_generator.cc" />
<ClCompile Include="src\generate\t_hs_generator.cc" />
<ClCompile Include="src\generate\t_html_generator.cc" />
<ClCompile Include="src\generate\t_javame_generator.cc" />
http://git-wip-us.apache.org/repos/asf/thrift/blob/bd52f1a1/compiler/cpp/compiler.vcxproj.filters
----------------------------------------------------------------------
diff --git a/compiler/cpp/compiler.vcxproj.filters b/compiler/cpp/compiler.vcxproj.filters
index b31918e..c400f7e 100644
--- a/compiler/cpp/compiler.vcxproj.filters
+++ b/compiler/cpp/compiler.vcxproj.filters
@@ -124,6 +124,9 @@
<ClCompile Include="src\generate\t_gv_generator.cc">
<Filter>generate</Filter>
</ClCompile>
+ <ClCompile Include="src\generate\t_haxe_generator.cc">
+ <Filter>generate</Filter>
+ </ClCompile>
<ClCompile Include="src\generate\t_hs_generator.cc">
<Filter>generate</Filter>
</ClCompile>