From: Ján Tomko Date: Thu, 24 Oct 2019 22:26:06 +0000 (+0200) Subject: docs: hacking: document removal of VIR_STR(N)DUP X-Git-Tag: v6.0.0-rc1~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae955eba273fc12eed645a33b7dd4b4bd586b51;p=thirdparty%2Flibvirt.git docs: hacking: document removal of VIR_STR(N)DUP Signed-off-by: Ján Tomko Reviewed-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- 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