提交 bd5519de 编写于 作者: J Ján Tomko

internal: introduce a family of NULLSTR macros

NULLSTR_EMPTY, the quiet child,
NULLSTR_STAR, the famous one and
NULLSTR_MINUS, the grumpy one.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
上级 5657e222
......@@ -245,6 +245,21 @@
*/
# define EMPTYSTR(s) ((s) ? (s) : "-")
/*
* Turn a NULL string into an empty string
*/
# define NULLSTR_EMPTY(s) ((s) ? (s) : "")
/*
* Turn a NULL string into a star
*/
# define NULLSTR_STAR(s) ((s) ? (s) : "*")
/*
* Turn a NULL string into a minus sign
*/
# define NULLSTR_MINUS(s) ((s) ? (s) : "-")
/**
* SWAP:
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册