ucl_parse: add 2 helpers on top of ucl to deduplicate code
modified libpkg/pkg_osvf.c
@@ -22,6 +22,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -575,7 +576,6 @@ create_schema_obj(void)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -588,20 +588,9 @@ pkg_osvf_open(const char *location)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified libpkg/pkg_ports.c
@@ -88,7 +88,6 @@ static struct action_cmd {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -137,17 +136,8 @@ keyword_open_schema(void)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_create.c
@@ -411,7 +411,6 @@ pkg_repo_create_free(struct pkg_repo_create *prc)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -422,18 +421,8 @@ ucl_load(int dfd, const char *name, ucl_object_t *schema)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -479,19 +468,7 @@ static const char expired_schema_str[] = ""
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_meta.c
@@ -30,6 +30,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -109,7 +110,6 @@ pkg_repo_meta_free(struct pkg_repo_meta *meta)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -149,17 +149,8 @@ pkg_repo_meta_open_schema_v1(void)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -167,7 +158,6 @@ pkg_repo_meta_open_schema_v1(void)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -206,17 +196,8 @@ pkg_repo_meta_open_schema_v2(void)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/utils.h
@@ -106,4 +106,7 @@ DEFINE_VEC_INSERT_SORTED_PROTO(charv_t, charv, char *);
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
modified libpkg/repo/binary/query.c
@@ -528,7 +528,6 @@ pkg_repo_binary_groupsearch(struct pkg_repo *repo, const char *pattern, match_t
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -552,18 +551,10 @@ pkg_repo_binary_groupsearch(struct pkg_repo *repo, const char *pattern, match_t
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/triggers.c
@@ -26,6 +26,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -43,7 +44,6 @@ get_script_type(const char *str)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -102,17 +102,8 @@ trigger_open_schema(void)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -146,7 +137,6 @@ parse_trigger_script_block(const ucl_object_t *block, const char *block_name,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -159,18 +149,8 @@ trigger_load(int dfd, const char *name, bool cleanup_only, ucl_object_t *schema)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified libpkg/utils.c
@@ -1203,3 +1203,43 @@ pkg_meta_attribute_tostring(enum pkg_meta_attribute attrib)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |