[Github-comments] [geany] Gtkdoc hdr (#890)

Colomban Wendling notifications at xxxxx
Thu Feb 18 16:56:01 UTC 2016


> > I believe there are a lot of transfer annotations that aren't needed, 
> > and in most case natural to the reader. In such case, I guess I'd 
> > rather leave them out.
> 
> @b4n Which ones? I only added them where needed, that is basically all 
> non-const returns of struct pointers (otherwise g-ir-scanner throws 
> warnings like this:
>  > Geany: editor_create_widget: return value: Invalid non-constant 
> return of bare structure or union; register as boxed type or (skip)

Hum, okay.  I thought if you returned e.g. a `GeanyDocument` pointer it would have had `transfer: none` by default if not a known type or a `_new()` function, but if it's needed OK.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/890#issuecomment-185814167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160218/7ba8f3aa/attachment.html>


More information about the Github-comments mailing list