Lines Matching refs:prototype

312 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1052 my ($prototype, $file) = @_;
1565 my $prototype = shift;
1569 $prototype =~ s/^static +//;
1570 $prototype =~ s/^extern +//;
1571 $prototype =~ s/^asmlinkage +//;
1572 $prototype =~ s/^inline +//;
1573 $prototype =~ s/^__inline__ +//;
1574 $prototype =~ s/^__inline +//;
1575 $prototype =~ s/^__always_inline +//;
1576 $prototype =~ s/^noinline +//;
1577 $prototype =~ s/__init +//;
1578 $prototype =~ s/__init_or_module +//;
1579 $prototype =~ s/__meminit +//;
1580 $prototype =~ s/__must_check +//;
1581 $prototype =~ s/__weak +//;
1582 $prototype =~ s/__sched +//;
1583 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1584 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1585 $prototype =~ s/__attribute__\s*\(\(
1609 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
1617 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1618 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1619 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1620 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1621 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1622 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1623 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
1624 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1625 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1626 $prototype =~ m/^(\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1627 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1628 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1629 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1630 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1631 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1632 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
1633 $prototype =~ m/^(\w+\s+\w+\s*\*+\s*\w+\s*\*+\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
1640 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1679 $prototype = "";
1690 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1693 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1696 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1700 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1705 "$prototype\n";
1707 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1714 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1716 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1721 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1722 if ($prototype =~ m/long (sys_.*?),/) {
1723 $prototype =~ s/,/\(/;
1725 $prototype =~ s/\)/\(void\)/;
1731 my $len = length($prototype);
1736 if (substr($prototype, $ix, 1) eq ',') {
1739 substr($prototype, $ix, 1) = ' ';
1755 $prototype .= $1;
1759 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1760 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1761 $prototype =~ s@^\s+@@gos; # strip leading spaces
1762 if ($prototype =~ /SYSCALL_DEFINE/) {
1765 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1766 $prototype =~ /DEFINE_SINGLE_EVENT/)
1770 dump_function($prototype, $file);
1791 if( length $prototype ) {
1792 $prototype .= " "
1794 $prototype .= $1 . $2;
1798 dump_declaration($prototype, $file);
1804 $prototype .= $x;
1988 $prototype = "";
2072 $prototype = "";