1
0
Fork 0
forked from len0rd/rockbox

sbtools: move sb reading from sbtoelf.c to sb.c with a proper interface, fix sb production bug, fix ugly code, add sb dump code and sbtoelf loopback facility

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30881 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-11-01 11:23:43 +00:00
parent 591ec0349b
commit e36471df9c
7 changed files with 750 additions and 645 deletions

View file

@ -24,15 +24,7 @@
#include <stdint.h>
#include <string.h>
#include "dbparser.h"
typedef uint8_t byte;
extern bool g_debug;
extern void *xmalloc(size_t s);
extern int convxdigit(char digit, byte *val);
#define bug(...) do { fprintf(stderr, __VA_ARGS__); exit(1); } while(0)
#define bugp(...) do { fprintf(stderr, __VA_ARGS__); perror(" "); exit(1); } while(0)
#include "misc.h"
enum lexem_type_t
{