etch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vei...@apache.org
Subject svn commit: r1460560 - in /etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler: vf_cpp.vm vf_h.vm
Date Mon, 25 Mar 2013 09:37:24 GMT
Author: veithm
Date: Mon Mar 25 09:37:24 2013
New Revision: 1460560

URL: http://svn.apache.org/r1460560
Log:
ETCH-261 Splitting up large initParams function in CPP code generator

Change-Id: Ie3b291fc3e0a4817f4a9628a79629ab7e6debd70

Modified:
    etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
    etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_h.vm

Modified: etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm?rev=1460560&r1=1460559&r2=1460560&view=diff
==============================================================================
--- etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
(original)
+++ etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
Mon Mar 25 09:37:24 2013
@@ -293,8 +293,19 @@ status_t $vf::InitParams(EtchRuntime* ru
   capu::SmartPointer<EtchValidator> tmpValue;
 #foreach( $n in $intf.iterator() )
 #if ($n.isEnumx() || $n.isStruct() || $n.isExcept() || $n.isMessage())
+#if ($ctr > 0 && $ctr % 10 == 0)
 
+  $vf::InitParams${ctr}(runtime);
+
+  return ETCH_OK;
+}
+
+status_t $vf::InitParams${ctr}(EtchRuntime* runtime)
+{
+  capu::SmartPointer<EtchValidator> tmpValue;
+#end
 #set( $ctr = $ctr + 1 )
+
   // params for $n.name()
 #if ($n.isStruct() || $n.isExcept())
 #foreach( $param in $n.getAllParameters() )

Modified: etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_h.vm
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_h.vm?rev=1460560&r1=1460559&r2=1460560&view=diff
==============================================================================
--- etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_h.vm
(original)
+++ etch/trunk/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_h.vm
Mon Mar 25 09:37:24 2013
@@ -83,8 +83,8 @@ namespace $namespace {
 #set( $ctr = 0 )
 #foreach( $n in $intf.iterator() )
 #if ($n.isEnumx() || $n.isStruct() || $n.isExcept() || $n.isMessage())
-#if ($ctr > 0 && $ctr % 100 == 0)
-    static status_t InitParams${ctr}();
+#if ($ctr > 0 && $ctr % 10 == 0)
+    static status_t InitParams${ctr}(EtchRuntime* runtime);
 #end
 #set( $ctr = $ctr + 1 )
 #end



Mime
View raw message