CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2014/06/29 16:12:55
Modified files:
usr.bin/mandoc : roff.c
regress/usr.bin/mandoc/roff/ds: Makefile
regress/usr.bin/mandoc/roff/nr: Makefile
Added files:
regress/usr.bin/mandoc/roff/ds: escname.in escname.out_ascii
regress/usr.bin/mandoc/roff/nr: escname.in escname.out_ascii
Log message:
Major roff_getname() cleanup.
* Return the name even if it is terminated by an escape sequence, not a blank.
* Skip the full escape sequence using mandoc_escape(), not just the first byte.
* Make it non-destructive, return the length instead of writing a '\0'.
* Let .ds and .as cope with the above changes to the internal interface.
* Fix .rm and .rr to accept an escape sequence as the end of a name.
* Fix .nr and .rr to not set/delete a register with an empty name.