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
g_strdup
and g_strndup
.virStrerror
g_strerror()
function should be used instead,
which has a simpler calling convention as an added benefit.String allocation macros and functions:
deprecated version | GLib version | Notes |
---|---|---|
VIR_STRDUP | g_strdup | |
VIR_STRNDUP | g_strndup | |
virAsprintf | g_strdup_printf | |
virVasprintf | g_strdup_vprint |
use g_vasprintf if you really need to know the returned length |
deleted version | GLib version | Notes |
---|---|---|
ATTRIBUTE_RETURN_CHECK | G_GNUC_WARN_UNUSED_RESULT | |
ATTRIBUTE_SENTINEL | G_GNUC_NULL_TERMINATED | |
ATTRIBUTE_UNUSED | G_GNUC_UNUSED | |
VIR_STRDUP | g_strdup | |
VIR_STRNDUP | g_strndup |