From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4ENcJ7U012856 for ; Sat, 14 May 2011 19:38:20 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id A1FA91549F5 for ; Sun, 15 May 2011 01:38:13 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id 7AuG4cgb2B5a for ; Sun, 15 May 2011 01:38:11 +0200 (CEST) X-KTH-Auth: kristaps [192.75.139.254] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: source@mdocml.bsd.lv Received: from macky.local (unknown [192.75.139.254]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 7A1C2154136 for ; Sun, 15 May 2011 01:38:10 +0200 (CEST) Message-ID: <4DCF1260.1010706@bsd.lv> Date: Sat, 14 May 2011 19:38:08 -0400 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 To: source@mdocml.bsd.lv Subject: Re: mdocml: Make some values "int" that were "size_t". References: <201105141815.p4EIFKFE011510@krisdoz.my.domain> <20110514213538.GA10541@britannica.bec.de> In-Reply-To: <20110514213538.GA10541@britannica.bec.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > This sounds like going into the completely wrong direction... That may be, but I'd rather have things as int from the start than cast to int in array indices, which may hide errors. Furthermore, term.c is going to get a lot of intention in migrating to Unicode, and I don't want to be distracted by casts. The casting is because lint on OpenBSD complains about indices being non-int, and the fewer lint errors, the more I can see real errors. With this new code, I'll be running lint a lot to catch things I don't. When the shittiness of OpenBSD's lint are resolved, I'll change all this to the "right" typing (it's a mechanical change for the most part anyway). Yes, this situation sucks, but it's reality. -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv