[Top][All Lists]

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

Re: [gnugo-devel] inline

From: Gunnar Farneback
Subject: Re: [gnugo-devel] inline
Date: Wed, 25 Sep 2002 20:45:43 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

Arend wrote:
> I don't know how __inline__ would be treated by other compilers
> (recommended in the gcc docs for inline use in ansi-compliant header
> files).

Extremely unportable I think. Identifiers starting with double
underscores are reserved for the compiler's internal use and there's
no telling what various compilers would do with it.

> > A precondition for using inline at all is that we can determine
> > whether it's supported through the configure mechanism. There's some
> > research left to do in this area.
> Test whether
> "static inline int foo() { return 1; } int main() { if foo() exit; }"
> or a similar non-sense can get compiled?

It seems to me like some other project using autoconf must have come
across this before us and implemented a solution. Remains the question
how to find such a project, of course.


reply via email to

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