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 544871 - No way to specify cname of array length in a vapi struct declaration.
No way to specify cname of array length in a vapi struct declaration.
Status: RESOLVED DUPLICATE of bug 565793
Product: vala
Classification: Core
Component: Arrays
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-26 18:25 UTC by Stef Walter
Modified: 2009-01-03 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Demonstrates the missing functionality (10.00 KB, application/x-compressed-tar)
2008-07-26 18:27 UTC, Stef Walter
Details

Description Stef Walter 2008-07-26 18:25:51 UTC
Given a C struct declaration like:

	typedef struct _ApiBlah {
		guchar *blah;
		guint length_of_blah;
	} ApiBlah;

We cannot use a vapi declaration like:

	public struct Blah {
		public uchar[] blah;
	}

... because there is no way to specify that 'length_of_blah' should be used as the length of the uchar[] array. 

Complete test case in attachment.
Comment 1 Stef Walter 2008-07-26 18:27:06 UTC
Created attachment 115330 [details]
Demonstrates the missing functionality

Demonstrates the missing functionality
Comment 2 Jürg Billeter 2009-01-03 17:29:08 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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