guile-user
[Top][All Lists]
Advanced

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

optionals in C procedures


From: Zeeshan Ali (Khattak)
Subject: optionals in C procedures
Date: Sun, 4 Apr 2010 18:15:00 +0300

Hi,
  As soon as I updated my guile installation from git master, the test
app in my guile-gir project started to fail. On a bit of
investigation, I found out that the problem is in this code:

<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?

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




reply via email to

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