pkg: rename parse_deplist to pkg_dependency_parse
parent
1da21bd3b4
commit
d07e41c3f9
2
main.c
2
main.c
|
@ -283,7 +283,7 @@ pkg_queue_walk(pkg_queue_t *head)
|
|||
{
|
||||
pkg_dependency_t *pkgdep;
|
||||
|
||||
pkgdep = parse_deplist(&world, pkgq->package);
|
||||
pkgdep = pkg_dependency_parse(&world, pkgq->package);
|
||||
world.requires = pkg_dependency_append(world.requires, pkgdep);
|
||||
|
||||
free(pkgq->package);
|
||||
|
|
10
parse.c
10
parse.c
|
@ -44,7 +44,7 @@ parse_fragment_list(pkg_t *pkg, const char *string)
|
|||
}
|
||||
|
||||
/*
|
||||
* parse_deplist(pkg, depends)
|
||||
* pkg_dependency_parse(pkg, depends)
|
||||
*
|
||||
* Add requirements to a .pc file.
|
||||
* Commas are counted as whitespace, as to allow:
|
||||
|
@ -126,7 +126,7 @@ pkg_dependency_free(pkg_dependency_t *head)
|
|||
}
|
||||
|
||||
pkg_dependency_t *
|
||||
parse_deplist(pkg_t *pkg, const char *depends)
|
||||
pkg_dependency_parse(pkg_t *pkg, const char *depends)
|
||||
{
|
||||
parse_state_t state = OUTSIDE_MODULE;
|
||||
pkg_dependency_t *deplist = NULL;
|
||||
|
@ -368,11 +368,11 @@ parse_file(const char *filename, FILE *f)
|
|||
else if (!strcasecmp(key, "LIBS.private"))
|
||||
pkg->libs_private = parse_fragment_list(pkg, value);
|
||||
else if (!strcasecmp(key, "Requires"))
|
||||
pkg->requires = parse_deplist(pkg, value);
|
||||
pkg->requires = pkg_dependency_parse(pkg, value);
|
||||
else if (!strcasecmp(key, "Requires.private"))
|
||||
pkg->requires_private = parse_deplist(pkg, value);
|
||||
pkg->requires_private = pkg_dependency_parse(pkg, value);
|
||||
else if (!strcasecmp(key, "Conflicts"))
|
||||
pkg->conflicts = parse_deplist(pkg, value);
|
||||
pkg->conflicts = pkg_dependency_parse(pkg, value);
|
||||
break;
|
||||
case '=':
|
||||
pkg->vars = pkg_tuple_add(pkg->vars, key, value);
|
||||
|
|
2
pkg.h
2
pkg.h
|
@ -145,7 +145,7 @@ const char *pkg_get_comparator(pkg_dependency_t *pkgdep);
|
|||
|
||||
/* parse.c */
|
||||
pkg_t *parse_file(const char *path, FILE *f);
|
||||
pkg_dependency_t *parse_deplist(pkg_t *pkg, const char *depends);
|
||||
pkg_dependency_t *pkg_dependency_parse(pkg_t *pkg, const char *depends);
|
||||
pkg_dependency_t *pkg_dependency_append(pkg_dependency_t *head, pkg_dependency_t *tail);
|
||||
void pkg_dependency_free(pkg_dependency_t *head);
|
||||
|
||||
|
|
Loading…
Reference in New Issue