Lines Matching full:prototype
182 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
222 STATE_PROTO => 5, # scanning prototype
1116 my ($prototype, $file) = @_;
1148 …emit_warning("${file}:$.", "expecting prototype for $decl_type $identifier. Prototype was for $dec…
1363 …emit_warning("${file}:$.", "expecting prototype for enum $identifier. Prototype was for enum $decl…
1431 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1462 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1716 # takes a function prototype and the name of the current file being
1720 my $prototype = shift;
1726 $prototype =~ s/^static +//;
1727 $prototype =~ s/^extern +//;
1728 $prototype =~ s/^asmlinkage +//;
1729 $prototype =~ s/^inline +//;
1730 $prototype =~ s/^__inline__ +//;
1731 $prototype =~ s/^__inline +//;
1732 $prototype =~ s/^__always_inline +//;
1733 $prototype =~ s/^noinline +//;
1734 $prototype =~ s/^__FORTIFY_INLINE +//;
1735 $prototype =~ s/__init +//;
1736 $prototype =~ s/__init_or_module +//;
1737 $prototype =~ s/__deprecated +//;
1738 $prototype =~ s/__flatten +//;
1739 $prototype =~ s/__meminit +//;
1740 $prototype =~ s/__must_check +//;
1741 $prototype =~ s/__weak +//;
1742 $prototype =~ s/__sched +//;
1743 $prototype =~ s/_noprof//;
1744 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1745 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1746 $prototype =~ s/__diagnose_as\s*\(\s*\S+\s*(?:,\s*\d+\s*)*\) +//;
1747 $prototype =~ s/DECL_BUCKET_PARAMS\s*\(\s*(\S+)\s*,\s*(\S+)\s*\)/$1, $2/;
1748 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1749 $prototype =~ s/__attribute_const__ +//;
1750 $prototype =~ s/__attribute__\s*\(\(
1780 if ($define && $prototype =~ m/^()($name)\s+/) {
1788 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1789 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1790 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1797 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1802 …emit_warning("${file}:$.", "expecting prototype for $identifier(). Prototype was for $declaration_…
1861 $prototype = "";
1872 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1875 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1878 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1882 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1887 "$prototype\n");
1889 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1897 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1898 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1899 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1901 ## $prototype = "long sys_$1(void)";
1904 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1905 if ($prototype =~ m/long (sys_.*?),/) {
1906 $prototype =~ s/,/\(/;
1908 $prototype =~ s/\)/\(void\)/;
1911 # now delete all of the odd-number commas in $prototype
1914 my $len = length($prototype);
1919 if (substr($prototype, $ix, 1) eq ',') {
1922 substr($prototype, $ix, 1) = ' ';
1937 $prototype .= $1;
1941 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1942 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1943 $prototype =~ s@^\s+@@gos; # strip leading spaces
1947 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1949 if ($prototype =~ /SYSCALL_DEFINE/) {
1952 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1953 $prototype =~ /DEFINE_SINGLE_EVENT/)
1957 dump_function($prototype, $file);
1978 if( length $prototype ) {
1979 $prototype .= " "
1981 $prototype .= $1 . $2;
1985 dump_declaration($prototype, $file);
1991 $prototype .= $x;
2199 $prototype = "";
2246 # STATE_PROTO: reading a function/whatever prototype.
2286 $prototype = "";
2298 # STATE_INLINE: docbook comments within a prototype.