Skip to content

Commit 7d0d88c

Browse files
committed
perlapi: Tabularize display of config.h symbols
Certain symbols in config.h have been displayed with no addtional information. The lack of information is because the symbol's name says it all. For example HAS_SETENV is a boolean indicating if setenv() is available on the platform. No further explanation is needed than the introductory paragraph at the beginning of the section. Prior to this commit, these symbols were displayed as a comma separated list wrapping across multiple lines. This commit organizes them into a table with columns, making them much easier to read.
1 parent 662b1b1 commit 7d0d88c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

autodoc.pl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,13 +2868,7 @@ ($destpod)
28682868

28692869

28702870
foreach my $name (keys %list_only) {
2871-
my @this_list = $list_only{$name}{list}->@*;
2872-
my $text = "";
2873-
foreach my $entry (sort dictionary_order @this_list) {
2874-
$text .= ",S< > " if $text; # The S< > makes things less densely
2875-
# packed, hence more readable
2876-
$text .= "C<$entry>";
2877-
}
2871+
my $text = make_verbatim_list($list_only{$name}{list}->@*);
28782872
$valid_sections{$genconfig_scn}{footer}
28792873
=~ s/$list_only{$name}{placement}/$text/;
28802874
}

0 commit comments

Comments
 (0)