diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-08-21 21:20:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-08-21 21:20:40 +0000 |
commit | b399f6ed25a3a9bcf7263a89d1058879fd11ff62 (patch) | |
tree | eb719a582df564ac523e9c804c95dc5044a6be01 /term.h | |
parent | 01fc3eec52b1d1890d4b6d6648a2972ace088e95 (diff) | |
download | mandoc-b399f6ed25a3a9bcf7263a89d1058879fd11ff62.tar.gz mandoc-b399f6ed25a3a9bcf7263a89d1058879fd11ff62.tar.zst mandoc-b399f6ed25a3a9bcf7263a89d1058879fd11ff62.zip |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.93 2013/08/08 20:07:47 schwarze Exp $ */ +/* $Id: term.h,v 1.94 2013/08/21 21:20:40 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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. */ |