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

Skip to content

Commit 9dcc5a9

Browse files
committed
Add support for ctypedesc, cvardesc, seealso, seemodule, seetext.
This seems to take care of everything but tables and equations.
1 parent 7cd6044 commit 9dcc5a9

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Doc/myformat.perl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,36 @@ sub do_env_cfuncdesc{
196196
"(<VAR>$arg_list</VAR>)\n<DD>$'\n</DL>"
197197
}
198198

199+
sub do_env_ctypedesc{
200+
local($_) = @_;
201+
local($type_name) = ('');
202+
local($cfuncdesc_rx) =
203+
"$next_pair_rx";
204+
$* = 1;
205+
if (/$cfuncdesc_rx/o) {
206+
$type_name = "$2";
207+
&make_index_entry($1,"<TT>$var_name</TT> " . &get_indexsubitem);
208+
}
209+
$* = 0;
210+
"<DL><DT><STRONG><A NAME=\"$1\">$type_name</A></STRONG>\n<DD>$'\n</DL>"
211+
}
212+
213+
sub do_env_cvardesc{
214+
local($_) = @_;
215+
local($var_type,$var_name) = ('', '');
216+
local($cfuncdesc_rx) =
217+
"$next_pair_rx$any_next_pair_rx3";
218+
$* = 1;
219+
if (/$cfuncdesc_rx/o) {
220+
$var_type = "$2";
221+
$var_name = "$4";
222+
&make_index_entry($3,"<TT>$var_name</TT> " . &get_indexsubitem);
223+
}
224+
$* = 0;
225+
"<DL><DT>$var_type <STRONG><A NAME=\"$3\">$var_name</A></STRONG>\n" .
226+
"<DD>$'\n</DL>"
227+
}
228+
199229
sub do_env_funcdesc{
200230
local($_) = @_;
201231
local($function_name,$arg_list) = ('', '');
@@ -227,4 +257,21 @@ sub do_env_datadesc{
227257

228258
sub do_env_excdesc{ &do_env_datadesc(@_); }
229259

260+
sub do_env_seealso{
261+
local($_) = @_;
262+
"<P><B>See Also:</B></P>\n" . $_;
263+
}
264+
265+
sub do_cmd_seemodule{
266+
local($_) = @_;
267+
local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
268+
s/$next_pair_pr_rx$any_next_pair_pr_rx3/<P><CODE><B>\2<\/B><\/CODE> (\4)<\/P>/;
269+
$_;
270+
}
271+
272+
sub do_cmd_seetext{
273+
local($_) = @_;
274+
"<p>" . $_;
275+
}
276+
230277
1; # This must be the last line

0 commit comments

Comments
 (0)