From 300cfe1985ee6075583c73d4eddb64d09cee941f Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Mon, 16 Jul 2018 21:10:03 +0200 Subject: [PATCH] codegen: Deprecate "ctype" ccode-attribute This is an alias for "type" --- codegen/valaccodeattribute.vala | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.2