guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I determine the argument type...


From: Bruce Korb
Subject: Re: How do I determine the argument type...
Date: Sat, 17 May 2003 14:16:58 -0700

Marius Vollmer wrote:
> 
> Bruce Korb <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]