diff options
Diffstat (limited to 'tools/checkwps')
-rw-r--r-- | tools/checkwps/SOURCES | 14 | ||||
-rw-r--r-- | tools/checkwps/checkwps.c | 7 | ||||
-rw-r--r-- | tools/checkwps/file.h | 16 |
3 files changed, 16 insertions, 21 deletions
diff --git a/tools/checkwps/SOURCES b/tools/checkwps/SOURCES index 828b7965ea..425e8de7b9 100644 --- a/tools/checkwps/SOURCES +++ b/tools/checkwps/SOURCES | |||
@@ -1,13 +1,21 @@ | |||
1 | #undef unix /* messes up filesystem-unix.c below */ | ||
1 | ../../apps/gui/skin_engine/skin_parser.c | 2 | ../../apps/gui/skin_engine/skin_parser.c |
2 | ../../apps/gui/skin_engine/skin_backdrops.c | 3 | ../../apps/gui/skin_engine/skin_backdrops.c |
3 | ../../apps/gui/viewport.c | 4 | ../../apps/gui/viewport.c |
4 | ../../apps/misc.c | 5 | ../../apps/misc.c |
5 | ../../firmware/common/strlcpy.c | 6 | ../../firmware/common/strlcpy.c |
6 | checkwps.c | 7 | ../../firmware/common/pathfuncs.c |
7 | 8 | ../../firmware/asm/mempcpy.c | |
9 | ../../firmware/target/hosted/filesystem-unix.c | ||
8 | #ifdef APPLICATION | 10 | #ifdef APPLICATION |
9 | ../../firmware/common/rbpaths.c | 11 | ../../firmware/target/hosted/filesystem-app.c |
12 | #else | ||
13 | ../../uisimulator/common/filesystem-sim.c | ||
10 | #endif | 14 | #endif |
15 | #ifdef DEBUG | ||
16 | ../../firmware/debug.c | ||
17 | #endif | ||
18 | checkwps.c | ||
11 | 19 | ||
12 | #ifdef HAVE_LCD_BITMAP | 20 | #ifdef HAVE_LCD_BITMAP |
13 | ../../apps/recorder/bmp.c | 21 | ../../apps/recorder/bmp.c |
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 10e505f006..c2cadc7444 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c | |||
@@ -39,11 +39,14 @@ bool debug_wps = true; | |||
39 | int wps_verbose_level = 0; | 39 | int wps_verbose_level = 0; |
40 | char *skin_buffer; | 40 | char *skin_buffer; |
41 | 41 | ||
42 | int errno; | 42 | const char *sim_root_dir = "."; |
43 | |||
44 | const struct settings_list *settings; | 43 | const struct settings_list *settings; |
45 | const int nb_settings = 0; | 44 | const int nb_settings = 0; |
46 | 45 | ||
46 | #ifdef SIMULATOR | ||
47 | #error beep beep | ||
48 | #endif | ||
49 | |||
47 | /* static endianness conversion */ | 50 | /* static endianness conversion */ |
48 | #define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ | 51 | #define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \ |
49 | ((unsigned short)(x) << 8))) | 52 | ((unsigned short)(x) << 8))) |
diff --git a/tools/checkwps/file.h b/tools/checkwps/file.h deleted file mode 100644 index a14d7f5b91..0000000000 --- a/tools/checkwps/file.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | #ifndef MAX_PATH | ||
2 | #define MAX_PATH 260 | ||
3 | #endif | ||
4 | |||
5 | /* Wrapper - required for O_RDONLY */ | ||
6 | |||
7 | #include <fcntl.h> | ||
8 | |||
9 | extern ssize_t read(int fd, void *buf, size_t count); | ||
10 | extern ssize_t write(int fd, const void *buf, size_t count); | ||
11 | extern off_t lseek(int fildes, off_t offset, int whence); | ||
12 | extern int close(int fd); | ||
13 | |||
14 | /* strlcpy doesn't belong here (it's in string.h in the rockbox sources), | ||
15 | * but this avoids complicated magic to override the system string.h */ | ||
16 | size_t strlcpy(char *dst, const char *src, size_t siz); | ||