=================================================================== RCS file: /cvs/mandoc/term.h,v retrieving revision 1.51 retrieving revision 1.54 diff -u -p -r1.51 -r1.54 --- mandoc/term.h 2009/11/12 05:50:13 1.51 +++ mandoc/term.h 2010/05/12 16:01:01 1.54 @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.51 2009/11/12 05:50:13 kristaps Exp $ */ +/* $Id: term.h,v 1.54 2010/05/12 16:01:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -29,13 +29,17 @@ enum termfont { TERMFONT_UNDER }; +#define TERM_MAXMARGIN 100000 /* FIXME */ + struct termp { 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 overstep; /* See termp_flushln(). */ int flags; +#define TERMP_SENTENCE (1 << 1) /* Space before a sentence. */ #define TERMP_NOSPACE (1 << 2) /* No space before words. */ #define TERMP_NOLPAD (1 << 3) /* See term_flushln(). */ #define TERMP_NOBREAK (1 << 4) /* See term_flushln(). */