aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-10-06 22:29:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-10-06 22:29:12 +0000
commit04d794422a19264dc0a985a9b145b3748fc69862 (patch)
treed3a4862033902d2b0715fbc967dad707f873374a /main.h
parent2b6476580cd1b6473035ea2e2276e33efcb7fa74 (diff)
downloadmandoc-04d794422a19264dc0a985a9b145b3748fc69862.tar.gz
mandoc-04d794422a19264dc0a985a9b145b3748fc69862.tar.zst
mandoc-04d794422a19264dc0a985a9b145b3748fc69862.zip
If -Tman is specified and input is -man, echo the preprocessed (`so'
replaced by file) input. This replaces earlier behaviour of doing nothing, which I found unexpected (mandoc should always output). This requires a buffer in read.c that saves the input lines before being parsed, with a special hook if `so' is invoked. This buffer is just flushed to output if -mman is the input. While mucking around doing this, I also alpha-ordered the mandoc.h functions. Ok schwarze@, with no screaming when the polished patch was published.
Diffstat (limited to 'main.h')
-rw-r--r--main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.h b/main.h
index da84d5c7..79dcf489 100644
--- a/main.h
+++ b/main.h
@@ -1,4 +1,4 @@
-/* $Id: main.h,v 1.14 2011/09/18 14:14:15 schwarze Exp $ */
+/* $Id: main.h,v 1.15 2011/10/06 22:29:12 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -42,6 +42,7 @@ void tree_mdoc(void *, const struct mdoc *);
void tree_man(void *, const struct man *);
void man_mdoc(void *, const struct mdoc *);
+void man_man(void *, const struct man *);
void *locale_alloc(char *);
void *utf8_alloc(char *);