From: Rico Tzschichholz Date: Mon, 16 Jul 2018 19:10:03 +0000 (+0200) Subject: codegen: Deprecate "ctype" ccode-attribute X-Git-Tag: 0.43.1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300cfe1985ee6075583c73d4eddb64d09cee941f;p=thirdparty%2Fvala.git codegen: Deprecate "ctype" ccode-attribute This is an alias for "type" --- diff --git a/codegen/valaccodeattribute.vala b/codegen/valaccodeattribute.vala index 6acdafde9..3740d232a 100644 --- a/codegen/valaccodeattribute.vala +++ b/codegen/valaccodeattribute.vala @@ -291,6 +291,9 @@ public class Vala.CCodeAttribute : AttributeCache { _ctype = ccode.get_string ("type"); if (_ctype == null) { _ctype = ccode.get_string ("ctype"); + if (_ctype != null) { + Report.deprecated (node.source_reference, "[CCode (ctype = \"...\")] is deprecated, use [CCode (type = \"...\")] instead."); + } } } ctype_set = true;