[vala/0.40] Directly use "memmove()" while g_memmove() is deprecated since 2.40



commit 4e2e33f8f55ae49474df7e51cfd6204588084116
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Sep 22 18:29:43 2019 +0200

    Directly use "memmove()" while g_memmove() is deprecated since 2.40

 codegen/valaccodearraymodule.vala | 2 +-
 vapi/glib-2.0.vapi                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index b99c45d38..fccbf3746 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -340,7 +340,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 f2ec488eb..27de140cf 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2294,7 +2294,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]