guile-user
[Top][All Lists]
Advanced

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

Re: optionals in C procedures


From: Andy Wingo
Subject: Re: optionals in C procedures
Date: Mon, 05 Apr 2010 17:18:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Hi,

On Sun 04 Apr 2010 17:15, "Zeeshan Ali (Khattak)" <address@hidden> writes:

> <code>
> static SCM
> scm_g_irepository_require (SCM scm_repository,
>                                                  SCM scm_namespace,
>                                                  SCM scm_version,
>                                                  SCM scm_flags)
> {
>         const char *version;
>
>         if (SCM_UNBNDP (scm_version))
>                 version = NULL;
>         else
>                 version = scm_to_locale_string (scm_version);
> ...
> }
>
>         scm_c_define_gsubr ("g-irepository-require", 2, 2, 0,
> scm_g_irepository_require);
>
>
> </code>
>
>    Whats happening is that my scheme code is not passing any value to
> the optional argument version and guile is not making sure that the
> argument is unbound. Is this a regression or some intentional change?

I think you might need to make clean && make, in Guile and in your
project. (The actual value for SCM_UNDEFINED changed, and I have seen
cases in which automake doesn't get the deps right. This sort of thing
won't happen after 2.0.)

Andy
-- 
http://wingolog.org/




reply via email to

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