aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 20:21:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 20:21:04 +0000
commitdbface5c83837d76b73a9ba99fde1ccc3afab3d5 (patch)
treefcc9e01c6182df1212aee9a5e658cf71de0d7d84 /libmandoc.h
parent2adccb6ca2a7bc99a162422bc1bd9270a4239db5 (diff)
downloadmandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.tar.gz
mandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.tar.zst
mandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.zip
Add `cc' support.
This was reported by espie@ and in the TODO. Caveat: `cc' has buggy behaviour when invoked in groff(1) and followed by a line-breaking control character macro, e.g., in a -man doc, .cc | .B foo 'B foo |cc 'B foo will cause groff(1) to behave properly for `.B' but inline the macro definition for `B' when invoked with the line-breaking macro.
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmandoc.h b/libmandoc.h
index f75416db..e10a162a 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.30 2012/05/27 17:48:57 schwarze Exp $ */
+/* $Id: libmandoc.h,v 1.31 2012/06/12 20:21:04 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -47,7 +47,6 @@ void mandoc_vmsg(enum mandocerr, struct mparse *,
char *mandoc_getarg(struct mparse *, char **, int, int *);
char *mandoc_normdate(struct mparse *, char *, int, int);
int mandoc_eos(const char *, size_t, int);
-int mandoc_getcontrol(const char *, int *);
int mandoc_strntoi(const char *, size_t, int);
const char *mandoc_a2msec(const char*);
@@ -77,6 +76,8 @@ int roff_regisset(const struct roff *, enum regs);
unsigned int roff_regget(const struct roff *, enum regs);
void roff_regunset(struct roff *, enum regs);
char *roff_strdup(const struct roff *, const char *);
+int roff_getcontrol(const struct roff *,
+ const char *, int *);
#if 0
char roff_eqndelim(const struct roff *);
void roff_openeqn(struct roff *, const char *,