On Mon, Oct 25, 2010 at 4:15 AM, Stefan de Konink <span dir="ltr"><<a href="mailto:stefan@konink.de">stefan@konink.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 25 Oct 2010, Chris Browet wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Sure. I don't think the C -> C++ will be problematic.<br>
</blockquote></blockquote>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote>
<br></div>
I have been thinking about 'hooks' so the defines can become hooks you replace (So somesort of ifndef way.) Or just inline functions...</blockquote><div><br></div><div>I suggest not using #define's. Just have a struct of function pointer callbacks. Indirect jumps are as cheap as ordinary function calls as long as the branch predictor can predict them. In this case, prediction will be 100%.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you'd accept some related patches, it would greatly improve<br>
re-usability and trackability of pbm2osm...<br>
</blockquote>
<br></div>
Obviously I do ;) Just hadn't the time to integrate it yet. And busy day a head with flying ;)</blockquote><div><br></div><div>This work on the C/C++ parser should be merged with the Java repository. There should be one canonical place where the *.proto's are located.</div>
<div><br></div><div>Scott</div><div><br></div></div>