diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-09 22:27:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-09 22:27:04 +0000 |
commit | 272b0bdc5c87bfffd9b9864eac579487de6636ea (patch) | |
tree | cf76f35a6d1f200be61f7fdbe91baf30e6231b95 /libmandoc.h | |
parent | 43019a63ee4e47bd3e1e331d85934b3f4d19ba93 (diff) | |
download | mandoc-272b0bdc5c87bfffd9b9864eac579487de6636ea.tar.gz |
When accessing an undefined number register, define it to be zero, like
the previous commit for strings and macros, only technically simpler.
Desired behaviour also mentioned by Werner Lemberg in 2011.
This diff adds functionality but is -21 +19 LOC. :-)
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmandoc.h b/libmandoc.h index 0c884814..f864d352 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -66,7 +66,7 @@ void roff_man_reset(struct roff_man *); enum rofferr roff_parseln(struct roff *, int, struct buf *, int *); void roff_endparse(struct roff *); void roff_setreg(struct roff *, const char *, int, char sign); -int roff_getreg(const struct roff *, const char *); +int roff_getreg(struct roff *, const char *); char *roff_strdup(const struct roff *, const char *); int roff_getcontrol(const struct roff *, const char *, int *); |