12 #define XMLBUFSIZE 4096
98 x.line,
x.byte,
x.total);
107 if (!strcmp(
x.elem,
"dict")) {
113 }
else if (!strcmp(
x.elem,
"array")) {
125 }
else if (!strcmp(
x.elem,
"string")) {
131 }
else if (!strcmp(
x.elem,
"integer")) {
137 }
else if (!strcmp(
x.elem,
"data")) {
147 }
else if (!strcmp(
x.elem,
"true")) {
153 }
else if (!strcmp(
x.elem,
"false")) {
174 if (!
state || !next_state) {
180 result =
state->dict;
194 next_state->
key = content;
200 switch (
state->phase) {
211 switch (
state->value_type) {
301 state->phase = phase;
329 if (key_value->
key) {
332 if (key_value->
value) {
364 if (!dict || !dict->
pairs) {
377 rz_list_foreach (dict->
pairs,
iter, key_value) {
414 if (!array || !array->
values) {
443 value_string->
value = string;
464 printf(
"\"%s\"", escaped);
499 const int len = strlen(
string);
500 const int out_len =
len / 4 * 3 + 1;
585 switch (
value->type) {
618 switch (
value->type) {
const lzma_allocator const uint8_t size_t uint8_t * out
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
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
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 static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
RZ_API RZ_OWN RzList * rz_list_newf(RzListFree f)
Returns a new initialized RzList pointer and sets the free method.
RZ_API RZ_BORROW void * rz_list_get_top(RZ_NONNULL const RzList *list)
Returns the last element of the list.
RZ_API RZ_OWN void * rz_list_pop(RZ_NONNULL RzList *list)
Removes and returns the last element of the list.
RZ_API RZ_BORROW RzListIter * rz_list_push(RZ_NONNULL RzList *list, void *item)
Alias for rz_list_append.
RZ_API ut32 rz_list_length(RZ_NONNULL const RzList *list)
Returns the length of the list.
RZ_API void rz_list_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
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")
static const char struct stat static buf struct stat static buf static vhangup int options
#define rz_return_if_fail(expr)
RZ_API int rz_base64_decode(ut8 *bout, const char *bin, int len)
RZ_API st64 rz_buf_read_at(RZ_NONNULL RzBuffer *b, ut64 addr, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
Read len bytes of the buffer at the specified address.
RZ_API RZ_OWN RzBuffer * rz_buf_new_with_pointers(const ut8 *bytes, ut64 len, bool steal)
Creates a new buffer with a bytes array.
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
static void rz_cf_value_integer_free(RCFValueInteger *integer)
static void rz_cf_value_null_free(RCFValueNULL *null)
RZ_API void rz_cf_value_print(RCFValue *value)
static RCFValueBool * rz_cf_value_bool_new(bool value)
static void rz_cf_value_dict_print(RCFValueDict *dict)
static void rz_cf_key_value_free(RCFKeyValue *key_value)
static void rz_cf_value_bool_print(RCFValueBool *bool_value)
static void rz_cf_value_bool_free(RCFValueBool *bool_value)
static void rz_cf_value_array_add(RCFValueArray *array, RCFValue *value)
static RCFValueData * rz_cf_value_data_new(char *string)
static void rz_cf_value_data_free(RCFValueData *data)
static RCFValueDict * rz_cf_value_dict_new(void)
static void rz_cf_value_string_free(RCFValueString *string)
static void rz_cf_value_array_print(RCFValueArray *dict)
static RCFValueNULL * rz_cf_value_null_new(void)
static void rz_cf_value_dict_add(RCFValueDict *dict, RCFKeyValue *key_value)
static void rz_cf_value_integer_print(RCFValueInteger *integer)
static RCFValueArray * rz_cf_value_array_new(void)
static void rz_cf_value_array_free(RCFValueArray *array)
static RCFValueString * rz_cf_value_string_new(char *string)
RZ_API void rz_cf_value_dict_free(RCFValueDict *dict)
static RCFKeyValue * rz_cf_key_value_new(char *key, RCFValue *value)
static void rz_cf_value_data_print(RCFValueData *data)
static void rz_cf_parse_state_free(RCFParseState *state)
RZ_API RCFValueDict * rz_cf_value_dict_parse(RzBuffer *file_buf, ut64 offset, ut64 size, int options)
static void rz_cf_value_null_print(RCFValueNULL *null)
static RCFValueInteger * rz_cf_value_integer_new(char *string)
struct _RCFParseState RCFParseState
static void rz_cf_value_free(RCFValue *value)
static void rz_cf_value_string_print(RCFValueString *string)
static RCFParseState * rz_cf_parse_state_new(RCFParsePhase phase)
#define RZ_CF_OPTION_SKIP_NSDATA
void(* RzListFree)(void *ptr)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API ut64 rz_num_get(RzNum *num, const char *str)
RZ_API char * rz_str_append(char *ptr, const char *string)
RZ_API char * rz_str_new(const char *str)
RZ_API char * rz_str_replace(char *str, const char *key, const char *val, int g)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
yxml_ret_t yxml_eof(yxml_t *x)
yxml_ret_t yxml_parse(yxml_t *x, int _ch)
void yxml_init(yxml_t *x, void *stack, size_t stacksize)