Lines Matching full:prototype

179 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
219 STATE_PROTO => 5, # scanning prototype
1102 my ($prototype, $file) = @_;
1134 …emit_warning("${file}:$.", "expecting prototype for $decl_type $identifier. Prototype was for $dec…
1347 …emit_warning("${file}:$.", "expecting prototype for enum $identifier. Prototype was for enum $decl…
1415 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1446 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1683 # takes a function prototype and the name of the current file being
1687 my $prototype = shift;
1693 $prototype =~ s/^static +//;
1694 $prototype =~ s/^extern +//;
1695 $prototype =~ s/^asmlinkage +//;
1696 $prototype =~ s/^inline +//;
1697 $prototype =~ s/^__inline__ +//;
1698 $prototype =~ s/^__inline +//;
1699 $prototype =~ s/^__always_inline +//;
1700 $prototype =~ s/^noinline +//;
1701 $prototype =~ s/^__FORTIFY_INLINE +//;
1702 $prototype =~ s/__init +//;
1703 $prototype =~ s/__init_or_module +//;
1704 $prototype =~ s/__deprecated +//;
1705 $prototype =~ s/__flatten +//;
1706 $prototype =~ s/__meminit +//;
1707 $prototype =~ s/__must_check +//;
1708 $prototype =~ s/__weak +//;
1709 $prototype =~ s/__sched +//;
1710 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1711 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1712 $prototype =~ s/__diagnose_as\s*\(\s*\S+\s*(?:,\s*\d+\s*)*\) +//;
1713 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1714 $prototype =~ s/__attribute_const__ +//;
1715 $prototype =~ s/__attribute__\s*\(\(
1745 if ($define && $prototype =~ m/^()($name)\s+/) {
1753 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1754 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1755 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1762 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1767 …emit_warning("${file}:$.", "expecting prototype for $identifier(). Prototype was for $declaration_…
1824 $prototype = "";
1835 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1838 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1841 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1845 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1850 "$prototype\n");
1852 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1860 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1861 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1862 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1864 ## $prototype = "long sys_$1(void)";
1867 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1868 if ($prototype =~ m/long (sys_.*?),/) {
1869 $prototype =~ s/,/\(/;
1871 $prototype =~ s/\)/\(void\)/;
1874 # now delete all of the odd-number commas in $prototype
1877 my $len = length($prototype);
1882 if (substr($prototype, $ix, 1) eq ',') {
1885 substr($prototype, $ix, 1) = ' ';
1901 $prototype .= $1;
1905 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1906 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1907 $prototype =~ s@^\s+@@gos; # strip leading spaces
1911 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1913 if ($prototype =~ /SYSCALL_DEFINE/) {
1916 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1917 $prototype =~ /DEFINE_SINGLE_EVENT/)
1921 dump_function($prototype, $file);
1942 if( length $prototype ) {
1943 $prototype .= " "
1945 $prototype .= $1 . $2;
1949 dump_declaration($prototype, $file);
1955 $prototype .= $x;
2162 $prototype = "";
2209 # STATE_PROTO: reading a function/whatever prototype.
2249 $prototype = "";
2261 # STATE_INLINE: docbook comments within a prototype.