Lines Matching full:prototype
180 my ($newsection, $newcontents, $prototype, $brcount);
220 STATE_PROTO => 5, # scanning prototype
1034 my ($prototype, $file) = @_;
1066 …emit_warning("${file}:$.", "expecting prototype for $decl_type $identifier. Prototype was for $dec…
1281 …emit_warning("${file}:$.", "expecting prototype for enum $identifier. Prototype was for enum $decl…
1349 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1380 …emit_warning("${file}:$.", "expecting prototype for typedef $identifier. Prototype was for typedef…
1634 # takes a function prototype and the name of the current file being
1638 my $prototype = shift;
1644 $prototype =~ s/^static +//;
1645 $prototype =~ s/^extern +//;
1646 $prototype =~ s/^asmlinkage +//;
1647 $prototype =~ s/^inline +//;
1648 $prototype =~ s/^__inline__ +//;
1649 $prototype =~ s/^__inline +//;
1650 $prototype =~ s/^__always_inline +//;
1651 $prototype =~ s/^noinline +//;
1652 $prototype =~ s/^__FORTIFY_INLINE +//;
1653 $prototype =~ s/__init +//;
1654 $prototype =~ s/__init_or_module +//;
1655 $prototype =~ s/__deprecated +//;
1656 $prototype =~ s/__flatten +//;
1657 $prototype =~ s/__meminit +//;
1658 $prototype =~ s/__must_check +//;
1659 $prototype =~ s/__weak +//;
1660 $prototype =~ s/__sched +//;
1661 $prototype =~ s/_noprof//;
1662 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1663 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1664 $prototype =~ s/__diagnose_as\s*\(\s*\S+\s*(?:,\s*\d+\s*)*\) +//;
1665 $prototype =~ s/DECL_BUCKET_PARAMS\s*\(\s*(\S+)\s*,\s*(\S+)\s*\)/$1, $2/;
1666 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1667 $prototype =~ s/__attribute_const__ +//;
1668 $prototype =~ s/__attribute__\s*\(\(
1698 if ($define && $prototype =~ m/^()($name)\s+/) {
1706 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1707 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1708 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1715 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1720 …emit_warning("${file}:$.", "expecting prototype for $identifier(). Prototype was for $declaration_…
1779 $prototype = "";
1790 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1793 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1796 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1800 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1805 "$prototype\n");
1807 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1815 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1816 ## if ($prototype =~ m/SYSCALL_DEFINE0\s*\(\s*(a-zA-Z0-9_)*\s*\)/) {
1817 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1819 ## $prototype = "long sys_$1(void)";
1822 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1823 if ($prototype =~ m/long (sys_.*?),/) {
1824 $prototype =~ s/,/\(/;
1826 $prototype =~ s/\)/\(void\)/;
1829 # now delete all of the odd-number commas in $prototype
1832 my $len = length($prototype);
1837 if (substr($prototype, $ix, 1) eq ',') {
1840 substr($prototype, $ix, 1) = ' ';
1855 $prototype .= $1;
1859 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1860 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1861 $prototype =~ s@^\s+@@gos; # strip leading spaces
1865 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1867 if ($prototype =~ /SYSCALL_DEFINE/) {
1870 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1871 $prototype =~ /DEFINE_SINGLE_EVENT/)
1875 dump_function($prototype, $file);
1896 if( length $prototype ) {
1897 $prototype .= " "
1899 $prototype .= $1 . $2;
1903 dump_declaration($prototype, $file);
1909 $prototype .= $x;
2107 $prototype = "";
2154 # STATE_PROTO: reading a function/whatever prototype.
2194 $prototype = "";
2206 # STATE_INLINE: docbook comments within a prototype.