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