From: Evan Nemerson Date: Sat, 23 Oct 2010 07:56:09 +0000 (-0700) Subject: vapigen: fix handling of type_name on fields X-Git-Tag: 0.11.1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95f0705a3b98e7259e21fc66860da9b0110107ce;p=thirdparty%2Fvala.git vapigen: fix handling of type_name on fields --- diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 438a8c796..22258670c 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -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) {