From: Jürg Billeter Date: Tue, 27 Feb 2007 18:50:16 +0000 (+0000) Subject: accept interfaces with base types X-Git-Tag: VALA_0_0_6~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cbed2541fe520697cc23fb9c82e0e4901c9f6e3;p=platform%2Fupstream%2Fvala.git accept interfaces with base types 2007-02-27 Jürg Billeter * vala/parser.y: accept interfaces with base types svn path=/trunk/; revision=202 --- diff --git a/vala/ChangeLog b/vala/ChangeLog index 1f94e5c..5459746 100644 --- a/vala/ChangeLog +++ b/vala/ChangeLog @@ -1,3 +1,7 @@ +2007-02-27 Jürg Billeter + + * vala/parser.y: accept interfaces with base types + 2007-02-26 Jürg Billeter * vala/valasymbolresolver.vala: fix error handling with unknown diff --git a/vala/vala/parser.y b/vala/vala/parser.y index a27468c..3e7bed7 100644 --- a/vala/vala/parser.y +++ b/vala/vala/parser.y @@ -2632,7 +2632,7 @@ struct_member_declaration ; interface_declaration - : comment opt_attributes opt_access_modifier INTERFACE IDENTIFIER opt_name_specifier opt_type_parameter_list + : comment opt_attributes opt_access_modifier INTERFACE IDENTIFIER opt_name_specifier opt_type_parameter_list opt_class_base { char *name = $5; @@ -2666,6 +2666,14 @@ interface_declaration } g_list_free ($7); } + if ($8 != NULL) { + GList *l; + for (l = $8; l != NULL; l = l->next) { + vala_interface_add_base_type (current_interface, l->data); + g_object_unref (l->data); + } + g_list_free ($8); + } } interface_body {