Lines Matching refs:prototype
326 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1200 my ($prototype, $file) = @_;
1769 my $prototype = shift;
1775 $prototype =~ s/^static +//;
1776 $prototype =~ s/^extern +//;
1777 $prototype =~ s/^asmlinkage +//;
1778 $prototype =~ s/^inline +//;
1779 $prototype =~ s/^__inline__ +//;
1780 $prototype =~ s/^__inline +//;
1781 $prototype =~ s/^__always_inline +//;
1782 $prototype =~ s/^noinline +//;
1783 $prototype =~ s/__init +//;
1784 $prototype =~ s/__init_or_module +//;
1785 $prototype =~ s/__deprecated +//;
1786 $prototype =~ s/__flatten +//;
1787 $prototype =~ s/__meminit +//;
1788 $prototype =~ s/__must_check +//;
1789 $prototype =~ s/__weak +//;
1790 $prototype =~ s/__sched +//;
1791 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1792 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1793 $prototype =~ s/__attribute_const__ +//;
1794 $prototype =~ s/__attribute__\s*\(\(
1824 if ($define && $prototype =~ m/^()($name)\s+/) {
1832 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1833 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1834 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1841 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1903 $prototype = "";
1914 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1917 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1920 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1924 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1929 "$prototype\n";
1931 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1939 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1941 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1946 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1947 if ($prototype =~ m/long (sys_.*?),/) {
1948 $prototype =~ s/,/\(/;
1950 $prototype =~ s/\)/\(void\)/;
1956 my $len = length($prototype);
1961 if (substr($prototype, $ix, 1) eq ',') {
1964 substr($prototype, $ix, 1) = ' ';
1980 $prototype .= $1;
1984 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1985 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1986 $prototype =~ s@^\s+@@gos; # strip leading spaces
1990 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1992 if ($prototype =~ /SYSCALL_DEFINE/) {
1995 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1996 $prototype =~ /DEFINE_SINGLE_EVENT/)
2000 dump_function($prototype, $file);
2021 if( length $prototype ) {
2022 $prototype .= " "
2024 $prototype .= $1 . $2;
2028 dump_declaration($prototype, $file);
2034 $prototype .= $x;
2259 $prototype = "";
2347 $prototype = "";