]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: fix handling of type_name on fields
authorEvan Nemerson <evan@coeus-group.com>
Sat, 23 Oct 2010 07:56:09 +0000 (00:56 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sat, 23 Oct 2010 07:56:09 +0000 (00:56 -0700)
vapigen/valagidlparser.vala

index 438a8c79624b2d973667a98e9a2fef0117a79c28..22258670c4a30ec0a1fc0f95801792fa340d061e 100644 (file)
@@ -2434,16 +2434,7 @@ public class Vala.GIdlParser : CodeVisitor {
                                                type.value_owned = true;
                                        }
                                } else if (nv[0] == "type_name") {
-                                       if (eval (nv[1]) == "pointer") {
-                                               type = new PointerType (new VoidType ());
-                                       } else {
-                                               var unresolved_sym = new UnresolvedSymbol (null, eval (nv[1]));
-                                               if (type is ArrayType) {
-                                                       ((UnresolvedType) ((ArrayType) type).element_type).unresolved_symbol = unresolved_sym;
-                                               } else {
-                                                       ((UnresolvedType) type).unresolved_symbol = unresolved_sym;
-                                               }
-                                       }
+                                       type = get_type_from_string (eval (nv[1]));
                                } else if (nv[0] == "type_arguments") {
                                        var type_args = eval (nv[1]).split (",");
                                        foreach (string type_arg in type_args) {