From 870402d5f242edae95cf03e4028d469e8a71598c Mon Sep 17 00:00:00 2001 From: jdgordon Date: Thu, 24 Jun 2010 14:46:21 +0000 Subject: [PATCH] dont build the debug code in ROCKBOX, save ~400bytes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27109 a1c6a512-1295-4272-9138-f99709370657 --- lib/skin_parser/SOURCES | 2 ++ lib/skin_parser/skin_debug.h | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/skin_parser/SOURCES b/lib/skin_parser/SOURCES index d99e63cd3..302479725 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 1c096ce95..8fc061a9f 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 } -- 2.11.4.GIT