Mercurial > hg > Gears > Gears
changeset 813:89716ab0376e
...
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 17 Jan 2021 20:23:53 +0900 |
parents | bd4a058a31af |
children | 1d2b7cea08ef |
files | src/parallel_execution/generate_stub.pl |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl Sun Jan 17 20:22:35 2021 +0900 +++ b/src/parallel_execution/generate_stub.pl Sun Jan 17 20:23:53 2021 +0900 @@ -315,6 +315,11 @@ debug_print("getDataGear",__LINE__, $_) if $opt_debug; my $ttype = $1; my $tname = $2; + if (($ttype =~ /}/) && ($tname eq $name)) { # $_ == } StackGenerics; + $inTypedef = 0; + next; + } + if ($ttype =~ /^(union|struct|const|enum)\s*(\w+)/) { my $structType = $1; my $vname = $2; @@ -337,6 +342,7 @@ for my $tname (keys %$tname2type) { $var{$name}->{$tname} = $tname2type->{$tname}; } + } if (/^}/) { debug_print("getDataGear",__LINE__, $_) if $opt_debug; @@ -1026,7 +1032,7 @@ print $fd "${prev}goto meta(${arg_context}, C_$next);\n"; next; } - } elsif(/^.*(struct|union)?\s(\w+)\*\s(\w+)\s?[=;]/) { + } elsif(/^.*(struct|union)?\s(\w+)\*\s(\w+)\s?[=;]/) { # TODO: FIX!!! debug_print("generateDataGear",__LINE__, $_) if $opt_debug; my $type = $2; my $varName = $3;