398
398
} elsif ($declaration =~ s/^\s*((?:G_CONST_RETURN|G_GNUC_UNUSED|unsigned long|unsigned short|signed long|signed short|unsigned|signed|long|short|volatile|const)\s+)*((?:struct\b|enum\b)?\s*\w+)\s*((?:(?:const\b|restrict\b)?\s*\*?\s*(?:const\b|restrict\b)?\s*)*)(\w+)?\s*((?:\[\S*\])*)\s*[,\n]//) {
399
399
my $pre = defined($1) ? $1 : "";
401
401
my $ptr = defined($3) ? $3 : "";
402
402
my $name = defined($4) ? $4 : "";
408
408
if ($ptr && $ptr !~ m/\*$/) { $ptr .= " "; }
410
410
if (($name eq "") && $pre =~ m/^((un)?signed .*)\s?/ ) {
419
419
$name = "Param" . ($param_num + 1);
421
$output .= &OutputParam ($symbol, $name, $template_exists, 1,
421
$output .= &OutputParam ($symbol, $name, $template_exists, 1, "");
424
423
# Try to match parameters which are functions (keep in sync with gtkdoc-mkdb)
426
425
} elsif ($declaration =~ s/^(const\s+|G_CONST_RETURN\s+|unsigned\s+)*(struct\s+)?(\w+)\s*(\**)\s*(?:restrict\b)?\s*(const\s+)?\(\s*\*+\s*(\w+)\s*\)\s*\(([^)]*)\)\s*[,\n]//) {
428
427
$output .= &OutputParam ($symbol, $name, $template_exists, 1,