Lines Matching full:prototype
182 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
222 STATE_PROTO => 5, # scanning prototype
1101 my ($prototype, $file) = @_;
1133 …emit_warning("${file}:$.", "expecting prototype for $decl_type $identifier. Prototype was for $dec…
1348 …emit_warning("${file}:$.", "expecting prototype for enum $identifier. Prototype was for enum $decl…
1416 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1447 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1701 # takes a function prototype and the name of the current file being
1705 my $prototype = shift;
1711 $prototype =~ s/^static +//;
1712 $prototype =~ s/^extern +//;
1713 $prototype =~ s/^asmlinkage +//;
1714 $prototype =~ s/^inline +//;
1715 $prototype =~ s/^__inline__ +//;
1716 $prototype =~ s/^__inline +//;
1717 $prototype =~ s/^__always_inline +//;
1718 $prototype =~ s/^noinline +//;
1719 $prototype =~ s/^__FORTIFY_INLINE +//;
1720 $prototype =~ s/__init +//;
1721 $prototype =~ s/__init_or_module +//;
1722 $prototype =~ s/__deprecated +//;
1723 $prototype =~ s/__flatten +//;
1724 $prototype =~ s/__meminit +//;
1725 $prototype =~ s/__must_check +//;
1726 $prototype =~ s/__weak +//;
1727 $prototype =~ s/__sched +//;
1728 $prototype =~ s/_noprof//;
1729 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1730 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1731 $prototype =~ s/__diagnose_as\s*\(\s*\S+\s*(?:,\s*\d+\s*)*\) +//;
1732 $prototype =~ s/DECL_BUCKET_PARAMS\s*\(\s*(\S+)\s*,\s*(\S+)\s*\)/$1, $2/;
1733 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1734 $prototype =~ s/__attribute_const__ +//;
1735 $prototype =~ s/__attribute__\s*\(\(
1765 if ($define && $prototype =~ m/^()($name)\s+/) {
1773 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1774 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1775 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1782 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1787 …emit_warning("${file}:$.", "expecting prototype for $identifier(). Prototype was for $declaration_…
1844 $prototype = "";
1855 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1858 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1861 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1865 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1870 "$prototype\n");
1872 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1880 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1881 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1882 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1884 ## $prototype = "long sys_$1(void)";
1887 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1888 if ($prototype =~ m/long (sys_.*?),/) {
1889 $prototype =~ s/,/\(/;
1891 $prototype =~ s/\)/\(void\)/;
1894 # now delete all of the odd-number commas in $prototype
1897 my $len = length($prototype);
1902 if (substr($prototype, $ix, 1) eq ',') {
1905 substr($prototype, $ix, 1) = ' ';
1920 $prototype .= $1;
1924 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1925 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1926 $prototype =~ s@^\s+@@gos; # strip leading spaces
1930 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1932 if ($prototype =~ /SYSCALL_DEFINE/) {
1935 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1936 $prototype =~ /DEFINE_SINGLE_EVENT/)
1940 dump_function($prototype, $file);
1961 if( length $prototype ) {
1962 $prototype .= " "
1964 $prototype .= $1 . $2;
1968 dump_declaration($prototype, $file);
1974 $prototype .= $x;
2182 $prototype = "";
2229 # STATE_PROTO: reading a function/whatever prototype.
2269 $prototype = "";
2281 # STATE_INLINE: docbook comments within a prototype.