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

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Mon, 14 Jul 2008 18:03:32 +0200 CEST

> On Mon, Jul 14, 2008 at 7:19 AM, Ingo Weinhold <ingo_weinhold@xxxxxx>
> wrote:
> > I don't know why that would cause problems with C files, but
> > there's no
> > reason not to switch to C++.
>
> Pre-C99 C disallows variable declarations anywhere other than the
> beginning of the function, and gcc 2.x at least is completely stupid
> about how it reports errors in that case.

Indeed, and on some projects like NetSurf you just can't use g++
because it crashes even more stupidly, so you must fix those things to
comply with C89.

François.

Other related posts: