summaryrefslogtreecommitdiff
path: root/utils/sbtools/dbparser.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-01 11:23:43 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-01 11:23:43 +0000
commite36471df9cfb3fa7aaa2216d9b5c79cb775bf9da (patch)
treed8c03ad24a339928a379dd864d235a3f1a02aaad /utils/sbtools/dbparser.c
parent591ec0349b424e94eaaaa1c9bf486f769ff34732 (diff)
downloadrockbox-e36471df9cfb3fa7aaa2216d9b5c79cb775bf9da.zip
rockbox-e36471df9cfb3fa7aaa2216d9b5c79cb775bf9da.tar.gz
rockbox-e36471df9cfb3fa7aaa2216d9b5c79cb775bf9da.tar.bz2
rockbox-e36471df9cfb3fa7aaa2216d9b5c79cb775bf9da.tar.xz
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
Diffstat (limited to 'utils/sbtools/dbparser.c')
-rw-r--r--utils/sbtools/dbparser.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/utils/sbtools/dbparser.c b/utils/sbtools/dbparser.c
index 2dcc21e..3cd0652 100644
--- a/utils/sbtools/dbparser.c
+++ b/utils/sbtools/dbparser.c
@@ -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
{