summaryrefslogtreecommitdiffstats
path: root/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-05 22:15:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-05 22:15:03 +0000
commit59ceaaf6aa64f56ccc82a1659d6fe75139c26c22 (patch)
treeb515f7c89744dbb2add1f1b74444ed3a88351796 /libmandoc.h
parent3c869ef07e567e3ae0ecdbc5ad0d7b12c86c50cb (diff)
downloadmandoc-59ceaaf6aa64f56ccc82a1659d6fe75139c26c22.tar.gz
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.
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h4
1 files changed, 2 insertions, 2 deletions
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 *);