guile-devel
[Top][All Lists]
Advanced

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

Re: [Patch] SCM_C_INLINE is used wrongly in numbers.c


From: Marius Vollmer
Subject: Re: [Patch] SCM_C_INLINE is used wrongly in numbers.c
Date: 27 Jul 2003 15:36:23 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Andreas Rottmann <address@hidden> writes:

> Matthias Koeppe <address@hidden> writes:
> 
> > When the compiler does not understand the `inline' keyword, configure
> > arranges that SCM_C_INLINE is not defined as a macro.  In this case,
> > libguile/numbers.c (CVS HEAD) cannot be compiled.
> >
> > Here is a patch:
> >
> [snip]
> 
> Wouldn't it be more simple to define SCM_C_INLINE empty?

That would conflict with the way SCM_C_INLINE is used elsewhere.  What
about defining an addditional SCM_C_INLINE_KEYWORD and using that in
numbers.c?

In __scm.h:

    #ifdef SCM_C_INLINE
    #define SCM_C_INLINE_KEYWORD SCM_C_INLINE
    #else
    #define SCM_C_INLINE_KEYWORD
    #endif

I have commited this change already.  Matthias, could you test it?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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