Stefan Dösinger stefandoesinger@gmx.at writes:
Obviously there is a little memory requirement for the heap management structures that belong to a 0 byte allocation. But extra code to check if This->decls is NULL + a HeapAlloc call need a few bytes too...
I can change that to allocate one or two start entries, but I personally think that 0 bytes are good to start with here.
I don't think so. Either you don't want to waste memory and you don't allocate anything unless needed, or you want to save some work on realloc and you allocate a reasonable buffer to start with. Allocating zero bytes has the drawbacks of both without the benefits.