www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - bcdgen and gccxml: detecting parse errors?

reply Lutger <lutger.blijdestijn gmail.com> writes:
When bcdgen parses a header file with errors, it still completes the 
translation. Is there a way I can get bcdgen to error out? I think it's a 
gccxml thing, for even while detecting errors it returns 0.

The problem is that some projects seem to have header files which are only 
useful if included at some specific point in another header file (like X11). 
I'd like to script making bindings, for which it would be useful to skip 
erratic header files. 
Jan 26 2009
parent reply Lutger <lutger.blijdestijn gmail.com> writes:
So it was my error, some modifications I made to bcdgen.

Sorry for the noise.

* why is it that these dumb mistakes always get apparent at once AFTER 
posting ...*
Jan 26 2009
parent John Reimer <terminal.node gmail.com> writes:
Hello lutger,

 So it was my error, some modifications I made to bcdgen.
 
 Sorry for the noise.
 
 * why is it that these dumb mistakes always get apparent at once AFTER
 posting ...*
 
Because the newsgroup version of Murphy's Law is fairly consistant? :D At the very least, knowing this law, we should feel the urge to post as often and rashly as possible so that we are guaranteed to find all our bugs as quickly as possible. ;D Admittedly, I've fallen prey to this many times. :) All the best! -JJR
Jan 26 2009