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

codegen/valaccodeattribute.vala

index dc1e87b4956f27f0506d4f77d2999a14ccf85066..6acdafde9234c272dd437a6cba68179628b94603 100644 (file)
@@ -470,6 +470,9 @@ public class Vala.CCodeAttribute : AttributeCache {
                                        _finish_name = ccode.get_string ("finish_name");
                                        if (_finish_name == null) {
                                                _finish_name = ccode.get_string ("finish_function");
+                                               if (_finish_name != null) {
+                                                       Report.deprecated (node.source_reference, "[CCode (finish_function = \"...\")] is deprecated, use [CCode (finish_name = \"...\")] instead.");
+                                               }
                                        }
                                }
                                if (_finish_name == null) {