External SVN item in kdebase/runtime/nepomuk/services/queryservice/lib

Andreas Pakulat apaku at gmx.de
Thu Sep 18 08:11:27 BST 2008


On 18.09.08 00:08:35, Thiago Macieira wrote:
> Andreas Pakulat wrote:
> >- a code-generator provides a memory pool for the AST nodes, but
> >  kdevelop doesn't want to force everybody to compile that
> >  playground-generator. So it includes pre-generated code, but still
> >  needs the headers for the memory pool. Copying the headers would
> >  mean real code-duplication, so its an external. OTOH the generator
> >  should not depend on kdevelop.
> 
> If the generated code needs headers, those headers have to be installed or 
> made part of the generated code.
> 
> It's just like bison: imagine you have the .y source file and you commit 
> the generated .cpp file. But that .cpp file requires headers from bison.

The headers are also generated by bison. Which is different that the
above case, where the memory-pool headers are independent of the
generated code. And no, I won't copy the code around as its already 3
places thats using that code (IIRC). Thats called a maintenance
nightmare.

Andreas

-- 
Tomorrow, you can be anywhere.




More information about the kde-core-devel mailing list