summaryrefslogtreecommitdiff
path: root/lib/skin_parser
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-03-15 23:26:07 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-03-15 23:26:07 +1100
commit5edae54e0d11e810040380aace455af7ec7c8d08 (patch)
tree069ff654d79817ea14ad249d6995e2cad8e71374 /lib/skin_parser
parent182a6c80ba4418f0244a28c932a2b36c61defd0b (diff)
skin_engine: Reenable skin debugging in the sim (use --debugwps)
Change-Id: I2881edda45cd3ea69f5284d93bc93c47bb63b3f2
Diffstat (limited to 'lib/skin_parser')
-rw-r--r--lib/skin_parser/SOURCES2
-rw-r--r--lib/skin_parser/skin_debug.c4
-rw-r--r--lib/skin_parser/skin_debug.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/skin_parser/SOURCES b/lib/skin_parser/SOURCES
index 37a6e9a03c..a036670b37 100644
--- a/lib/skin_parser/SOURCES
+++ b/lib/skin_parser/SOURCES
@@ -1,6 +1,6 @@
skin_buffer.c
skin_parser.c
-#if !defined(ROCKBOX) || defined(__PCTOOL__)
+#if !defined(ROCKBOX) || defined(__PCTOOL__) || defined(SIMULATOR)
skin_debug.c
#endif
skin_scan.c
diff --git a/lib/skin_parser/skin_debug.c b/lib/skin_parser/skin_debug.c
index ecf238f1b1..9537182341 100644
--- a/lib/skin_parser/skin_debug.c
+++ b/lib/skin_parser/skin_debug.c
@@ -283,7 +283,7 @@ void skin_debug_params(int count, struct skin_tag_parameter params[])
}
}
-void skin_debug_indent()
+void skin_debug_indent(void)
{
int i;
for(i = 0; i < debug_indent_level; i++)
@@ -293,7 +293,7 @@ void skin_debug_indent()
#endif
#define MIN(a,b) ((a<b)?(a):(b))
-void skin_error_format_message()
+void skin_error_format_message(void)
{
int i;
char text[128];
diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h
index 3f1a7d7edd..e9fc27a10e 100644
--- a/lib/skin_parser/skin_debug.h
+++ b/lib/skin_parser/skin_debug.h
@@ -28,7 +28,7 @@ extern "C"
{
#endif
-#if !defined(ROCKBOX) || defined(__PCTOOL__)
+#if !defined(ROCKBOX) || defined(__PCTOOL__) || defined(SIMULATOR)
#define SKINPARSER_DEBUG
#endif
@@ -41,7 +41,7 @@ int skin_error_col(void);
char* skin_error_message(void);
void skin_clear_errors(void);
void skin_debug_tree(struct skin_element* root);
-void skin_error_format_message();
+void skin_error_format_message(void);
/* Auxiliary debug functions */
void skin_debug_params(int count, struct skin_tag_parameter params[]);