Lines Matching full:prototype

326 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
361 STATE_PROTO => 5, # scanning prototype
1188 my ($prototype, $file) = @_;
1713 # takes a function prototype and the name of the current file being
1717 my $prototype = shift;
1723 $prototype =~ s/^static +//;
1724 $prototype =~ s/^extern +//;
1725 $prototype =~ s/^asmlinkage +//;
1726 $prototype =~ s/^inline +//;
1727 $prototype =~ s/^__inline__ +//;
1728 $prototype =~ s/^__inline +//;
1729 $prototype =~ s/^__always_inline +//;
1730 $prototype =~ s/^noinline +//;
1731 $prototype =~ s/__init +//;
1732 $prototype =~ s/__init_or_module +//;
1733 $prototype =~ s/__meminit +//;
1734 $prototype =~ s/__must_check +//;
1735 $prototype =~ s/__weak +//;
1736 $prototype =~ s/__sched +//;
1737 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1738 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1739 $prototype =~ s/__attribute__\s*\(\(
1748 $prototype =~ s/QEMU_[A-Z_]+ +//;
1766 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
1774 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1775 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1776 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1777 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1778 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1779 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1780 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1781 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1782 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1783 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1784 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1785 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1786 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1787 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1788 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1789 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1790 $prototype =~ m/^(\w+\s+\w+\s*\*+\s*\w+\s*\*+\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
1797 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1854 $prototype = "";
1865 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1868 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1871 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1875 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1880 "$prototype\n";
1882 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1889 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1890 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1891 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1893 ## $prototype = "long sys_$1(void)";
1896 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1897 if ($prototype =~ m/long (sys_.*?),/) {
1898 $prototype =~ s/,/\(/;
1900 $prototype =~ s/\)/\(void\)/;
1903 # now delete all of the odd-number commas in $prototype
1906 my $len = length($prototype);
1911 if (substr($prototype, $ix, 1) eq ',') {
1914 substr($prototype, $ix, 1) = ' ';
1930 $prototype .= $1;
1934 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1935 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1936 $prototype =~ s@^\s+@@gos; # strip leading spaces
1940 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1942 if ($prototype =~ /SYSCALL_DEFINE/) {
1945 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1946 $prototype =~ /DEFINE_SINGLE_EVENT/)
1950 dump_function($prototype, $file);
1971 if( length $prototype ) {
1972 $prototype .= " "
1974 $prototype .= $1 . $2;
1978 dump_declaration($prototype, $file);
1984 $prototype .= $x;
2188 $prototype = "";
2236 # STATE_PROTO: reading a function/whatever prototype.
2276 $prototype = "";
2288 # STATE_INLINE: docbook comments within a prototype.