vala r905 - in trunk: . vala
- From: rasa svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r905 - in trunk: . vala
- Date: Thu, 24 Jan 2008 14:16:19 +0000 (GMT)
Author: rasa
Date: Thu Jan 24 14:16:19 2008
New Revision: 905
URL: http://svn.gnome.org/viewvc/vala?rev=905&view=rev
Log:
2008-01-24 Raffaele Sandrini <raffaele sandrini ch>
* vala/parser.y: allow constant declarations in structs
Modified:
trunk/ChangeLog
trunk/vala/parser.y
Modified: trunk/vala/parser.y
==============================================================================
--- trunk/vala/parser.y (original)
+++ trunk/vala/parser.y Thu Jan 24 14:16:19 2008
@@ -3590,7 +3590,15 @@
;
struct_member_declaration
- : field_declaration
+ : constant_declaration
+ {
+ /* skip declarations with errors */
+ if ($1 != NULL) {
+ vala_struct_add_constant (VALA_STRUCT (symbol_stack->data), $1);
+ g_object_unref ($1);
+ }
+ }
+ | field_declaration
{
/* skip declarations with errors */
if ($1 != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]