From: Rico Tzschichholz Date: Sun, 22 Sep 2019 16:29:43 +0000 (+0200) Subject: Directly use "memmove()" while g_memmove() is deprecated since 2.40 X-Git-Tag: 0.46.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be4669eab5f6d7c38b536e0c1807ab15c54eea38;p=thirdparty%2Fvala.git Directly use "memmove()" while g_memmove() is deprecated since 2.40 --- diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala index 07a9a5399..ebef88793 100644 --- a/codegen/valaccodearraymodule.vala +++ b/codegen/valaccodearraymodule.vala @@ -352,7 +352,7 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule { var dest_address = new CCodeBinaryExpression (CCodeBinaryOperator.PLUS, array, new CCodeBinaryExpression (CCodeBinaryOperator.MUL, dest, element_size)); var dest_end_address = new CCodeBinaryExpression (CCodeBinaryOperator.PLUS, array, new CCodeBinaryExpression (CCodeBinaryOperator.MUL, dest_end, element_size)); - var ccall = new CCodeFunctionCall (new CCodeIdentifier ("g_memmove")); + var ccall = new CCodeFunctionCall (new CCodeIdentifier ("memmove")); ccall.add_argument (dest_address); ccall.add_argument (src_address); ccall.add_argument (new CCodeBinaryExpression (CCodeBinaryOperator.MUL, length, element_size)); diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 27f0cef15..5427bf9fb 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2324,7 +2324,7 @@ namespace GLib { public static void* copy (void* dest, void* src, size_t n); [CCode (cname = "memset")] public static void* set (void* dest, int src, size_t n); - [CCode (cname = "g_memmove")] + [CCode (cname = "memmove")] public static void* move (void* dest, void* src, size_t n); [CCode (cname = "g_memdup")] public static void* dup (void* mem, uint n);