aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 80428be3411a..125b906cd1d4 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1883,6 +1883,31 @@ sub dump_typedef($$) {
1883 my $file = shift; 1883 my $file = shift;
1884 1884
1885 $x =~ s@/\*.*?\*/@@gos; # strip comments. 1885 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1886
1887 # Parse function prototypes
1888 if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/) {
1889 # Function typedefs
1890 $return_type = $1;
1891 $declaration_name = $2;
1892 my $args = $3;
1893
1894 create_parameterlist($args, ',', $file);
1895
1896 output_declaration($declaration_name,
1897 'function',
1898 {'function' => $declaration_name,
1899 'module' => $modulename,
1900 'functiontype' => $return_type,
1901 'parameterlist' => \@parameterlist,
1902 'parameterdescs' => \%parameterdescs,
1903 'parametertypes' => \%parametertypes,
1904 'sectionlist' => \@sectionlist,
1905 'sections' => \%sections,
1906 'purpose' => $declaration_purpose
1907 });
1908 return;
1909 }
1910
1886 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) { 1911 while (($x =~ /\(*.\)\s*;$/) || ($x =~ /\[*.\]\s*;$/)) {
1887 $x =~ s/\(*.\)\s*;$/;/; 1912 $x =~ s/\(*.\)\s*;$/;/;
1888 $x =~ s/\[*.\]\s*;$/;/; 1913 $x =~ s/\[*.\]\s*;$/;/;