Skip to content

Commit 31c1232

Browse files
committed
autodoc.pl - dont warn about structs in type definitions
silences: 'struct regexp' not \w+ in 'Ayh||struct regexp' in pod/perlreapi.pod at autodoc.pl line 536, <F> line 623.
1 parent 1232708 commit 31c1232

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autodoc.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ ($$)
534534
die "'u' flag must also have 'm' or 'y' flags' for $element_name"
535535
if $flags =~ /u/ && $flags !~ /[my]/;
536536
warn ("'$element_name' not \\w+ in '$proto_in_file' in $file")
537-
if $flags !~ /N/ && $element_name !~ / ^ [_[:alpha:]] \w* $ /x;
537+
if $flags !~ /N/ &&
538+
$element_name !~ / ^ (?:struct\s+)? [_[:alpha:]] \w* $ /x;
538539

539540
if ($flags =~ /#/) {
540541
die "Return type must be empty for '$element_name'"

0 commit comments

Comments
 (0)