aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-19 17:57:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-19 17:57:23 +0000
commitdc409878671ea1571807749a48b645dd88048385 (patch)
tree83834697b270533b1b80f4f6df735a0231d6ae94 /libmandoc.h
parent9ded0b0acccd78c24e423f47db992897a949faef (diff)
downloadmandoc-dc409878671ea1571807749a48b645dd88048385.tar.gz
mandoc-dc409878671ea1571807749a48b645dd88048385.tar.zst
mandoc-dc409878671ea1571807749a48b645dd88048385.zip
In groff, trying to redefine standard man(7) macros before .TH has no effect;
after .TH, it works. Trying to redefine standard mdoc(7) macros before .Dd works when calling groff with the -mdoc command line option, but does not when calling groff with -mandoc; after .Dd, it always works. Arguably, one might call that buggy behaviour in groff, but it is very unlikely that anybody will change groff in this respect (certainly, i'm not volunteering). So let's be bug-compatible. This fixes the vertical spacing in sox(1). Merging from OpenBSD libmandoc.h 1.18, read.c 1.8, roff.c 1.47, June 2, 2012.
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmandoc.h b/libmandoc.h
index e10a162a..9b3ffee1 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -1,6 +1,6 @@
-/* $Id: libmandoc.h,v 1.31 2012/06/12 20:21:04 kristaps Exp $ */
+/* $Id: libmandoc.h,v 1.32 2012/11/19 17:57:23 schwarze Exp $ */
/*
- * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -67,7 +67,7 @@ int man_addspan(struct man *, const struct tbl_span *);
int man_addeqn(struct man *, const struct eqn *);
void roff_free(struct roff *);
-struct roff *roff_alloc(struct mparse *);
+struct roff *roff_alloc(enum mparset, struct mparse *);
void roff_reset(struct roff *);
enum rofferr roff_parseln(struct roff *, int,
char **, size_t *, int, int *);