From b399f6ed25a3a9bcf7263a89d1058879fd11ff62 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 21 Aug 2013 21:20:40 +0000 Subject: 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. --- term.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term.h') diff --git a/term.h b/term.h index 051080b2..6aa9934e 100644 --- a/term.h +++ b/term.h @@ -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 * @@ -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. */ -- cgit v1.2.3-56-ge451