Lines Matching refs:prototype
326 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1188 my ($prototype, $file) = @_;
1718 my $prototype = shift;
1724 $prototype =~ s/^static +//;
1725 $prototype =~ s/^extern +//;
1726 $prototype =~ s/^asmlinkage +//;
1727 $prototype =~ s/^inline +//;
1728 $prototype =~ s/^__inline__ +//;
1729 $prototype =~ s/^__inline +//;
1730 $prototype =~ s/^__always_inline +//;
1731 $prototype =~ s/^noinline +//;
1732 $prototype =~ s/__init +//;
1733 $prototype =~ s/__init_or_module +//;
1734 $prototype =~ s/__meminit +//;
1735 $prototype =~ s/__must_check +//;
1736 $prototype =~ s/__weak +//;
1737 $prototype =~ s/__sched +//;
1738 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1739 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1740 $prototype =~ s/__attribute__\s*\(\(
1764 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
1772 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1773 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1774 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1775 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1776 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1777 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1778 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1779 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1780 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1781 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1782 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1783 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1784 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1785 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1786 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1787 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1788 $prototype =~ m/^(\w+\s+\w+\s*\*+\s*\w+\s*\*+\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
1795 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1852 $prototype = "";
1863 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1866 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1869 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1873 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1878 "$prototype\n";
1880 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1887 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1889 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1894 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1895 if ($prototype =~ m/long (sys_.*?),/) {
1896 $prototype =~ s/,/\(/;
1898 $prototype =~ s/\)/\(void\)/;
1904 my $len = length($prototype);
1909 if (substr($prototype, $ix, 1) eq ',') {
1912 substr($prototype, $ix, 1) = ' ';
1928 $prototype .= $1;
1932 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1933 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1934 $prototype =~ s@^\s+@@gos; # strip leading spaces
1938 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1940 if ($prototype =~ /SYSCALL_DEFINE/) {
1943 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1944 $prototype =~ /DEFINE_SINGLE_EVENT/)
1948 dump_function($prototype, $file);
1969 if( length $prototype ) {
1970 $prototype .= " "
1972 $prototype .= $1 . $2;
1976 dump_declaration($prototype, $file);
1982 $prototype .= $x;
2186 $prototype = "";
2274 $prototype = "";