[vala/staging: 4/4] codegen: Deprecate "ctype" ccode-attribute
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/4] codegen: Deprecate "ctype" ccode-attribute
- Date: Fri, 9 Nov 2018 17:15:21 +0000 (UTC)
commit 300cfe1985ee6075583c73d4eddb64d09cee941f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Jul 16 21:10:03 2018 +0200
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]