After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566078 - Add has_void_ref_function
Add has_void_ref_function
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.5.x
Other Linux
: Normal enhancement
: ---
Assigned To: Jürg Billeter
Vala maintainers
: 545401 566079 (view as bug list)
Depends on:
Blocks: 549061
 
 
Reported: 2008-12-30 20:45 UTC by Andreas Brauchli
Modified: 2009-01-09 23:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add has_void_ref_function CCode attribute (4.24 KB, patch)
2008-12-30 21:01 UTC, Andreas Brauchli
reviewed Details | Review

Description Andreas Brauchli 2008-12-30 20:45:49 UTC
Here's a patch that implements the new CCode property has_void_ref_function which is needed for bindings like libexif whos exif_*_ref functions return void.
Comment 1 Andreas Brauchli 2008-12-30 20:57:37 UTC
*** Bug 566079 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Brauchli 2008-12-30 21:01:28 UTC
Created attachment 125549 [details] [review]
Add has_void_ref_function CCode attribute

Also works for array-copying
Comment 3 Jürg Billeter 2008-12-30 21:07:29 UTC
*** Bug 545401 has been marked as a duplicate of this bug. ***
Comment 4 Jürg Billeter 2009-01-06 22:59:33 UTC
2009-01-06  Jürg Billeter  <j@bitron.ch>

	* vala/valaclass.vala:
	* gobject/valaccodebasemodule.vala:

	Support [CCode (ref_function_void = true)] attribute for bindings,
	based on patch by Andreas Brauchli, fixes bug 566078

Fixed in r2279.