[vala/staging] Directly use "memmove()" while g_memmove() is deprecated since 2.40
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] Directly use "memmove()" while g_memmove() is deprecated since 2.40
- Date: Sun, 22 Sep 2019 16:40:13 +0000 (UTC)
commit be4669eab5f6d7c38b536e0c1807ab15c54eea38
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 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]