Update libucl to latest version
modified external/libucl/Makefile.autosetup
@@ -14,6 +14,7 @@ LOCAL_CFLAGS= -I$(top_srcdir)/external/libucl/include \
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
modified external/libucl/doc/api.md
@@ -432,7 +432,8 @@ UCL defines the following functions to manage safe iterators:
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -447,6 +448,11 @@ it = ucl_object_iterate_new (obj);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -454,6 +460,11 @@ it = ucl_object_iterate_reset (it, another_obj);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/doc/libucl.3
@@ -612,15 +612,23 @@ Iteration\ without\ expansion:
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -637,6 +645,11 @@ it\ =\ ucl_object_iterate_new\ (obj);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -644,6 +657,11 @@ it\ =\ ucl_object_iterate_reset\ (it,\ another_obj);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/include/ucl.h
@@ -469,8 +469,9 @@ UCL_EXTERN bool ucl_object_insert_key_merged (ucl_object_t *top, ucl_object_t *e
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -825,11 +826,14 @@ typedef void* ucl_object_iter_t;
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -839,6 +843,15 @@ UCL_EXTERN const ucl_object_t* ucl_object_iterate (const ucl_object_t *obj,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -951,8 +964,9 @@ UCL_EXTERN int ucl_parser_get_default_priority (struct ucl_parser *parser);
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -962,8 +976,9 @@ UCL_EXTERN void ucl_parser_register_macro (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1280,6 +1295,13 @@ UCL_EXTERN bool ucl_parser_set_filevars (struct ucl_parser *parser, const char *
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1288,11 +1310,20 @@ typedef bool (*ucl_parser_special_handler_t) (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1300,13 +1331,39 @@ struct ucl_parser_special_handler {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/klib/kvec.h
@@ -30,11 +30,13 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -60,8 +62,71 @@ int main() {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -93,11 +158,4 @@ int main() {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
modified external/libucl/src/ucl_hash.c
@@ -237,17 +237,21 @@ ucl_hash_create (bool ignore_case)
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -293,7 +297,7 @@ void ucl_hash_destroy (ucl_hash_t* hashlin, ucl_hash_free_func func)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -302,7 +306,7 @@ ucl_hash_insert (ucl_hash_t* hashlin, const ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -311,7 +315,7 @@ ucl_hash_insert (ucl_hash_t* hashlin, const ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -322,11 +326,16 @@ ucl_hash_insert (ucl_hash_t* hashlin, const ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -375,13 +384,16 @@ struct ucl_hash_real_iter {
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -389,6 +401,7 @@ ucl_hash_iterate (ucl_hash_t *hashlin, ucl_hash_iter_t *iter)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -396,6 +409,7 @@ ucl_hash_iterate (ucl_hash_t *hashlin, ucl_hash_iter_t *iter)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -505,14 +519,14 @@ ucl_hash_delete (ucl_hash_t* hashlin, const ucl_object_t *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -525,4 +539,7 @@ void ucl_hash_reserve (ucl_hash_t *hashlin, size_t sz)
|
|
|
|
|
|
| - | |
|
|
| + | |
| + | |
| + | |
| + | |
modified external/libucl/src/ucl_hash.h
@@ -55,8 +55,9 @@ void ucl_hash_destroy (ucl_hash_t* hashlin, ucl_hash_free_func func);
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -81,9 +82,15 @@ const ucl_object_t* ucl_hash_search (ucl_hash_t* hashlin, const char *key,
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -92,8 +99,9 @@ bool ucl_hash_iter_has_next (ucl_hash_t *hashlin, ucl_hash_iter_t iter);
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
modified external/libucl/src/ucl_internal.h
@@ -205,6 +205,13 @@ struct ucl_stack {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -216,7 +223,7 @@ struct ucl_chunk {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -255,7 +262,9 @@ struct ucl_parser {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -463,12 +472,24 @@ ucl_hash_insert_object (ucl_hash_t *hashlin,
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libucl/src/ucl_parser.c
@@ -634,70 +634,51 @@ ucl_parser_add_container (ucl_object_t *obj, struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -717,9 +698,16 @@ ucl_parser_add_container (ucl_object_t *obj, struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1194,6 +1182,9 @@ ucl_parser_process_object_element (struct ucl_parser *parser, ucl_object_t *nobj
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1477,6 +1468,9 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1816,8 +1810,8 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| + | |
|
|
| - | |
|
|
|
|
|
@@ -2672,6 +2666,11 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2684,12 +2683,12 @@ ucl_parser_new (int flags)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2704,6 +2703,9 @@ ucl_parser_new (int flags)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2728,49 +2730,59 @@ ucl_parser_get_default_priority (struct ucl_parser *parser)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2861,9 +2873,11 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,
|
|
|
|
|
|
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2873,11 +2887,17 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified external/libucl/src/ucl_util.c
@@ -520,18 +520,23 @@ void
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1149,7 +1154,7 @@ ucl_include_file_single (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1394,7 +1399,9 @@ ucl_include_file_single (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1424,6 +1431,20 @@ ucl_include_file (const unsigned char *data, size_t len,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1490,6 +1511,17 @@ ucl_include_common (const unsigned char *data, size_t len,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1554,7 +1586,7 @@ ucl_include_common (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1569,7 +1601,7 @@ ucl_include_common (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1930,6 +1962,12 @@ ucl_parser_set_filevars (struct ucl_parser *parser, const char *filename, bool n
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1966,10 +2004,6 @@ ucl_parser_add_file_full (struct ucl_parser *parser, const char *filename,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -2654,7 +2688,8 @@ ucl_object_lookup_any (const ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -2665,7 +2700,7 @@ ucl_object_iterate (const ucl_object_t *obj, ucl_object_iter_t *iter, bool expan
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2711,6 +2746,7 @@ enum ucl_safe_iter_flags {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2743,6 +2779,15 @@ ucl_object_iterate_new (const ucl_object_t *obj)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2776,6 +2821,7 @@ ucl_object_iterate_full (ucl_object_iter_t it, enum ucl_iterate_type type)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2785,7 +2831,12 @@ ucl_object_iterate_full (ucl_object_iter_t it, enum ucl_iterate_type type)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2933,7 +2984,7 @@ ucl_object_new_full (ucl_type_t type, unsigned priority)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2942,23 +2993,26 @@ ucl_object_new_full (ucl_type_t type, unsigned priority)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -3068,11 +3122,13 @@ ucl_array_append (ucl_object_t *top, ucl_object_t *elt)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -3088,16 +3144,18 @@ ucl_array_prepend (ucl_object_t *top, ucl_object_t *elt)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -3122,7 +3180,7 @@ ucl_array_merge (ucl_object_t *top, ucl_object_t *elt, bool copy)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -3134,6 +3192,8 @@ ucl_array_merge (ucl_object_t *top, ucl_object_t *elt, bool copy)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -3838,3 +3898,18 @@ ucl_comments_add (ucl_object_t *comments, const ucl_object_t *obj,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified external/libucl/tests/test_generate.c
@@ -240,27 +240,36 @@ main (int argc, char **argv)
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|