mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
Bump sdb from git again
This commit is contained in:
parent
efccd05dc3
commit
41785d3c01
@ -8,14 +8,6 @@
|
||||
|
||||
#define KVLSZ 4
|
||||
|
||||
#if __WIN32__ || __CYGWIN__ || MINGW32
|
||||
#define ULLFMT "I64"
|
||||
#define USE_MMAN 0
|
||||
#else
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#endif
|
||||
|
||||
extern char *cdb_alloc(unsigned int n);
|
||||
extern void cdb_alloc_free(void*);
|
||||
extern int cdb_alloc_re(void);
|
||||
|
@ -16,6 +16,17 @@
|
||||
#define SDB_API
|
||||
#endif
|
||||
|
||||
#if __CYGWIN__
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#elif __WIN32__ || MINGW32
|
||||
#define ULLFMT "I64"
|
||||
#define USE_MMAN 0
|
||||
#else
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#endif
|
||||
|
||||
#if __WIN32__ || __CYGWIN__ || MINGW32
|
||||
#undef __WINDOWS__
|
||||
#define __WINDOWS__ 1
|
||||
|
@ -8,14 +8,6 @@
|
||||
|
||||
#define KVLSZ 4
|
||||
|
||||
#if __WIN32__ || __CYGWIN__ || MINGW32
|
||||
#define ULLFMT "I64"
|
||||
#define USE_MMAN 0
|
||||
#else
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#endif
|
||||
|
||||
extern char *cdb_alloc(unsigned int n);
|
||||
extern void cdb_alloc_free(void*);
|
||||
extern int cdb_alloc_re(void);
|
||||
|
@ -316,7 +316,7 @@ SDB_API const char *sdb_json_format(SdbJsonString* s, const char *fmt, ...) {
|
||||
case 'l':
|
||||
JSONSTR_ALLOCATE (32);
|
||||
arg_l = va_arg (ap, unsigned long long);
|
||||
snprintf (tmp, sizeof (tmp), "0x%llx", arg_l);
|
||||
snprintf (tmp, sizeof (tmp), "0x%"ULLFMT"x", arg_l);
|
||||
memcpy (s->buf+s->len, tmp, strlen (tmp));
|
||||
s->len += strlen (tmp);
|
||||
break;
|
||||
|
@ -12,8 +12,10 @@ static Sdb *s = NULL;
|
||||
|
||||
static void terminate(int sig UNUSED) {
|
||||
if (!s) return;
|
||||
if (save && !sdb_sync (s))
|
||||
if (save && !sdb_sync (s)) {
|
||||
sdb_free (s);
|
||||
exit (1);
|
||||
}
|
||||
sdb_free (s);
|
||||
exit (0);
|
||||
}
|
||||
|
@ -16,6 +16,17 @@
|
||||
#define SDB_API
|
||||
#endif
|
||||
|
||||
#if __CYGWIN__
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#elif __WIN32__ || MINGW32
|
||||
#define ULLFMT "I64"
|
||||
#define USE_MMAN 0
|
||||
#else
|
||||
#define ULLFMT "ll"
|
||||
#define USE_MMAN 1
|
||||
#endif
|
||||
|
||||
#if __WIN32__ || __CYGWIN__ || MINGW32
|
||||
#undef __WINDOWS__
|
||||
#define __WINDOWS__ 1
|
||||
|
Loading…
Reference in New Issue
Block a user