Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a7480d

Browse files
committed
(myformat.perl): Added handler for cfuncdesc environment. This is needed
for the extending & embedding manual.
1 parent eb33c78 commit 7a7480d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Doc/myformat.perl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,22 @@ sub my_parword_index_helper{
150150
sub do_cmd_bimodindex{ &my_parword_index_helper('built-in module', @_); }
151151
sub do_cmd_bifuncindex{ &my_parword_index_helper('standard module', @_); }
152152

153+
sub do_env_cfuncdesc{
154+
local($_) = @_;
155+
local($return_type,$function_name,$arg_list) = ('', '', '');
156+
local($any_next_pair_rx3) = "$O(\\d+)$C([\\s\\S]*)$O\\3$C";
157+
local($cfuncdesc_rx) =
158+
"$any_next_pair_rx$any_next_pair_rx3$any_next_pair_rx5";
159+
$* = 1;
160+
if (/$cfuncdesc_rx/o) {
161+
$return_type = "$2";
162+
$function_name = "$4";
163+
$arg_list = "$6";
164+
&make_index_entry($3,$function_name)
165+
}
166+
$* = 0;
167+
"<DL><DT>$return_type <STRONG><A NAME=\"$3\">$function_name</A></STRONG>" .
168+
"(<VAR>$arg_list</VAR>)\n<DD>$'\n</DL>"
169+
}
170+
153171
1; # This must be the last line

0 commit comments

Comments
 (0)