From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine the argument type... Date: Thu, 12 Jun 2003 08:33:13 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87r860nt1y.fsf@zip.com.au> 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: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1055370873 14804 80.91.224.249 (11 Jun 2003 22:34:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2003 22:34:33 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 12 00:34:30 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 19QEAn-0003q2-00 for ; Thu, 12 Jun 2003 00:34:29 +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 19QECf-0001BY-VZ for guile-devel@m.gmane.org; Wed, 11 Jun 2003 18:36:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QEB8-0000go-I5 for guile-devel@gnu.org; Wed, 11 Jun 2003 18:34:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QEAu-0000Vx-FE for guile-devel@gnu.org; Wed, 11 Jun 2003 18:34:37 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QEAA-0008Mk-PK for guile-devel@gnu.org; Wed, 11 Jun 2003 18:33:51 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h5BMXiYd019193 for ; Thu, 12 Jun 2003 08:33:45 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h5BMXiQg026602 for ; Thu, 12 Jun 2003 08:33:44 +1000 (EST) Original-Received: from localhost (ppp124.dyn228.pacific.net.au [203.143.228.124]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h5BMXcYZ005594 for ; Thu, 12 Jun 2003 08:33:43 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19QE9a-0000bk-00; Thu, 12 Jun 2003 08:33:14 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never In-Reply-To: <874r39prgm.fsf@zagadka.ping.de> (Marius Vollmer's message of "01 Jun 2003 20:45:13 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) 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:2517 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2517 --=-=-= Marius Vollmer writes: > > 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. Not that it's much to do with me, but while I'm working on the docs I made this change. * gh.texi (Scheme to C): In gh_scm2newstr, lenp is size_t* not int*. This changed in guile 1.6, the docs weren't updated. Dunno if the manual itself needs a compatibility note. If no-one else has tripped over it and the interface itself is considered obsolete then hardly worth worrying. --=-=-= Content-Disposition: attachment; filename=gh.texi.gh_scm2newstr.diff --- gh.texi.~1.6.~ 2003-04-05 16:47:18.000000000 +1000 +++ gh.texi 2003-06-10 16:47:40.000000000 +1000 @@ -433,7 +433,7 @@ These routines convert the Scheme object to the given C type. @end deftypefun -@deftypefun char *gh_scm2newstr (SCM @var{str}, int *@var{lenp}) +@deftypefun char *gh_scm2newstr (SCM @var{str}, size_t *@var{lenp}) Given a Scheme string @var{str}, return a pointer to a new copy of its contents, followed by a null byte. If @var{lenp} is non-null, set @code{*@var{lenp}} to the string's length. --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--