• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/

Lines Matching refs:prototype

254 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
274 # 3 - scanning prototype.
1444 my ($prototype, $file) = @_;
1766 # takes a function prototype and the name of the current file being
1770 my $prototype = shift;
1773 $prototype =~ s/^static +//;
1774 $prototype =~ s/^extern +//;
1775 $prototype =~ s/^asmlinkage +//;
1776 $prototype =~ s/^inline +//;
1777 $prototype =~ s/^__inline__ +//;
1778 $prototype =~ s/^__inline +//;
1779 $prototype =~ s/^__always_inline +//;
1780 $prototype =~ s/^noinline +//;
1781 $prototype =~ s/__devinit +//;
1782 $prototype =~ s/__init +//;
1783 $prototype =~ s/__init_or_module +//;
1784 $prototype =~ s/^#\s*define\s+//; #ak added
1785 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
1803 if ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1804 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1805 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1806 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1807 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1808 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1809 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1810 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1811 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1812 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1813 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1814 $prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1815 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1816 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1817 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1818 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1819 $prototype =~ m/^(\w+\s+\w+\s*\*\s*\w+\s*\*\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
1826 print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n";
1886 $prototype = "";
1896 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1899 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1902 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1906 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1911 "$prototype\n";
1913 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1920 $prototype =~ s@[\r\n\t]+@ @gos; # strip newlines/CR's/tabs
1921 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1922 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1924 ## $prototype = "long sys_$1(void)";
1927 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1928 if ($prototype =~ m/long (sys_.*?),/) {
1929 $prototype =~ s/,/\(/;
1931 $prototype =~ s/\)/\(void\)/;
1934 # now delete all of the odd-number commas in $prototype
1937 my $len = length($prototype);
1942 if (substr($prototype, $ix, 1) eq ',') {
1945 substr($prototype, $ix, 1) = ' ';
1961 $prototype .= $1;
1965 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1966 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1967 $prototype =~ s@^\s+@@gos; # strip leading spaces
1968 if ($prototype =~ /SYSCALL_DEFINE/) {
1971 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1972 $prototype =~ /DEFINE_SINGLE_EVENT/)
1976 dump_function($prototype, $file);
1997 $prototype .= $1 . $2;
2001 dump_declaration($prototype, $file);
2007 $prototype .= $x;
2170 $prototype = "";
2173 # print STDERR "end of doc comment, looking for prototype\n";
2198 } elsif ($state == 3) { # scanning for function '{' (end of prototype)
2216 $prototype = "";
2234 $prototype = "";