]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Deprecate "ctype" ccode-attribute 300cfe1985ee6075583c73d4eddb64d09cee941f
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 16 Jul 2018 19:10:03 +0000 (21:10 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 9 Nov 2018 16:42:58 +0000 (17:42 +0100)
This is an alias for "type"

codegen/valaccodeattribute.vala

index 6acdafde9234c272dd437a6cba68179628b94603..3740d232a9f03ba99bedb1cdff45d9d7937f9b86 100644 (file)
@@ -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;