Mercurial > hg > xmms-sid
comparison src/xmms-sid.c @ 879:2a50d36215c3
Move error printing function to xs_support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Nov 2012 05:18:36 +0200 |
parents | 0fdb001e456c |
children | 04dc44e87e03 |
comparison
equal
deleted
inserted
replaced
878:9d31c1344f26 | 879:2a50d36215c3 |
---|---|
24 | 24 |
25 #ifdef HAVE_STDLIB_H | 25 #ifdef HAVE_STDLIB_H |
26 #include <stdlib.h> | 26 #include <stdlib.h> |
27 #endif | 27 #endif |
28 | 28 |
29 #include <stdarg.h> | |
30 #include <gdk/gdkkeysyms.h> | 29 #include <gdk/gdkkeysyms.h> |
31 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
32 | 31 |
33 #include "xs_config.h" | 32 #include "xs_config.h" |
34 #include "xs_length.h" | 33 #include "xs_length.h" |
51 static GtkObject *xs_subctrl_adj = NULL; | 50 static GtkObject *xs_subctrl_adj = NULL; |
52 XS_MUTEX(xs_subctrl); | 51 XS_MUTEX(xs_subctrl); |
53 | 52 |
54 void xs_subctrl_close(void); | 53 void xs_subctrl_close(void); |
55 void xs_subctrl_update(void); | 54 void xs_subctrl_update(void); |
56 | |
57 | |
58 /* Error messages | |
59 */ | |
60 void xs_error(const char *fmt, ...) | |
61 { | |
62 va_list ap; | |
63 fprintf(stderr, "XMMS-SID: "); | |
64 va_start(ap, fmt); | |
65 vfprintf(stderr, fmt, ap); | |
66 va_end(ap); | |
67 } | |
68 | |
69 #ifndef DEBUG_NP | |
70 void XSDEBUG(const char *fmt, ...) | |
71 { | |
72 #ifdef DEBUG | |
73 va_list ap; | |
74 fprintf(stderr, "XSDEBUG: "); | |
75 va_start(ap, fmt); | |
76 vfprintf(stderr, fmt, ap); | |
77 va_end(ap); | |
78 #endif | |
79 } | |
80 #endif | |
81 | 55 |
82 | 56 |
83 /* | 57 /* |
84 * Initialization functions | 58 * Initialization functions |
85 */ | 59 */ |