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 614676 - No C code for struct constants
No C code for struct constants
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator
0.24.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-02 16:59 UTC by Aleksey Lim
Modified: 2018-05-22 13:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
correct the behaviour of constant declarations for structs (877 bytes, patch)
2011-12-18 18:50 UTC, Aaron Andersen
none Details | Review

Description Aleksey Lim 2010-04-02 16:59:50 UTC
With foo.vala:

public struct Foo {
    public int bar;
}
public const Foo foobar = { 1 };

valac --header foo.h --use-header foo.vala

generates code for foobar constant only in header but nothing in C file
Comment 1 Aaron Andersen 2011-12-18 18:50:35 UTC
Created attachment 203805 [details] [review]
correct the behaviour of constant declarations for structs
Comment 2 GNOME Infrastructure Team 2018-05-22 13:31:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/81.