From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine the argument type... Date: Sun, 01 Jun 2003 13:07:19 -0700 Organization: Home Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <3EDA5CF7.6DD3BAAA@veritas.com> References: <3EBC71BF.B2264C7@veritas.com> <874r3t5o1f.fsf@zagadka.ping.de> <3EC6A6CA.94855664@veritas.com> <87of213tk0.fsf@zagadka.ping.de> <87ptmfx0i3.fsf@zip.com.au> <874r39prgm.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054497529 16647 80.91.224.249 (1 Jun 2003 19:58:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2003 19:58:49 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 01 21:58:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MYye-0004KH-00 for ; Sun, 01 Jun 2003 21:58:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MYzj-0002an-RF for guile-devel@m.gmane.org; Sun, 01 Jun 2003 15:59:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19MYyj-0001sw-QI for guile-devel@gnu.org; Sun, 01 Jun 2003 15:58:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MYyh-0001qv-Sf for guile-devel@gnu.org; Sun, 01 Jun 2003 15:58:52 -0400 Original-Received: from bay-bridge.veritas.com ([143.127.3.10] helo=bach.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19MYy3-0001Kq-8R for guile-devel@gnu.org; Sun, 01 Jun 2003 15:58:11 -0400 Original-Received: from veritas.com (localhost [127.0.0.1]) by bach.veritas.com (Postfix) with ESMTP id 4D03F270CF; Sun, 1 Jun 2003 13:07:19 -0700 (PDT) X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.19-4GB i686) X-Accept-Language: en Original-To: Marius Vollmer X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2467 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2467 Marius Vollmer wrote: > > > Ahh, I see. Yes, it was not a good thing to change gh_new2str that > > > way. I'm not sure what to do about this. Changing this back is just > > > as bad as the original change from int to size_t. > > > > The manual still says "int". > > Maybe call it a bug fix and put it back to that. > > Hmm, no, I prefer changing the docs. "size_t" is the right type, and > not many people seem to be affected by the int -> size_t change, so we > chould leave it at size_t. "int" is fine for the purpose since there is little need to cope with multi-gigabyte strings. OTOH, you have two libraries in the field. Right now, clients writing to the 1.4 interface that use the length argument to gh_new2str are hosed on I32LP64 platforms. If you were to change it back, clients writing to the current interface using that argument would be hosed on I32LP64 platforms. Re-doc it and leave it be (says the guy who was first to cry "ouch" from stubbing his toe on this.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel