summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-24 14:46:21 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-24 14:46:21 +0000
commit4146882277cdc2145c67b3340d9b3c83b9469148 (patch)
treee95760879c60889a5ddbf6ac5ebc70eadd80b0d5 /lib
parent5da84ec4da4a1e61343854aa6ee92fccbbaf3db5 (diff)
downloadrockbox-4146882277cdc2145c67b3340d9b3c83b9469148.tar.gz
rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.tar.bz2
rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.zip
dont build the debug code in ROCKBOX, save ~400bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/SOURCES2
-rw-r--r--lib/skin_parser/skin_debug.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/skin_parser/SOURCES b/lib/skin_parser/SOURCES
index d99e63cd3b..3024797255 100644
--- a/lib/skin_parser/SOURCES
+++ b/lib/skin_parser/SOURCES
@@ -1,5 +1,7 @@
skin_buffer.c
skin_parser.c
+#ifndef ROCKBOX
skin_debug.c
+#endif
skin_scan.c
tag_table.c
diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h
index 1c096ce952..8fc061a9f9 100644
--- a/lib/skin_parser/skin_debug.h
+++ b/lib/skin_parser/skin_debug.h
@@ -29,7 +29,7 @@ extern "C"
#endif
#include "skin_parser.h"
-
+#ifndef ROCKBOX
/* Debugging functions */
void skin_error(enum skin_errorcode error);
int skin_error_line(void);
@@ -40,6 +40,13 @@ void skin_debug_tree(struct skin_element* root);
/* Auxiliary debug functions */
void skin_debug_params(int count, struct skin_tag_parameter params[]);
void skin_debug_indent(void);
+#else
+
+#define skin_error(...)
+#define skin_clear_errors()
+
+#endif /* !ROCKBOX */
+
#ifdef __cplusplus
}