diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-06-29 22:14:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-06-29 22:14:10 +0000 |
commit | 1a8592024a9761fcb7378fe73a4a009d05a44f39 (patch) | |
tree | 5c45ba673c0507331a1d7a3951a7c1abfe2235c2 /compat_strnlen.c | |
parent | 28fb10f422f4625c8f96902291781134ce7480f6 (diff) | |
download | mandoc-1a8592024a9761fcb7378fe73a4a009d05a44f39.tar.gz |
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.
Diffstat (limited to 'compat_strnlen.c')
0 files changed, 0 insertions, 0 deletions