• M
    virstring: Introduce VIR_STRDUP and VIR_STRNDUP · c3abb5c4
    Michal Privoznik 提交于
    The code adaptation is not done right now, but in subsequent patches.
    Hence I am not implementing syntax-check rule as it would break
    compilation. Developers are strongly advised to use these new macros.
    They are similar to VIR_ALLOC() logic: VIR_STRDUP(dst, src) returns zero
    on success, -1 otherwise. In case you don't want to report OOM error,
    use the _QUIET variant of a macro.
    c3abb5c4
hacking.html.in 36.7 KB