Author: juergbi
Date: Fri Jan 18 17:42:55 2008
New Revision: 853
URL: http://svn.gnome.org/viewvc/vala?rev=853&view=rev

Log:
2008-01-18  Juerg Billeter  <[EMAIL PROTECTED]>

        * vala/scanner.l, vala/parser.y: support pointers as generic type
          arguments


Modified:
   trunk/ChangeLog
   trunk/vala/parser.y
   trunk/vala/scanner.l

Modified: trunk/vala/parser.y
==============================================================================
--- trunk/vala/parser.y (original)
+++ trunk/vala/parser.y Fri Jan 18 17:42:55 2008
@@ -4082,8 +4082,10 @@
        : type
          {
                $$ = $1;
-               if (!vala_unresolved_type_get_is_weak (VALA_UNRESOLVED_TYPE 
($$))) {
-                       vala_unresolved_type_set_takes_ownership 
(VALA_UNRESOLVED_TYPE ($$), TRUE);
+               if (VALA_IS_UNRESOLVED_TYPE ($$)) {
+                       if (!vala_unresolved_type_get_is_weak 
(VALA_UNRESOLVED_TYPE ($$))) {
+                               vala_unresolved_type_set_takes_ownership 
(VALA_UNRESOLVED_TYPE ($$), TRUE);
+                       }
                }
          }
        ;

Modified: trunk/vala/scanner.l
==============================================================================
--- trunk/vala/scanner.l        (original)
+++ trunk/vala/scanner.l        Fri Jan 18 17:42:55 2008
@@ -110,7 +110,7 @@
 "<="           { uploc; return OP_LE; }
 ">="           { uploc; return OP_GE; }
 "=>"           { uploc; return LAMBDA; }
-"<"(("ref"|"weak")" "+)?({ident}".")?{ident}"#"?("[]""#"?)?(","" 
"*({ident}".")?{ident}"#"?("[]""#"?)?)*">"    { yyless (1); uploc; return 
GENERIC_LT; }
+"<"{space}("weak"{space})?({ident}".")?{ident}("?"|"*"+)?("[]""?"?)?(","{space}("weak"{space})?({ident}".")?{ident}("?"|"*"+)?("[]""?"?)?)*">"
 { yyless (1); uploc; return GENERIC_LT; }
 "<"            { uploc; return OP_LT; }
 ">"            { uploc; return OP_GT; }
 "!"            { uploc; return OP_NEG; }
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to