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: Sat, 17 May 2003 14:16:58 -0700 Organization: Home Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <3EC6A6CA.94855664@veritas.com> References: <3EBC71BF.B2264C7@veritas.com> <874r3t5o1f.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 1053209308 15954 80.91.224.249 (17 May 2003 22:08:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 17 May 2003 22:08:28 +0000 (UTC) Cc: guile development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 18 00:08:26 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 19H9qs-00048z-00 for ; Sun, 18 May 2003 00:08:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19H9rd-0003qg-00 for guile-devel@m.gmane.org; Sat, 17 May 2003 18:09:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19H9rJ-0003KE-00 for guile-devel@gnu.org; Sat, 17 May 2003 18:08:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19H9rE-00036n-00 for guile-devel@gnu.org; Sat, 17 May 2003 18:08:48 -0400 Original-Received: from bay-bridge.veritas.com ([143.127.3.10] helo=mtvmime02.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19H9rB-0002zu-00 for guile-devel@gnu.org; Sat, 17 May 2003 18:08:45 -0400 Original-Received: from megami (unverified) by mtvmime02.veritas.com (Content Technologies SMTPRS 4.3.6) with SMTP id ; Sat, 17 May 2003 14:10:21 -0700 Original-Received: from veritas.com ([172.22.12.211]) (1807 bytes) by megami via sendmail with P:esmtp/R:smart_host/T:smtp (sender: ) id for ; Sat, 17 May 2003 14:08:30 -0700 (PDT) (Smail-3.2.0.101 1997-Dec-17 #15 built 2001-Aug-30) 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:2399 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2399 Marius Vollmer wrote: > > Bruce Korb writes: > > > The problem is with gh_scm2newstr: > > > > size_t len; > > char* pz = gh_scm2newstr( str, &len ); > > > > This is a problem on a platform where the argument is actually > > int* and the platform is I32LP64. i.e., the size_t is 64 bits. > > Since other versions of the library use size_t, I think I'm > > pretty much hosed without using an scm2newstr_size_t :-( > > I don't understand. Both 1.6 and 1.7 have this prototype for > gh_scm2newstr: > > char *gh_scm2newstr (SCM str, size_t *lenp); > > On what platform is the argument actually an "int*"? Can you give a > specific example that must fail? > $ guile --version > Guile 1.4 > Copyright (c) 1995, 1996, 1997, 2000 Free Software Foundation > ... > $ fgrep gh_scm2newstr /opt/TWWfsw/guile14/include/guile/gh.h > char *gh_scm2newstr(SCM str, int *lenp); > $ uname -a > HP-UX kibo B.11.00 A 9000/800 1596730518 two-user license This is an I32LP64 platform. I don't manage it. This is the Guile version they have. It is only 3 years old, not truely ancient. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel