Am 06.03.2016 um 16:14 schrieb Colomban Wendling:<br>
><br>
> I don't like the idea of generating a source file to create alias <br>
> symbols, just because the GIR generator tool can't be properly told to <br>
> put those as methods of the object.<br>
><br>
> Can't you, instead of actually adding the symbols, trick the tool to <br>
> understand what you want? Basically, rename the symbols it parses, and <br>
> then fix them back in the output so they refer the actual name.<br>
><br>
> Maybe something roughly around those lines:<br>
><br>
> TEMP_HEADER=geany-gtkdoc-sciobjected.h<br>
><br>
> sed's/sci_/scintilla_object_/'  geany-gtkdoc.h>  $TEMP_HEADER<br>
> g-ir-scanner ...$TEMP_HEADER<br>
> sed's/cname="scintilla_object_/cname="sci_/'  -i Geany-1.0.gir<br>
<br>
I'd like to treat the .gir like a black box as far as possible because <br>
the format is not documented or stable, subject to change at any time. I <br>
don't consider the extra symbols to be that much of a problem to start <br>
processing the .gir.<br>
<br>
I also don't want to lose access to the actual sci_* functions.<br>
<br>
 > Do you really need another tool to parse the C code? Isn't the <br>
Doxygen stuff enough, as it's already used to generate some C header?<br>
<br>
Might be doable with the doxygen too.  The problem with a doxygen-based <br>
solution is that the doxygen output is generated after lingeany is <br>
built, basically too late to add symbols to it.<br>
<br>
Also, pycparser was quicker for me since the release is so soon.<br>
<br>
If we can agree on shipping the symbols then I'd suggest to actually <br>
ship the .c file and deal with how to generate after the release (I'm <br>
not sure I'll manage to bring a doxygen-based solution in time).<br>
<br>
Best regards.<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/935#issuecomment-192914969">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_isMqGFWb6fkwQ3aNWsSQE6Abgfks5pqvOPgaJpZM4HqIcu.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/935#issuecomment-192914969"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>