summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-19 12:11:18 +0000
committerDave Chapman <dave@dchapman.com>2005-02-19 12:11:18 +0000
commit4d961f21285de89360173ccc76ee82eb504d726e (patch)
treee41a8acd5f2879abd572de666bec36b8266e6a47 /apps/plugins/lib
parent1839a956ba67fc601706bfd9d5f46a22c60bfc70 (diff)
downloadrockbox-4d961f21285de89360173ccc76ee82eb504d726e.tar.gz
rockbox-4d961f21285de89360173ccc76ee82eb504d726e.zip
First version of vorbis decoder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6017 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/xxx2wav.c14
-rw-r--r--apps/plugins/lib/xxx2wav.h9
2 files changed, 23 insertions, 0 deletions
diff --git a/apps/plugins/lib/xxx2wav.c b/apps/plugins/lib/xxx2wav.c
index cc8c31a11e..052de9ad37 100644
--- a/apps/plugins/lib/xxx2wav.c
+++ b/apps/plugins/lib/xxx2wav.c
@@ -53,6 +53,12 @@ void* calloc(size_t nmemb, size_t size) {
53 return(x); 53 return(x);
54} 54}
55 55
56void* alloca(size_t size) {
57 void* x;
58 x=malloc(size);
59 return(x);
60}
61
56void free(void* ptr) { 62void free(void* ptr) {
57 (void)ptr; 63 (void)ptr;
58} 64}
@@ -76,6 +82,14 @@ int memcmp(const void *s1, const void *s2, size_t n) {
76 return(local_rb->memcmp(s1,s2,n)); 82 return(local_rb->memcmp(s1,s2,n));
77} 83}
78 84
85void* memchr(const void *s, int c, size_t n) {
86 /* TO DO: Implement for Tremor */
87 (void)s;
88 (void)c;
89 (void)n;
90 return(NULL);
91}
92
79void* memmove(const void *s1, const void *s2, size_t n) { 93void* memmove(const void *s1, const void *s2, size_t n) {
80 char* dest=(char*)s1; 94 char* dest=(char*)s1;
81 char* src=(char*)s2; 95 char* src=(char*)s2;
diff --git a/apps/plugins/lib/xxx2wav.h b/apps/plugins/lib/xxx2wav.h
index e89361c46a..501aaa3933 100644
--- a/apps/plugins/lib/xxx2wav.h
+++ b/apps/plugins/lib/xxx2wav.h
@@ -19,6 +19,15 @@
19 19
20/* Various "helper functions" common to all the xxx2wav decoder plugins */ 20/* Various "helper functions" common to all the xxx2wav decoder plugins */
21 21
22
23/* A macro to enable printf for the simulator only */
24
25#ifdef SIMULATOR
26#define dprintf(...) printf(__VA_ARGS__)
27#else
28#define dprintf(...)
29#endif
30
22/* the main data structure of the program */ 31/* the main data structure of the program */
23typedef struct { 32typedef struct {
24 int infile; 33 int infile;