summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-03-26 23:35:34 +0000
committerDave Chapman <dave@dchapman.com>2008-03-26 23:35:34 +0000
commit78d29f535ff14a5f213125baf63fa2961be17d79 (patch)
treea3d0992ab3a87ab073ed5aafa0529821dcedd31e /apps
parentd75bb78fdad9f3252df21e469c6f07346e250de4 (diff)
downloadrockbox-78d29f535ff14a5f213125baf63fa2961be17d79.tar.gz
rockbox-78d29f535ff14a5f213125baf63fa2961be17d79.zip
Major cleanup of checkwps - fix all warnings and add a script to build versions for all supported targets (plus some unsupported ones). You now need to run the version of checkwps that matches the device your WPS is for.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps-common.c1
-rw-r--r--apps/gui/gwps.h1
-rw-r--r--apps/gui/wps_parser.c3
-rw-r--r--apps/misc.c12
-rw-r--r--apps/recorder/bmp.c2
-rw-r--r--apps/root_menu.c1
6 files changed, 11 insertions, 9 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 37b2b7c5d1..a6bb917a5a 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -53,6 +53,7 @@
53#include "dsp.h" 53#include "dsp.h"
54#include "action.h" 54#include "action.h"
55#include "cuesheet.h" 55#include "cuesheet.h"
56#include "playlist.h"
56 57
57#if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1)) 58#if (LCD_DEPTH > 1) || (defined(HAVE_LCD_REMOTE) && (LCD_REMOTE_DEPTH > 1))
58#include "backdrop.h" 59#include "backdrop.h"
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index b24c243cd7..127fd99511 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -22,7 +22,6 @@
22#include "screen_access.h" 22#include "screen_access.h"
23#include "statusbar.h" 23#include "statusbar.h"
24#include "id3.h" 24#include "id3.h"
25#include "playlist.h"
26 25
27/* constants used in line_type and as refresh_mode for wps_refresh */ 26/* constants used in line_type and as refresh_mode for wps_refresh */
28#define WPS_REFRESH_STATIC 1 /* line doesn't change over time */ 27#define WPS_REFRESH_STATIC 1 /* line doesn't change over time */
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index e8c3c9f629..9bbdb2e5d0 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -20,6 +20,8 @@
20#include <stdio.h> 20#include <stdio.h>
21#include <string.h> 21#include <string.h>
22#include "gwps.h" 22#include "gwps.h"
23#include "file.h"
24#include "misc.h"
23#ifdef __PCTOOL__ 25#ifdef __PCTOOL__
24#define DEBUGF printf 26#define DEBUGF printf
25#define FONT_SYSFIXED 0 27#define FONT_SYSFIXED 0
@@ -39,7 +41,6 @@
39#include "atoi.h" 41#include "atoi.h"
40#include "gwps.h" 42#include "gwps.h"
41#include "settings.h" 43#include "settings.h"
42#include "misc.h"
43#include "plugin.h" 44#include "plugin.h"
44 45
45#ifdef HAVE_LCD_BITMAP 46#ifdef HAVE_LCD_BITMAP
diff --git a/apps/misc.c b/apps/misc.c
index 1ce65c0108..1d83640dc4 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -18,14 +18,16 @@
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <stdlib.h> 19#include <stdlib.h>
20#include <ctype.h> 20#include <ctype.h>
21#include "config.h"
22#include "lcd.h"
23#include "file.h"
24#ifdef __PCTOOL__
25#include <stdarg.h>
26#else
21#include "sprintf.h" 27#include "sprintf.h"
22#ifndef __PCTOOL__
23#include "lang.h" 28#include "lang.h"
24#include "string.h" 29#include "string.h"
25#include "config.h"
26#include "file.h"
27#include "dir.h" 30#include "dir.h"
28#include "lcd.h"
29#include "lcd-remote.h" 31#include "lcd-remote.h"
30#include "errno.h" 32#include "errno.h"
31#include "system.h" 33#include "system.h"
@@ -49,7 +51,6 @@
49#include "tagcache.h" 51#include "tagcache.h"
50#include "scrobbler.h" 52#include "scrobbler.h"
51#include "sound.h" 53#include "sound.h"
52#endif
53 54
54#ifdef HAVE_MMC 55#ifdef HAVE_MMC
55#include "ata_mmc.h" 56#include "ata_mmc.h"
@@ -77,7 +78,6 @@
77#endif 78#endif
78#endif 79#endif
79 80
80#ifndef __PCTOOL__
81/* Format a large-range value for output, using the appropriate unit so that 81/* Format a large-range value for output, using the appropriate unit so that
82 * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" 82 * the displayed value is in the range 1 <= display < 1000 (1024 for "binary"
83 * units) if possible, and 3 significant digits are shown. If a buffer is 83 * units) if possible, and 3 significant digits are shown. If a buffer is
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index f844c8908f..e2d5713aa5 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -35,11 +35,11 @@
35#include "inttypes.h" 35#include "inttypes.h"
36#include "debug.h" 36#include "debug.h"
37#include "lcd.h" 37#include "lcd.h"
38#include "file.h"
38#ifdef HAVE_REMOTE_LCD 39#ifdef HAVE_REMOTE_LCD
39#include "lcd-remote.h" 40#include "lcd-remote.h"
40#endif 41#endif
41#ifndef __PCTOOL__ 42#ifndef __PCTOOL__
42#include "file.h"
43#include "config.h" 43#include "config.h"
44#include "system.h" 44#include "system.h"
45#include "bmp.h" 45#include "bmp.h"
diff --git a/apps/root_menu.c b/apps/root_menu.c
index ae7f92fc9b..281a528574 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -59,6 +59,7 @@
59#endif 59#endif
60#include "gwps-common.h" 60#include "gwps-common.h"
61#include "bookmark.h" 61#include "bookmark.h"
62#include "playlist.h"
62#include "tagtree.h" 63#include "tagtree.h"
63#include "menus/exported_menus.h" 64#include "menus/exported_menus.h"
64#ifdef HAVE_RTC_ALARM 65#ifdef HAVE_RTC_ALARM