8 #define dem_return_val_if_fail(expr, val) \
11 fprintf(stderr, "%s: assertion '%s' failed (line %d)\n", __FILE__, #expr, __LINE__); \
16 #define dem_return_if_fail(expr) \
19 fprintf(stderr, "%s: assertion '%s' failed (line %d)\n", __FILE__, #expr, __LINE__); \
25 for (
size_t i = 0;
i <
size; ++
i) {
26 if (
string[
i] == ch) {
37 int klen = strlen(
key);
38 int vlen = strlen(
val);
40 if (klen == 1 && vlen < 2) {
44 if (klen == vlen && !strcmp(
key,
val)) {
55 int tlen = slen - (
off + klen);
66 memmove(
p + vlen,
p + klen, tlen + 1);
96 if (!strchr(fmt,
'%')) {
113 if (
string && !ptr) {
119 int plen = strlen(ptr);
120 int slen = strlen(
string);
121 char *newptr =
realloc(ptr, slen + plen + 1);
127 memcpy(ptr + plen,
string, slen + 1);
169 size_t size = strlen(
string);
199 goto dem_string_appendf_end;
202 goto dem_string_appendf_end;
208 dem_string_appendf_end:
239 list->tail->n = item;
242 item->
p =
list->tail;
249 list->sorted =
false;
312 for (it =
list->head,
i = 0; it && it->
data; it = it->
n,
i++) {
static RASN1String * newstr(const char *string)
const lzma_allocator const uint8_t size_t uint8_t * out
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
void dem_list_free(DemList *list)
char * dem_str_ndup(const char *ptr, int len)
DemListIter * dem_list_append(DemList *list, void *data)
void dem_list_delete(DemList *list, DemListIter *iter)
char * dem_string_drain(DemString *ds)
char * dem_str_replace(char *str, const char *key, const char *val, int g)
void dem_list_purge(DemList *list)
ut32 dem_list_length(const DemList *list)
void * dem_list_get_n(const DemList *list, ut32 n)
void dem_string_free(DemString *ds)
DemString * dem_string_new()
char * dem_str_newf(const char *fmt,...)
void dem_list_split_iter(DemList *list, DemListIter *iter)
static bool dem_string_realloc_no_len_update(DemString *ds, ssize_t size)
char * dem_str_append(char *ptr, const char *string)
bool dem_string_append(DemString *ds, const char *string)
#define dem_return_if_fail(expr)
bool dem_string_appendf(DemString *ds, const char *fmt,...)
bool dem_string_append_n(DemString *ds, const char *string, size_t size)
DemList * dem_list_newf(DemListFree f)
void dem_string_replace_char(DemString *ds, char ch, char rp)
#define dem_return_val_if_fail(expr, val)
void dem_str_replace_char(char *string, size_t size, char ch, char rp)
void(* DemListFree)(void *ptr)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static void list(RzEgg *egg)
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
#define RZ_STR_ISEMPTY(x)
struct dem_list_iter_t * n
struct dem_list_iter_t * p