Sync libucl (this fixes: #649)
modified external/libucl/include/ucl.h
@@ -103,7 +103,8 @@ enum ucl_type {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -135,8 +136,9 @@ enum ucl_string_flags {
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -199,6 +201,26 @@ ucl_object_new (void)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -660,6 +682,15 @@ void ucl_parser_register_macro (struct ucl_parser *parser, const char *macro,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/src/ucl_emitter.c
@@ -257,6 +257,12 @@ ucl_elt_write_json (ucl_object_t *obj, UT_string *buf, unsigned int tabs, bool s
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -441,6 +447,12 @@ ucl_elt_write_rcl (ucl_object_t *obj, UT_string *buf, unsigned int tabs,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -475,7 +487,6 @@ ucl_object_emit_rcl (ucl_object_t *obj)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -485,6 +496,7 @@ ucl_obj_write_yaml (ucl_object_t *obj, UT_string *buf, unsigned int tabs, bool s
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -595,6 +607,12 @@ ucl_elt_write_yaml (ucl_object_t *obj, UT_string *buf, unsigned int tabs,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/src/ucl_internal.h
@@ -119,6 +119,14 @@ struct ucl_pubkey {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -130,6 +138,7 @@ struct ucl_parser {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -250,7 +259,7 @@ ucl_maybe_parse_boolean (ucl_object_t *obj, const unsigned char *start, size_t l
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified external/libucl/src/ucl_parser.c
@@ -233,15 +233,185 @@ ucl_lex_is_comment (const unsigned char c1, const unsigned char c2)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -258,6 +428,16 @@ ucl_copy_or_store_ptr (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -270,7 +450,7 @@ ucl_copy_or_store_ptr (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -387,8 +567,8 @@ ucl_maybe_parse_number (ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -402,7 +582,7 @@ ucl_maybe_parse_number (ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -428,7 +608,7 @@ ucl_maybe_parse_number (ucl_object_t *obj,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -502,7 +682,7 @@ ucl_lex_number (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -525,7 +705,7 @@ ucl_lex_number (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -584,6 +764,9 @@ ucl_lex_json_string (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -603,7 +786,8 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -632,11 +816,13 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -649,6 +835,7 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -662,7 +849,7 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -673,10 +860,13 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -716,7 +906,7 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -724,7 +914,7 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -764,7 +954,7 @@ ucl_parse_key (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -802,6 +992,9 @@ ucl_parse_string_value (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -828,7 +1021,8 @@ ucl_parse_string_value (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -856,6 +1050,9 @@ ucl_parse_multiline_string (struct ucl_parser *parser,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -878,7 +1075,7 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -901,13 +1098,13 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -959,13 +1156,13 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1002,7 +1199,7 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1016,11 +1213,14 @@ ucl_parse_value (struct ucl_parser *parser, struct ucl_chunk *chunk)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1124,7 +1324,7 @@ ucl_parse_macro_value (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1133,7 +1333,7 @@ ucl_parse_macro_value (struct ucl_parser *parser,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1203,9 +1403,19 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1215,6 +1425,7 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1222,7 +1433,6 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -1235,12 +1445,7 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -1305,7 +1510,8 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1333,9 +1539,19 @@ ucl_state_machine (struct ucl_parser *parser)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1381,6 +1597,22 @@ ucl_parser_register_macro (struct ucl_parser *parser, const char *macro,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified external/libucl/src/ucl_util.c
@@ -224,7 +224,7 @@ ucl_copy_value_trash (ucl_object_t *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -238,6 +238,7 @@ ucl_parser_free (struct ucl_parser *parser)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -257,6 +258,11 @@ ucl_parser_free (struct ucl_parser *parser)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -316,7 +322,7 @@ ucl_curl_write_callback (void* contents, size_t size, size_t nmemb, void* ud)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -404,8 +410,8 @@ ucl_fetch_url (const unsigned char *url, unsigned char **buf, size_t *buflen, UT
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -438,19 +444,26 @@ ucl_fetch_file (const unsigned char *filename, unsigned char **buf, size_t *bufl
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
|
|
| - | |
| - | |
|
|
|
|
|
@@ -542,10 +555,14 @@ ucl_include_url (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -606,10 +623,14 @@ ucl_include_file (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -622,7 +643,9 @@ ucl_include_file (const unsigned char *data, size_t len,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -682,7 +705,9 @@ ucl_parser_add_file (struct ucl_parser *parser, const char *filename)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -845,12 +870,14 @@ ucl_object_fromstring_common (const char *str, size_t len, enum ucl_string_flags
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -875,6 +902,17 @@ ucl_object_insert_key_common (ucl_object_t *top, ucl_object_t *elt,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|