Update sdb and fix build

This commit is contained in:
pancake 2013-04-05 03:09:54 +02:00
parent 542de1b426
commit 076a2837c9
8 changed files with 18 additions and 8 deletions

View File

@ -11,7 +11,7 @@ Broken stuff to fixe before release
- dwarf
- rar asm/dis
0.9.4
0.9.6
=====
* scr.cols -> hex.cols
* scr.width

View File

@ -77,6 +77,7 @@ struct r_bin_dex_obj_t {
ut32 *strings;
struct dex_method_t *methods;
struct dex_field_t *fields;
RList *methods_list;
};
struct r_bin_dex_str_t {

View File

@ -17,6 +17,11 @@ endif
src/sdb-version.h:
echo '#define SDB_VERSION "${VERSION}"' > src/sdb-version.h
EMCCFLAGS=-O2 -s ASM_JS=1
#EMCCFLAGS+=--embed-file sdb.data
sdb.js: src/sdb-version.h
cd src ; emcc ${EMCCFLAGS} -I. -o ../sdb.js *.c json/api.c json/js0n.c json/json.c json/rangstr.c
clean:
rm -f src/sdb-version.h
cd src && ${MAKE} clean

View File

@ -1,9 +1,7 @@
DESTDIR?=
PREFIX?=/usr
VERSION=0.6.1
CFLAGS+=-DVERSION=\"${VERSION}\"
VERSION=0.6.2
CFLAGS_STD?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
CFLAGS+=${CFLAGS_STD}

View File

@ -67,7 +67,7 @@ static void showusage(int o) {
}
static void showversion(void) {
printf ("sdb "VERSION"\n");
printf ("sdb "SDB_VERSION"\n");
exit (0);
}

View File

@ -30,10 +30,16 @@ SDB_VISIBLE char *sdb_querysf (Sdb *s, char *buf, size_t buflen, const char *fmt
SDB_VISIBLE char *sdb_querys (Sdb *s, char *buf, size_t len, const char *cmd) {
const char *q;
char *p, *eq, *ask = strchr (cmd, '?');
char *p, *eq, *ask;
int i, ok, w, alength;
ut64 n;
if (cmd == NULL) {
cmd = buf;
buf = NULL;
}
if (!len || !buf) buf = malloc ((len=32));
ask = strchr (cmd, '?');
if (*cmd == '+' || *cmd == '-') {
*buf = 0;
if (ask) {

View File

@ -1 +1 @@
#define SDB_VERSION "0.6.1"
#define SDB_VERSION "0.6.2"

View File

@ -1 +1 @@
#define SDB_VERSION "0.6.1"
#define SDB_VERSION "0.6.2"