From f0d4fc6c6b146197c0fc51753d838252766aeda2 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 29 May 2007 19:00:36 +0000 Subject: Commit my patch from FS#7179 - a standalone command-line checkwps tool. To build, just type "make checkwps" in tools and run it with "checkwps wpsname.wps". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13517 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_debug.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/gui/wps_debug.c') diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index 8ba4b6f000..ae542785ae 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c @@ -22,13 +22,17 @@ #include #include #include "gwps.h" +#ifdef __PCTOOL__ +#define DEBUGF printf +#else #include "debug.h" +#endif #define PARSE_FAIL_UNCLOSED_COND 1 #define PARSE_FAIL_INVALID_CHAR 2 #define PARSE_FAIL_COND_SYNTAX_ERROR 3 -#ifdef SIMULATOR +#if defined(SIMULATOR) || defined(__PCTOOL__) extern bool debug_wps; #endif @@ -467,7 +471,7 @@ static void print_img_cond_indexes(struct wps_data *data) void print_debug_info(struct wps_data *data, int fail, int line) { -#ifdef SIMULATOR +#if defined(SIMULATOR) || defined(__PCTOOL__) if (debug_wps) { dump_wps_tokens(data); -- cgit v1.2.3