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:
parent
591ec0349b
commit
e36471df9c
7 changed files with 750 additions and 645 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue