Lines Matching full:prototype
326 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
361 STATE_PROTO => 5, # scanning prototype
1188 my ($prototype, $file) = @_;
1714 # takes a function prototype and the name of the current file being
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*\(\(
1749 $prototype =~ s/QEMU_[A-Z_]+ +//;
1767 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
1775 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1776 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1777 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1778 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1779 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1780 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1781 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1782 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1783 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1784 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1785 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1786 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1787 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1788 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1789 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1790 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1791 $prototype =~ m/^(\w+\s+\w+\s*\*+\s*\w+\s*\*+\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
1798 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1855 $prototype = "";
1866 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1869 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1872 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1876 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1881 "$prototype\n";
1883 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1890 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1891 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1892 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1894 ## $prototype = "long sys_$1(void)";
1897 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1898 if ($prototype =~ m/long (sys_.*?),/) {
1899 $prototype =~ s/,/\(/;
1901 $prototype =~ s/\)/\(void\)/;
1904 # now delete all of the odd-number commas in $prototype
1907 my $len = length($prototype);
1912 if (substr($prototype, $ix, 1) eq ',') {
1915 substr($prototype, $ix, 1) = ' ';
1931 $prototype .= $1;
1935 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1936 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1937 $prototype =~ s@^\s+@@gos; # strip leading spaces
1941 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1943 if ($prototype =~ /SYSCALL_DEFINE/) {
1946 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1947 $prototype =~ /DEFINE_SINGLE_EVENT/)
1951 dump_function($prototype, $file);
1972 if( length $prototype ) {
1973 $prototype .= " "
1975 $prototype .= $1 . $2;
1979 dump_declaration($prototype, $file);
1985 $prototype .= $x;
2189 $prototype = "";
2237 # STATE_PROTO: reading a function/whatever prototype.
2277 $prototype = "";
2289 # STATE_INLINE: docbook comments within a prototype.