[BACK]Return to string.out_ascii CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond

File: [cvsweb.bsd.lv] / mandoc / regress / roff / cond / string.out_ascii (download)

Revision 1.2, Sun Jun 18 17:36:06 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.1: +2 -0 lines

Implement appending to standard man(7) and mdoc(7) macros with .am.

With roff_getstrn(), provide finer control which definitions
can be used for what:
* All definitions can be used for .if d tests and .am appending.
* User-defined for \* expansion, .dei expansion, and macro calling.
* Predefined for \* expansion.
* Standard macros, original or renamed, for macro calling.

Several related improvements while here:
* Do not return string table entries that have explicitly been removed.
* Do not create a rentab entry when trying to rename a non-existent macro.
* Clear an existing rentab entry when the external interface
roff_setstr() is called with its name.
* Avoid trailing blanks in macro lines generated from renamed
and from aliased macros.
* Delete the duplicate __m*_reserved[] tables, just use roff_name[].

STRING(1)                   General Commands Manual                  STRING(1)



NNAAMMEE
       string - conditional testing whether a string is defined

DDEESSCCRRIIPPTTIIOONN
       mystr not yet defined
       now defined

       mymac not yet defined
       now defined

       myren not yet defined
       now defined

       standard macro is defined



OpenBSD                          June 14, 2017                       STRING(1)