diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /apps/plugins/stats.c | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/stats.c')
-rw-r--r-- | apps/plugins/stats.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index eaa1055a73..3420579881 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c | |||
@@ -24,7 +24,7 @@ PLUGIN_HEADER | |||
24 | 24 | ||
25 | static int files, dirs, musicfiles, largestdir; | 25 | static int files, dirs, musicfiles, largestdir; |
26 | static int lasttick; | 26 | static int lasttick; |
27 | static bool abort; | 27 | static bool cancel; |
28 | 28 | ||
29 | #if CONFIG_KEYPAD == PLAYER_PAD | 29 | #if CONFIG_KEYPAD == PLAYER_PAD |
30 | #define STATS_STOP BUTTON_STOP | 30 | #define STATS_STOP BUTTON_STOP |
@@ -173,7 +173,7 @@ void traversedir(char* location, char* name) | |||
173 | if (dir) { | 173 | if (dir) { |
174 | entry = rb->readdir(dir); | 174 | entry = rb->readdir(dir); |
175 | while (entry) { | 175 | while (entry) { |
176 | if (abort) | 176 | if (cancel) |
177 | break; | 177 | break; |
178 | /* Skip .. and . */ | 178 | /* Skip .. and . */ |
179 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) | 179 | if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) |
@@ -206,7 +206,7 @@ void traversedir(char* location, char* name) | |||
206 | || button == STATS_STOP_REMOTE | 206 | || button == STATS_STOP_REMOTE |
207 | #endif | 207 | #endif |
208 | ) { | 208 | ) { |
209 | abort = true; | 209 | cancel = true; |
210 | break; | 210 | break; |
211 | } | 211 | } |
212 | } | 212 | } |
@@ -229,14 +229,14 @@ enum plugin_status plugin_start(const void* parameter) | |||
229 | dirs = 0; | 229 | dirs = 0; |
230 | musicfiles = 0; | 230 | musicfiles = 0; |
231 | largestdir = 0; | 231 | largestdir = 0; |
232 | abort = false; | 232 | cancel = false; |
233 | 233 | ||
234 | rb->splash(HZ, "Counting..."); | 234 | rb->splash(HZ, "Counting..."); |
235 | update_screen(); | 235 | update_screen(); |
236 | lasttick = *rb->current_tick; | 236 | lasttick = *rb->current_tick; |
237 | 237 | ||
238 | traversedir("", ""); | 238 | traversedir("", ""); |
239 | if (abort) { | 239 | if (cancel) { |
240 | rb->splash(HZ, "Aborted"); | 240 | rb->splash(HZ, "Aborted"); |
241 | return PLUGIN_OK; | 241 | return PLUGIN_OK; |
242 | } | 242 | } |