Fix LUA red and yellow.
[kugel-rb.git] / tools / database / database.c
blob41e73ae4a38b5181ed71614d7f0a134bf9b95ec7
1 /* A _very_ skeleton file to demonstrate building tagcache db on host. */
3 #include <stdbool.h>
4 #include <stdio.h>
5 #include <sys/stat.h>
6 #include "tagcache.h"
8 int main(int argc, char **argv)
10 tagcache_init();
11 tagcache_build(".");
12 tagcache_reverse_scan();
14 return 0;
17 /* stub to avoid including all of apps/misc.c */
18 bool file_exists(const char *file)
20 struct stat s;
21 if (!stat(file, &s))
22 return true;
23 return false;
26 /* stubs to avoid including thread-sdl.c */
27 #include "kernel.h"
28 void mutex_init(struct mutex *m)
30 (void)m;
33 void mutex_lock(struct mutex *m)
35 (void)m;
38 void mutex_unlock(struct mutex *m)
40 (void)m;
43 void thread_sdl_thread_lock(void *me)
45 (void)me;
48 void * thread_sdl_thread_unlock(void)
50 return (void*)1;