kernel-doc (7efc6c4295f5489e25eaef6d6fb6ceb6a6e238d0) kernel-doc (72b97d0b911872ba36a5742b7d790b6b165e11d8)
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0
3
4use warnings;
5use strict;
6
7## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
8## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##

--- 1078 unchanged lines hidden (view full) ---

1087 my ($parameter);
1088 my $oldprefix = $lineprefix;
1089
1090 if ($sphinx_major < 3) {
1091 my $name = $args{'type'} . " " . $args{'struct'};
1092 print "\n\n.. c:type:: " . $name . "\n\n";
1093 } else {
1094 my $name = $args{'struct'};
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0
3
4use warnings;
5use strict;
6
7## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
8## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##

--- 1078 unchanged lines hidden (view full) ---

1087 my ($parameter);
1088 my $oldprefix = $lineprefix;
1089
1090 if ($sphinx_major < 3) {
1091 my $name = $args{'type'} . " " . $args{'struct'};
1092 print "\n\n.. c:type:: " . $name . "\n\n";
1093 } else {
1094 my $name = $args{'struct'};
1095 print "\n\n.. c:struct:: " . $name . "\n\n";
1095 if ($args{'type'} eq 'union') {
1096 print "\n\n.. c:union:: " . $name . "\n\n";
1097 } else {
1098 print "\n\n.. c:struct:: " . $name . "\n\n";
1099 }
1096 }
1097 print_lineno($declaration_start_line);
1098 $lineprefix = " ";
1099 output_highlight_rst($args{'purpose'});
1100 print "\n";
1101
1102 print "**Definition**\n\n";
1103 print "::\n\n";

--- 1332 unchanged lines hidden ---
1100 }
1101 print_lineno($declaration_start_line);
1102 $lineprefix = " ";
1103 output_highlight_rst($args{'purpose'});
1104 print "\n";
1105
1106 print "**Definition**\n\n";
1107 print "::\n\n";

--- 1332 unchanged lines hidden ---