Definition at line 68 of file rz_cf_dict.c.
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) {
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.
void * malloc(size_t size)
static const char struct stat static buf struct stat static buf static vhangup int options
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.
static RCFValueBool * rz_cf_value_bool_new(bool value)
static void rz_cf_value_array_add(RCFValueArray *array, RCFValue *value)
static RCFValueData * rz_cf_value_data_new(char *string)
static RCFValueDict * rz_cf_value_dict_new(void)
static RCFValueNULL * rz_cf_value_null_new(void)
static void rz_cf_value_dict_add(RCFValueDict *dict, RCFKeyValue *key_value)
static RCFValueArray * rz_cf_value_array_new(void)
static RCFValueString * rz_cf_value_string_new(char *string)
static RCFKeyValue * rz_cf_key_value_new(char *key, RCFValue *value)
static void rz_cf_parse_state_free(RCFParseState *state)
static RCFValueInteger * rz_cf_value_integer_new(char *string)
static void rz_cf_value_free(RCFValue *value)
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 char * rz_str_append(char *ptr, const char *string)
RZ_API char * rz_str_new(const char *str)
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)
References _RCFParseState::array, _RCFParseState::dict, i, _RCFParseState::key, malloc(), NULL, options, _RCFParseState::phase, PRIu32, PRIu64, r, rz_buf_read_at(), RZ_CF_DATA, RZ_CF_FALSE, RZ_CF_INTEGER, rz_cf_key_value_new(), RZ_CF_OPTION_SKIP_NSDATA, rz_cf_parse_state_free(), rz_cf_parse_state_new(), RZ_CF_STATE_IN_ARRAY, RZ_CF_STATE_IN_DICT, RZ_CF_STATE_IN_IGNORE, RZ_CF_STATE_IN_KEY, RZ_CF_STATE_IN_SCALAR, RZ_CF_STATE_ROOT, RZ_CF_STRING, RZ_CF_TRUE, rz_cf_value_array_add(), rz_cf_value_array_new(), rz_cf_value_bool_new(), rz_cf_value_data_new(), rz_cf_value_dict_add(), rz_cf_value_dict_new(), rz_cf_value_free(), rz_cf_value_integer_new(), rz_cf_value_null_new(), rz_cf_value_string_new(), RZ_FREE, rz_list_free(), rz_list_get_top(), rz_list_newf(), rz_list_pop(), rz_list_push(), RZ_LOG_ERROR, rz_str_append(), rz_str_new(), value, _RCFParseState::value_type, x, XMLBUFSIZE, YXML_CONTENT, YXML_ELEMEND, YXML_ELEMSTART, yxml_eof(), yxml_init(), and yxml_parse().