[pulseaudio-commits] r2045 - /trunk/src/pulsecore/macro.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Nov 11 14:59:35 PST 2007


Author: lennart
Date: Sun Nov 11 23:59:34 2007
New Revision: 2045

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2045&root=pulseaudio&view=rev
Log:
add new function pa_strnull() to simplify passing null strings to non-linux printf()

Modified:
    trunk/src/pulsecore/macro.h

Modified: trunk/src/pulsecore/macro.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/macro.h?rev=2045&root=pulseaudio&r1=2044&r2=2045&view=diff
==============================================================================
--- trunk/src/pulsecore/macro.h (original)
+++ trunk/src/pulsecore/macro.h Sun Nov 11 23:59:34 2007
@@ -152,4 +152,8 @@
 #define PA_PATH_SEP_CHAR '/'
 #endif
 
+static inline const char *pa_strnull(const char *x) {
+    return x ? x : "(null)";
+}
+
 #endif




More information about the pulseaudio-commits mailing list