From 59ceaaf6aa64f56ccc82a1659d6fe75139c26c22 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 5 Oct 2013 22:15:03 +0000 Subject: Expand references to number registers in exactly the same way as references to user-defined strings. While here, make number registers signed int, like in groff. Inspired by NetBSD roff.c rev. 1.8 and read.c rev. 1.7 written by Christos Zoulas on March 21, 2013, but implemented in a completely different way, without hacking into read.c, where this functionality really doesn't belong. --- libmandoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index c3dd3efc..a96829f7 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -68,8 +68,8 @@ void roff_reset(struct roff *); enum rofferr roff_parseln(struct roff *, int, char **, size_t *, int, int *); void roff_endparse(struct roff *); -void roff_setreg(struct roff *, const char *, unsigned int); -unsigned int roff_getreg(const struct roff *, const char *); +void roff_setreg(struct roff *, const char *, int); +int roff_getreg(const struct roff *, const char *); char *roff_strdup(const struct roff *, const char *); int roff_getcontrol(const struct roff *, const char *, int *); -- cgit