guile-user
[Top][All Lists]
Advanced

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

Re: Deprecation question - is proposed code-change back-portable to V1.8


From: Andy Wingo
Subject: Re: Deprecation question - is proposed code-change back-portable to V1.8.7?
Date: Sun, 19 Aug 2012 11:50:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

On Thu 16 Aug 2012 15:51, address@hidden (Ludovic Courtès) writes:

>> and if so, does Guile 1.8.7 do exactly the same as Guile 2.06?
>
> Yes, but unfortunately, ‘scm_module_variable’ didn’t exist in Guile
> 1.8.  So you’ll have to #ifdef to use one or the other.

Better to just define scm_module_variable in guile 1.8:

#if defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION < 2)

SCM
scm_module_variable (SCM module, SCM sym)
{
  return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
}

#endif

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

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