From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o4OMPw6i024674 for ; Mon, 24 May 2010 16:25:59 -0600 (MDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o4OMPwnH030673; Mon, 24 May 2010 18:25:58 -0400 (EDT) Date: Mon, 24 May 2010 18:25:58 -0400 (EDT) Message-Id: <201005242225.o4OMPwnH030673@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: provide stubs to ignore .ds, .rm and .tr, which occur in the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- provide stubs to ignore .ds, .rm and .tr, which occur in the standard pod2man preamble; from OpenBSD; "sounds good" joerg@, "can be checked in" kristaps@ Modified Files: -------------- mdocml: roff.7 roff.c Revision Data ------------- Index: roff.7 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.7,v retrieving revision 1.5 retrieving revision 1.6 diff -Lroff.7 -Lroff.7 -u -p -r1.5 -r1.6 --- roff.7 +++ roff.7 @@ -90,6 +90,12 @@ The syntax of this macro is the same as .Sx \&ig , except that a leading argument must be specified. It is ignored, as are its children. +.Ss \&ds +Define a string. +This macro is intended to have two arguments, +the name of the string to define and its content. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. .Ss \&de1 The syntax of this macro is the same as that of .Sx \&ig , @@ -235,6 +241,18 @@ the subsequent invocation of .Sx \&if will first signify the end of comment, then be invoked as a macro. This behaviour really shouldn't be counted upon. +.Ss \&rm +Remove a request, macro or string. +This macro is intended to have one argument, +the name of the request, macro or string to be undefined. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. +.Ss \&tr +Output character translation. +This macro is intended to have one argument, +consisting of an even number of characters. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. .Sh COMPATIBILITY This section documents compatibility between mandoc and other other troff implementations, at this time limited to GNU troff Index: roff.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v retrieving revision 1.82 retrieving revision 1.83 diff -Lroff.c -Lroff.c -u -p -r1.82 -r1.83 --- roff.c +++ roff.c @@ -38,10 +38,13 @@ enum rofft { ROFF_de, ROFF_dei, ROFF_de1, + ROFF_ds, ROFF_el, ROFF_ie, ROFF_if, ROFF_ig, + ROFF_rm, + ROFF_tr, ROFF_cblock, ROFF_ccond, ROFF_MAX @@ -98,6 +101,7 @@ static enum rofferr roff_ccond(ROFF_ARG static enum rofferr roff_cond(ROFF_ARGS); static enum rofferr roff_cond_text(ROFF_ARGS); static enum rofferr roff_cond_sub(ROFF_ARGS); +static enum rofferr roff_line(ROFF_ARGS); const struct roffmac roffs[ROFF_MAX] = { { "am", roff_block, roff_block_text, roff_block_sub, 0 }, @@ -106,10 +110,13 @@ const struct roffmac roffs[ROFF_MAX] = { "de", roff_block, roff_block_text, roff_block_sub, 0 }, { "dei", roff_block, roff_block_text, roff_block_sub, 0 }, { "de1", roff_block, roff_block_text, roff_block_sub, 0 }, + { "ds", roff_line, NULL, NULL, 0 }, { "el", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT }, { "ie", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT }, { "if", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT }, { "ig", roff_block, roff_block_text, roff_block_sub, 0 }, + { "rm", roff_line, NULL, NULL, 0 }, + { "tr", roff_line, NULL, NULL, 0 }, { ".", roff_cblock, NULL, NULL, 0 }, { "\\}", roff_ccond, NULL, NULL, 0 }, }; @@ -702,4 +709,13 @@ roff_cond(ROFF_ARGS) *offs = pos; return(ROFF_RERUN); +} + + +/* ARGSUSED */ +static enum rofferr +roff_line(ROFF_ARGS) +{ + + return(ROFF_IGN); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv