1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2010-05-06 21:04:40 +00:00
parent adb506df14
commit 50a6ca39ad
194 changed files with 639 additions and 455 deletions

View file

@ -23,7 +23,7 @@
PLUGIN_HEADER
static bool abort;
static bool cancel;
static int fd;
static int dirs_count;
static int lasttick;
@ -70,7 +70,7 @@ void traversedir(char* location, char* name)
if (dir) {
entry = rb->readdir(dir);
while (entry) {
if (abort)
if (cancel)
break;
/* Skip .. and . */
if (entry->d_name[0] == '.')
@ -113,7 +113,7 @@ void traversedir(char* location, char* name)
lasttick = *rb->current_tick;
if (rb->action_userabort(TIMEOUT_NOBLOCK))
{
abort = true;
cancel = true;
break;
}
}
@ -213,7 +213,7 @@ bool custom_dir(void)
void generate(void)
{
dirs_count = 0;
abort = false;
cancel = false;
fd = rb->open(RFA_FILE,O_CREAT|O_WRONLY, 0666);
rb->write(fd,&dirs_count,sizeof(int));
if (fd < 0)
@ -621,7 +621,7 @@ enum plugin_status plugin_start(const void* parameter)
{
(void)parameter;
abort = false;
cancel = false;
return main_menu();
}