diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-19 11:49:00 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-19 11:49:00 +0000 |
commit | 8ee53c583c595b24d97899cd5886383c71b8ae13 (patch) | |
tree | d6390344f213484dcc0f820f44c5c9eb0daebfb8 /term.h | |
parent | 8d40b5056c9c50a5a27194d603247a8d5ab3227a (diff) | |
download | mandoc-8ee53c583c595b24d97899cd5886383c71b8ae13.tar.gz |
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.h | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -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. */ |