aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-04 21:59:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-04 21:59:30 +0000
commitc4cc3f2226e67300ea3cb40c67e4d619a5a9d45a (patch)
tree187d3a0be486e7895a24356d932133bb90e59241 /mdoc.h
parenta678be049e5af47b549a64dc1c273f0f0974bf0d (diff)
downloadmandoc-c4cc3f2226e67300ea3cb40c67e4d619a5a9d45a.tar.gz
mandoc-c4cc3f2226e67300ea3cb40c67e4d619a5a9d45a.tar.zst
mandoc-c4cc3f2226e67300ea3cb40c67e4d619a5a9d45a.zip
Cache column sizes and char pointer into mdoc_bl. Finally get rid of
the loops here and there to track down the MDOC_Column arguments.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc.h b/mdoc.h
index 569864d2..0b2d0ac2 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.99 2010/07/02 15:03:14 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.100 2010/07/04 21:59:30 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -303,6 +303,8 @@ struct mdoc_bl {
const char *offs; /* -offset */
enum mdoc_list type; /* -tag, -enum, etc. */
int comp; /* -compact */
+ size_t ncols; /* -column arg count */
+ const char **cols; /* -column val ptr */
};
struct mdoc_bf {