changeset 200:207aff30ed34

fix generate_stub.pl
author mir3636
date Mon, 19 Dec 2016 19:00:38 +0900
parents 9c85c3a34726
children 90fa6f8246ca
files src/parallel_execution/generate_stub.pl
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl	Mon Dec 19 11:36:18 2016 +0900
+++ b/src/parallel_execution/generate_stub.pl	Mon Dec 19 19:00:38 2016 +0900
@@ -34,7 +34,11 @@
         }
         $dataGear{$name} .= $_;
 	if (/(\w+);$/ and !/^} (\w+)/) {
-	    $var{$name} .= $1 . "\n";
+	    $tmp = $1 . "\n";
+	    if (/{/) {
+	            $tmp = "{" . $';
+	    }
+	    $var{$name} .= $tmp;
 	    $tmp = $`;
 	    $tmp =~ s/^\s*//;
 	    $type{$name} .= $tmp . "\n";