mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Enable buflib and core_alloc for warble.
Most of the work comes from http://gerrit.rockbox.org/r/#/c/1088/ by Thomas Jarosch. Change-Id: Iaa673dad2388d1e44fc95ffaa14bafadc6158101
This commit is contained in:
parent
3ae0f32ac3
commit
163ca14e58
4 changed files with 25 additions and 0 deletions
|
@ -66,6 +66,10 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
# define logf(...) do { } while (0)
|
# define logf(...) do { } while (0)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifndef panicf
|
||||||
|
# define panicf(...) do { } while (0)
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATTRIBUTE_PRINTF
|
#ifndef ATTRIBUTE_PRINTF
|
||||||
|
|
|
@ -64,6 +64,12 @@ off_t filesize(int fd);
|
||||||
putc('\n', stderr); \
|
putc('\n', stderr); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef panicf
|
||||||
|
#define panicf(...) do { fprintf(stderr, __VA_ARGS__); \
|
||||||
|
putc('\n', stderr); \
|
||||||
|
exit(-1); \
|
||||||
|
} while (0)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,6 @@ warble.c
|
||||||
../../../firmware/common/unicode.c
|
../../../firmware/common/unicode.c
|
||||||
../../../firmware/common/structec.c
|
../../../firmware/common/structec.c
|
||||||
../../../firmware/common/pathfuncs.c
|
../../../firmware/common/pathfuncs.c
|
||||||
|
../../../firmware/common/crc32.c
|
||||||
|
../../../firmware/buflib.c
|
||||||
|
../../../firmware/core_alloc.c
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "buffering.h" /* TYPE_PACKET_AUDIO */
|
#include "buffering.h" /* TYPE_PACKET_AUDIO */
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
|
#include "core_alloc.h"
|
||||||
#include "codecs.h"
|
#include "codecs.h"
|
||||||
#include "dsp_core.h"
|
#include "dsp_core.h"
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
|
@ -70,6 +71,16 @@ void debugf(const char *fmt, ...)
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void panicf(const char *fmt, ...)
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start(ap, fmt);
|
||||||
|
vfprintf(stderr, fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
|
|
||||||
|
exit (-1);
|
||||||
|
}
|
||||||
|
|
||||||
int find_first_set_bit(uint32_t value)
|
int find_first_set_bit(uint32_t value)
|
||||||
{
|
{
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
|
@ -888,6 +899,7 @@ int main(int argc, char **argv)
|
||||||
print_help(argv[0]);
|
print_help(argv[0]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
core_allocator_init();
|
||||||
playback_init();
|
playback_init();
|
||||||
} else {
|
} else {
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue