[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I determine the argument type...
From: |
Marius Vollmer |
Subject: |
Re: How do I determine the argument type... |
Date: |
18 May 2003 03:57:51 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Bruce Korb <address@hidden> writes:
> > 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
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.
Personally, I would stop supporting Guile 1.4 and just require Guile
1.6 for newer versions of your code...
I dirty workaround, in this particular case, might be to always pass
NULL as lenp and get the length via scm_string_length (or strlen if
you don't care about '\0' characters in the middle of the string).
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
- How do I determine the argument type..., Bruce Korb, 2003/05/09
- Re: How do I determine the argument type..., Bruce Korb, 2003/05/09
- Re: How do I determine the argument type..., Marius Vollmer, 2003/05/17
- Re: How do I determine the argument type..., Bruce Korb, 2003/05/17
- Re: How do I determine the argument type..., Kevin Ryde, 2003/05/18
- Re: How do I determine the argument type..., Bruce Korb, 2003/05/18
- Re: How do I determine the argument type..., Kevin Ryde, 2003/05/18
- Re: How do I determine the argument type..., Bruce Korb, 2003/05/18