[Github-comments] [geany] Gi sci methods (#935)

Colomban Wendling notifications at xxxxx
Sun Mar 6 15:14:38 UTC 2016


I don't like the idea of generating a source file to create alias symbols, just because the GIR generator tool can't be properly told to put those as methods of the object.

Can't you, instead of actually adding the symbols, trick the tool to understand what you want?  Basically, rename the symbols it parses, and then fix them back in the output so they refer the actual name.

Maybe something roughly around those lines:
```shell
TEMP_HEADER=geany-gtkdoc-sciobjected.h

sed 's/sci_/scintilla_object_/' geany-gtkdoc.h > $TEMP_HEADER
g-ir-scanner ... $TEMP_HEADER
sed 's/cname="scintilla_object_/cname="sci_/' -i Geany-1.0.gir
```

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/935#issuecomment-192912469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160306/40e76736/attachment.html>


More information about the Github-comments mailing list