From: Rico Tzschichholz Date: Sat, 23 Feb 2019 19:19:31 +0000 (+0100) Subject: codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function() X-Git-Tag: 0.43.92~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b280ea51de9ed1bb0cbc8aeadfcf3bc604c356d;p=thirdparty%2Fvala.git codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function() --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index aa06395ed..3d4d67640 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -52,7 +52,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { if (ma.inner != null && ma.inner.value_type is EnumValueType && ((EnumValueType) ma.inner.value_type).get_to_string_method() == m) { // Enum.VALUE.to_string() var en = (Enum) ma.inner.value_type.data_type; - ccall.call = new CCodeIdentifier (generate_enum_tostring_function (en)); + ccall.call = new CCodeIdentifier (generate_enum_to_string_function (en)); } else if (context.profile == Profile.POSIX && ma.inner != null && ma.inner.value_type != null && ma.inner.value_type.data_type == string_type.data_type && ma.member_name == "printf") { ccall.call = new CCodeIdentifier (generate_string_printf_function ()); } else if (expr.is_constructv_chainup) { @@ -887,7 +887,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { } } - private string generate_enum_tostring_function (Enum en) { + private string generate_enum_to_string_function (Enum en) { var to_string_func = "_%s_to_string".printf (get_ccode_lower_case_name (en)); if (!add_wrapper (to_string_func)) {