We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a793810 commit b6b0c90Copy full SHA for b6b0c90
src/dynapi/gendynapi.pl
@@ -107,13 +107,19 @@
107
$type =~ s/\s*\*\Z/*/g;
108
$type =~ s/\s*(\*+)\Z/ $1/;
109
#print("SPLIT: ($type, $var)\n");
110
+ my $var_array_suffix = "";
111
+ # parse array suffix
112
+ if ($var =~ /\A.*(\[.*\])\Z/) {
113
+ #print("PARSED ARRAY SUFFIX: [$1] of '$var'\n");
114
+ $var_array_suffix = $1;
115
+ }
116
my $name = chr(ord('a') + $i);
117
if ($i > 0) {
118
$paramstr .= ', ';
119
$argstr .= ',';
120
}
121
my $spc = ($type =~ /\*\Z/) ? '' : ' ';
- $paramstr .= "$type$spc$name";
122
+ $paramstr .= "$type$spc$name$var_array_suffix";
123
$argstr .= "$name";
124
125
$i++;
0 commit comments