From cae955eba273fc12eed645a33b7dd4b4bd586b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Fri, 25 Oct 2019 00:26:06 +0200 Subject: [PATCH] docs: hacking: document removal of VIR_STR(N)DUP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ján Tomko Reviewed-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- docs/hacking.html.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/hacking.html.in b/docs/hacking.html.in index 06deab9e90..74aba5d46b 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -1040,9 +1040,6 @@ BAD: a single method. Keep the style consistent, converting existing code to GLib style in a separate, prior commit. -
VIR_STRDUP, VIR_STRNDUP
-
Prefer the GLib APIs g_strdup and g_strndup.
-
virStrerror
The GLib g_strerror() function should be used instead, which has a simpler calling convention as an added benefit.
@@ -1071,8 +1068,6 @@ BAD:

String allocation macros and functions:

- - @@ -1108,6 +1103,9 @@ BAD:
The GLib macros g_autoptr and G_DEFINE_AUTOPTR_CLEANUP_FUNC should be used to manage autoclean of virObject classes. This matches usage with GObject classes.
+ +
VIR_STRDUP, VIR_STRNDUP
+
Prefer the GLib APIs g_strdup and g_strndup.
deprecated versionGLib versionNotes
VIR_STRDUPg_strdup
VIR_STRNDUPg_strndup
virAsprintfg_strdup_printf
virVasprintfg_strdup_vprint use g_vasprintf if you really need to know the returned length
@@ -1128,6 +1126,8 @@ BAD: + +
deleted versionGLib versionNotes
ATTRIBUTE_RETURN_CHECKG_GNUC_WARN_UNUSED_RESULT
ATTRIBUTE_SENTINELG_GNUC_NULL_TERMINATED
ATTRIBUTE_UNUSEDG_GNUC_UNUSED
VIR_STRDUPg_strdup
VIR_STRNDUPg_strndup