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.44.9~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa5aa7e9654530f905540a2381dd071557da3659;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 ebdcac8b7..bde218233 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2306,7 +2306,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);