summaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 11:49:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 11:49:00 +0000
commite1e06ec7dbe31f799c04be32aad9756e45b294bb (patch)
tree6019a6c5671948519e61528f4621e3968f704117 /term.h
parent49c322efa56dea298f42cc8bddd6629093d45975 (diff)
downloadmandoc-e1e06ec7dbe31f799c04be32aad9756e45b294bb.tar.gz
mandoc-e1e06ec7dbe31f799c04be32aad9756e45b294bb.tar.zst
mandoc-e1e06ec7dbe31f799c04be32aad9756e45b294bb.zip
Many more ASCII escapes added.
Stripped nroff punt from mdocterm.c. Fixed multiple-file handling for mdocterm.c. Cleared up mdoc.h API.
Diffstat (limited to 'term.h')
-rw-r--r--term.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/term.h b/term.h
index 206dada2..14112bd7 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.26 2009/03/17 13:35:46 kristaps Exp $ */
+/* $Id: term.h,v 1.27 2009/03/19 11:49:00 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -21,20 +21,18 @@
#include "mdoc.h"
-/* XXX - clean up tabs. */
+/* FIXME - clean up tabs. */
#define INDENT 6
__BEGIN_DECLS
struct termp {
- size_t rmargin;
- size_t maxrmargin;
- size_t maxcols;
- size_t offset;
- size_t col;
- int iflags;
-#define TERMP_NOPUNT (1 << 0)
+ size_t rmargin; /* Current right margin. */
+ size_t maxrmargin; /* Max right margin. */
+ size_t maxcols; /* Max size of buf. */
+ size_t offset; /* Margin offest. */
+ size_t col; /* Bytes in buf. */
int flags;
#define TERMP_NOSPACE (1 << 0) /* No space before words. */
#define TERMP_NOLPAD (1 << 1) /* No leftpad before flush. */
@@ -43,11 +41,11 @@ struct termp {
#define TERMP_IGNDELIM (1 << 4) /* Delims like regulars. */
#define TERMP_NONOSPACE (1 << 5) /* No space (no autounset). */
#define TERMP_NONOBREAK (1 << 7) /* Don't newln NOBREAK. */
-#define TERMP_STYLE 0x0300 /* Style mask. */
+#define TERMP_STYLE 0x0300 /* Style mask. */
#define TERMP_BOLD (1 << 8) /* Styles... */
#define TERMP_UNDER (1 << 9)
- char *buf;
- void *symtab;
+ char *buf; /* Output buffer. */
+ void *symtab; /* Encoded-symbol table. */
};
/* XXX - clean this up. */