summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-08-21 21:20:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-08-21 21:20:40 +0000
commit6b008d7b7367077ae625b92a7b6557dc3f7ff7b1 (patch)
treea307e0b038132c17c639c98bc59c8ef8b66659b0 /term.h
parent41ff27a472e8d41a4f16595bd7a581f464e4a2dc (diff)
downloadmandoc-6b008d7b7367077ae625b92a7b6557dc3f7ff7b1.tar.gz
Move the last column-counting members of struct termp (col and maxcols)
from int to size_t, to match some existing ones (offset, *rmargin, viscol). Move some related local variables from int to size_t as well. Needed as a preparation to make a generalized adjbuf() function available beyond the file term.c, i.e. in mandoc.c. Also saves a couple of ugly casts.
Diffstat (limited to 'term.h')
-rw-r--r--term.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.h b/term.h
index b33dcd89..2c6ece97 100644
--- a/term.h
+++ b/term.h
@@ -58,10 +58,10 @@ struct termp {
size_t defrmargin; /* Right margin of the device. */
size_t rmargin; /* Current right margin. */
size_t maxrmargin; /* Max right margin. */
- int maxcols; /* Max size of buf. */
+ size_t maxcols; /* Max size of buf. */
size_t offset; /* Margin offest. */
size_t tabwidth; /* Distance of tab positions. */
- int col; /* Bytes in buf. */
+ size_t col; /* Bytes in buf. */
size_t viscol; /* Chars on current line. */
int overstep; /* See termp_flushln(). */
int skipvsp; /* Vertical space to skip. */