Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Gautier committed Nov 23, 2016
2 parents cbd6cb1 + 4163230 commit bcc0a07
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion betty-doc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,7 @@ ($$)
$noret = 1;
} elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+\s*\*)\s*(?:\**\s*)?([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
$prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
Expand Down
3 changes: 3 additions & 0 deletions betty-style.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3833,6 +3833,9 @@ sub process {
# and number of lines per function
if ($line =~ /.*}.*/) {
$inscope--;
if ($inscope == 0) {
$funclines = 0;
}
}

if ($inscope >= 1) {
Expand Down
12 changes: 12 additions & 0 deletions tests/doc/doc9.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ int (*get_op_func(char *s)) (int, int)
}
return (NULL);
}

/**
* get_valid_type - Test
*
* @s: Test
*
* Return: Test
*/
char *(*get_valid_type(char s))(void)
{
return (NULL);
}
1 change: 1 addition & 0 deletions tests/doc/doc9.expected.stdout
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
get_op_func
get_op_func
get_valid_type

0 comments on commit bcc0a07

Please sign in to comment.