projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f873a2a
)
add new function pa_strnull() to simplify passing null strings to non-linux printf()
author
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Nov 2007 22:59:34 +0000
(22:59 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Nov 2007 22:59:34 +0000
(22:59 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2045
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/macro.h
patch
|
blob
|
history
diff --git
a/src/pulsecore/macro.h
b/src/pulsecore/macro.h
index
4b62dd2
..
41af19c
100644
(file)
--- a/
src/pulsecore/macro.h
+++ b/
src/pulsecore/macro.h
@@
-152,4
+152,8
@@
typedef int pa_bool_t;
#define PA_PATH_SEP_CHAR '/'
#endif
+static inline const char *pa_strnull(const char *x) {
+ return x ? x : "(null)";
+}
+
#endif