aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-15 21:23:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-15 21:23:52 +0000
commita303f40898d21cb0d5552a2252710ddc741a1cec (patch)
treed38b1f7764118039b866dffbf2f2395e33241aff /libmandoc.h
parent9e9da087dda5194812500db223832a351d496b16 (diff)
downloadmandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.tar.gz
mandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.tar.zst
mandoc-a303f40898d21cb0d5552a2252710ddc741a1cec.zip
The "value" argument to the roff(7) .nr requests ends right before
the first non-digit character. While here, implement and document an optional sign, requesting increment or decrement, as documented in the Ossanna/Kernighan/Ritter troff manual and supported by groff. Reported by bentley@ on discuss@.
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 18f200b7..3c005e10 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.34 2013/10/05 22:15:03 schwarze Exp $ */
+/* $Id: libmandoc.h,v 1.35 2013/12/15 21:23:52 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -68,7 +68,7 @@ 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 *, int);
+void roff_setreg(struct roff *, const char *, int, char sign);
int roff_getreg(const struct roff *, const char *);
char *roff_strdup(const struct roff *, const char *);
int roff_getcontrol(const struct roff *,