[haiku-gsoc] Re: Xsi semaphorses: patch #1

  • From: "Rene Gollent" <anevilyak@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 15 Jul 2008 12:52:28 -0500

On Tue, Jul 15, 2008 at 12:17 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> Actually variable declarations are allowed at the beginning of every block,
> which is respected in this case. It seems that the gcc-specific __typeof()
> feature doesn't work in C, though. Which pretty much defeats the purpose of
> using it, since for C++ I could have used an inline template function instead.

Not with C89, try for yourself :) It fails even without using that
macro, just try to declare a variable someplace after having written a
non-decl line of code.

Regards,

Rene

Other related posts: