parse: export parse_deplist to public API

feature/tap-sh
William Pitcock 2011-07-25 00:38:23 -05:00
parent faf2926f27
commit 85bb0441d4
2 changed files with 2 additions and 1 deletions

View File

@ -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
View File

@ -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