[PATCH] Speed up manifest parsing by 4x

Adrian Buehlmann adrian at cadifra.com
Wed Mar 26 11:11:04 CDT 2008


On 26.03.2008 16:12, Matt Mackall wrote:
> On Wed, 2008-03-26 at 15:58 +0100, Adrian Buehlmann wrote:
>> Thus my yet unanswered question whether declarations of variables in the
>> middle of a compound statement are allowed.
> 
> No. While some compilers allow it as part of C99, it's still not widely
> portable and will leave a lot of C programmers scratching their heads. 

Ok. That was the key point. I think I got it now, thanks.
It's a pity to not yet have C99 available as a common denominator.

Tracking initializations of stack based pointers that are not initialized
right at their definition is what makes *me* scratching my head when reading
C/C++ code :-)

Back in the mid-nineties, we've spent nearly a week hunting one particular such
"uninitialized shooting pointer" bug in the C code of a larger embedded system
project. I just never forgot that.



More information about the Mercurial-devel mailing list