CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2017/06/18 11:35:40
Modified files: usr.bin/mandoc : roff.c regress/usr.bin/mandoc/roff: Makefile regress/usr.bin/mandoc/roff/cond: string.in string.out_ascii regress/usr.bin/mandoc/roff/de: append.in append.out_ascii regress/usr.bin/mandoc/roff/string: Makefile Added files: regress/usr.bin/mandoc/roff/rn: Makefile append.in append.out_ascii regress/usr.bin/mandoc/roff/string: std.in std.out_ascii std.out_lint Log message: 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[].