Lines Matching refs:nobj
98 ucl_object_t *nobj; in ucl_save_comment() local
101 nobj = ucl_object_fromstring_common (begin, len, 0); in ucl_save_comment()
105 DL_APPEND (parser->last_comment, nobj); in ucl_save_comment()
108 parser->last_comment = nobj; in ucl_save_comment()
641 ucl_object_t *nobj; in ucl_parser_add_container() local
644 nobj = ucl_object_new_full (is_array ? UCL_ARRAY : UCL_OBJECT, parser->chunks->priority); in ucl_parser_add_container()
645 if (nobj == NULL) { in ucl_parser_add_container()
657 nobj = obj; in ucl_parser_add_container()
658 nobj->type = is_array ? UCL_ARRAY : UCL_OBJECT; in ucl_parser_add_container()
662 if (nobj->value.ov == NULL) { in ucl_parser_add_container()
663 nobj->value.ov = ucl_hash_create (parser->flags & UCL_PARSER_KEY_LOWERCASE); in ucl_parser_add_container()
664 if (nobj->value.ov == NULL) { in ucl_parser_add_container()
679 st->obj = nobj; in ucl_parser_add_container()
685 if (nobj != obj) { in ucl_parser_add_container()
705 parser->cur_obj = nobj; in ucl_parser_add_container()
707 return nobj; in ucl_parser_add_container()
709 if (nobj != obj) in ucl_parser_add_container()
710 ucl_object_unref (nobj); in ucl_parser_add_container()
1142 ucl_object_t *nobj; in ucl_parser_append_elt() local
1157 nobj = ucl_object_typed_new (UCL_ARRAY); in ucl_parser_append_elt()
1158 nobj->key = top->key; in ucl_parser_append_elt()
1159 nobj->keylen = top->keylen; in ucl_parser_append_elt()
1160 nobj->flags |= UCL_OBJECT_MULTIVALUE; in ucl_parser_append_elt()
1161 ucl_array_append (nobj, top); in ucl_parser_append_elt()
1162 ucl_array_append (nobj, elt); in ucl_parser_append_elt()
1163 ucl_hash_replace (cont, top, nobj); in ucl_parser_append_elt()
1169 ucl_parser_process_object_element (struct ucl_parser *parser, ucl_object_t *nobj) in ucl_parser_process_object_element() argument
1178 tobj = __DECONST (ucl_object_t *, ucl_hash_search_obj (cur->value.ov, nobj)); in ucl_parser_process_object_element()
1187 container = ucl_hash_insert_object (container, nobj, in ucl_parser_process_object_element()
1192 nobj->prev = nobj; in ucl_parser_process_object_element()
1193 nobj->next = NULL; in ucl_parser_process_object_element()
1198 prinew = ucl_object_get_priority (nobj); in ucl_parser_process_object_element()
1216 ucl_parser_append_elt (parser, container, tobj, nobj); in ucl_parser_process_object_element()
1224 DL_APPEND (parser->trash_objs, nobj); in ucl_parser_process_object_element()
1227 ucl_hash_replace (container, tobj, nobj); in ucl_parser_process_object_element()
1235 ucl_hash_replace (container, tobj, nobj); in ucl_parser_process_object_element()
1243 nobj->key); in ucl_parser_process_object_element()
1253 ucl_object_unref (nobj); in ucl_parser_process_object_element()
1254 nobj = tobj; in ucl_parser_process_object_element()
1257 ucl_parser_append_elt (parser, container, tobj, nobj); in ucl_parser_process_object_element()
1265 DL_APPEND (parser->trash_objs, nobj); in ucl_parser_process_object_element()
1268 ucl_hash_replace (container, tobj, nobj); in ucl_parser_process_object_element()
1276 parser->cur_obj = nobj; in ucl_parser_process_object_element()
1277 ucl_attach_comment (parser, nobj, false); in ucl_parser_process_object_element()
1299 ucl_object_t *nobj; in ucl_parse_key() local
1474 nobj = ucl_object_new_full (UCL_NULL, parser->chunks->priority); in ucl_parse_key()
1475 if (nobj == NULL) { in ucl_parse_key()
1478 keylen = ucl_copy_or_store_ptr (parser, c, &nobj->trash_stack[UCL_TRASH_KEY], in ucl_parse_key()
1482 ucl_object_unref (nobj); in ucl_parse_key()
1487 ucl_object_unref (nobj); in ucl_parse_key()
1491 nobj->key = key; in ucl_parse_key()
1492 nobj->keylen = keylen; in ucl_parse_key()
1494 if (!ucl_parser_process_object_element (parser, nobj)) { in ucl_parse_key()
1499 nobj->flags |= UCL_OBJECT_NEED_KEY_ESCAPE; in ucl_parse_key()