]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Directly use "memmove()" while g_memmove() is deprecated since 2.40
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 22 Sep 2019 16:29:43 +0000 (18:29 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 22 Sep 2019 16:29:43 +0000 (18:29 +0200)
codegen/valaccodearraymodule.vala
vapi/glib-2.0.vapi

index 07a9a53991e0f23d2be25017696a860a76ee1d3d..ebef8879305be144f096083df1dee4e2623073af 100644 (file)
@@ -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));
index 27f0cef15065e27825f5cf6208ba27f512735ea7..5427bf9fb36f7f3f5651eeaba4a405945c7f9d90 100644 (file)
@@ -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);