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 669531 - 'internal' functions should be decorated with G_GNUC_INTERNAL
'internal' functions should be decorated with G_GNUC_INTERNAL
Status: RESOLVED DUPLICATE of bug 700157
Product: vala
Classification: Core
Component: Code Generator
0.14.x
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-07 05:56 UTC by Tristan Brindle
Modified: 2013-12-19 00:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tristan Brindle 2012-02-07 05:56:54 UTC
Vala's 'internal' access specifier allows other classes within the same library to access a function without including it in public headers/VAPI files.

GCC (and other compilers) have extensions to potentially make such internal calls more efficient, and also reduce link time by reducing the number of public symbols. GLib provides the G_GNUC_INTERNAL macro for this purpose.

Vala should make use of this, i.e. for functions with 'internal' access, valac should place G_GNUC_INTERNAL before the declaration.
Comment 1 Maciej (Matthew) Piechotka 2013-12-19 00:11:54 UTC
Thanks for the bug report. It looks like I've submitted a duplicate (I've marking this bug as one as the discussion/patches happened there)

*** This bug has been marked as a duplicate of bug 700157 ***