forked from ariadne/pkgconf
parse: export parse_deplist to public API
parent
faf2926f27
commit
85bb0441d4
2
parse.c
2
parse.c
|
@ -144,7 +144,7 @@ pkg_dependency_add(pkg_dependency_t *head, const char *package, const char *vers
|
||||||
#define MODULE_SEPARATOR(c) ((c) == ',' || isspace ((c)))
|
#define MODULE_SEPARATOR(c) ((c) == ',' || isspace ((c)))
|
||||||
#define OPERATOR_CHAR(c) ((c) == '<' || (c) == '>' || (c) == '!' || (c) == '=')
|
#define OPERATOR_CHAR(c) ((c) == '<' || (c) == '>' || (c) == '!' || (c) == '=')
|
||||||
|
|
||||||
static pkg_dependency_t *
|
pkg_dependency_t *
|
||||||
parse_deplist(pkg_t *pkg, const char *depends)
|
parse_deplist(pkg_t *pkg, const char *depends)
|
||||||
{
|
{
|
||||||
parse_state_t state = OUTSIDE_MODULE;
|
parse_state_t state = OUTSIDE_MODULE;
|
||||||
|
|
1
pkg.h
1
pkg.h
|
@ -90,5 +90,6 @@ void pkg_traverse(pkg_t *root, void (*pkg_traverse_func)(pkg_t *package, void *d
|
||||||
/* parse.c */
|
/* parse.c */
|
||||||
pkg_t *parse_file(const char *path);
|
pkg_t *parse_file(const char *path);
|
||||||
char *tuple_find(pkg_tuple_t *head, const char *key);
|
char *tuple_find(pkg_tuple_t *head, const char *key);
|
||||||
|
pkg_dependency_t *parse_deplist(pkg_t *pkg, const char *depends);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue