Lines Matching refs:args

575     my %args = %{$_[0]};
579 …print ".TH \"$args{'function'}\" 9 \"$args{'function'}\" \"$man_date\" \"Kernel Hacker's Manual\" …
582 print $args{'function'} . " \\- " . $args{'purpose'} . "\n";
585 if ($args{'functiontype'} ne "") {
586 print ".B \"" . $args{'functiontype'} . "\" " . $args{'function'} . "\n";
588 print ".B \"" . $args{'function'} . "\n";
593 foreach my $parameter (@{$args{'parameterlist'}}) {
594 if ($count == $#{$args{'parameterlist'}}) {
597 $type = $args{'parametertypes'}{$parameter};
610 foreach $parameter (@{$args{'parameterlist'}}) {
615 output_highlight($args{'parameterdescs'}{$parameter_name});
617 foreach $section (@{$args{'sectionlist'}}) {
619 output_highlight($args{'sections'}{$section});
626 my %args = %{$_[0]};
630 print ".TH \"$args{'module'}\" 9 \"enum $args{'enum'}\" \"$man_date\" \"API Manual\" LINUX\n";
633 print "enum " . $args{'enum'} . " \\- " . $args{'purpose'} . "\n";
636 print "enum " . $args{'enum'} . " {\n";
638 foreach my $parameter (@{$args{'parameterlist'}}) {
640 if ($count == $#{$args{'parameterlist'}}) {
651 foreach $parameter (@{$args{'parameterlist'}}) {
656 output_highlight($args{'parameterdescs'}{$parameter_name});
658 foreach $section (@{$args{'sectionlist'}}) {
660 output_highlight($args{'sections'}{$section});
667 my %args = %{$_[0]};
670 …print ".TH \"$args{'module'}\" 9 \"" . $args{'type'} . " " . $args{'struct'} . "\" \"$man_date\" \…
673 print $args{'type'} . " " . $args{'struct'} . " \\- " . $args{'purpose'} . "\n";
675 my $declaration = $args{'definition'};
679 print $args{'type'} . " " . $args{'struct'} . " {\n.br\n";
683 foreach $parameter (@{$args{'parameterlist'}}) {
689 ($args{'parameterdescs'}{$parameter_name} ne $undescribed) || next;
691 output_highlight($args{'parameterdescs'}{$parameter_name});
693 foreach $section (@{$args{'sectionlist'}}) {
695 output_highlight($args{'sections'}{$section});
702 my %args = %{$_[0]};
705 print ".TH \"$args{'module'}\" 9 \"$args{'typedef'}\" \"$man_date\" \"API Manual\" LINUX\n";
708 print "typedef " . $args{'typedef'} . " \\- " . $args{'purpose'} . "\n";
710 foreach $section (@{$args{'sectionlist'}}) {
712 output_highlight($args{'sections'}{$section});
717 my %args = %{$_[0]};
721 print ".TH \"$args{'module'}\" 9 \"$args{'module'}\" \"$man_date\" \"API Manual\" LINUX\n";
723 foreach $section (@{$args{'sectionlist'}}) {
725 output_highlight($args{'sections'}{$section});
739 my %args = %{$_[0]};
742 foreach $section (@{$args{'sectionlist'}}) {
747 output_highlight_rst($args{'sections'}{$section});
824 my %args = %{$_[0]};
829 if ($args{'typedef'}) {
830 print ".. c:type:: ". $args{'function'} . "\n\n";
834 output_highlight_rst($args{'purpose'});
839 if ($args{'functiontype'} ne "") {
840 $start .= $args{'functiontype'} . " " . $args{'function'} . " (";
842 $start .= $args{'function'} . " (";
847 foreach my $parameter (@{$args{'parameterlist'}}) {
852 $type = $args{'parametertypes'}{$parameter};
861 if ($args{'typedef'}) {
867 output_highlight_rst($args{'purpose'});
873 foreach $parameter (@{$args{'parameterlist'}}) {
876 $type = $args{'parametertypes'}{$parameter};
886 if (defined($args{'parameterdescs'}{$parameter_name}) &&
887 $args{'parameterdescs'}{$parameter_name} ne $undescribed) {
888 output_highlight_rst($args{'parameterdescs'}{$parameter_name});
900 my %args = %{$_[0]};
905 foreach $section (@{$args{'sectionlist'}}) {
908 output_highlight_rst($args{'sections'}{$section});
916 my %args = %{$_[0]};
920 my $name = "enum " . $args{'enum'};
925 output_highlight_rst($args{'purpose'});
930 foreach $parameter (@{$args{'parameterlist'}}) {
932 if ($args{'parameterdescs'}{$parameter} ne $undescribed) {
933 output_highlight_rst($args{'parameterdescs'}{$parameter});
945 my %args = %{$_[0]};
948 my $name = "typedef " . $args{'typedef'};
953 output_highlight_rst($args{'purpose'});
961 my %args = %{$_[0]};
964 my $name = $args{'type'} . " " . $args{'struct'};
969 output_highlight_rst($args{'purpose'});
974 my $declaration = $args{'definition'};
976 print " " . $args{'type'} . " " . $args{'struct'} . " {\n$declaration };\n\n";
980 foreach $parameter (@{$args{'parameterlist'}}) {
986 ($args{'parameterdescs'}{$parameter_name} ne $undescribed) || next;
987 $type = $args{'parametertypes'}{$parameter};
990 output_highlight_rst($args{'parameterdescs'}{$parameter_name});
1304 my $args = $3;
1306 create_parameterlist($args, ',', $file, $declaration_name);
1356 my $args = shift;
1364 while ($args =~ /(\([^\),]+),/) {
1365 $args =~ s/(\([^\),]+),/$1#/g;
1368 foreach my $arg (split($splitter, $args)) {
1394 my @args = split('\s*,\s*', $arg);
1395 if ($args[0] =~ m/\*/) {
1396 $args[0] =~ s/(\*+)\s*/ $1/;
1400 if ($args[0] =~ /^(.*\s+)(.*?\[.*\].*)$/) {
1401 shift @args;
1405 @first_arg = split('\s+', shift @args);
1408 unshift(@args, pop @first_arg);
1411 foreach $param (@args) {
1634 my $args = $3;
1636 create_parameterlist($args, ',', $file, $declaration_name);