parse: make strdup_parse() public

feature/tap-sh
William Pitcock 2012-05-05 21:51:38 +00:00
parent 0b244237b1
commit 0737a72070
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ tuple_find(pkg_tuple_t *head, const char *key)
return NULL;
}
static char *
char *
strdup_parse(pkg_t *pkg, const char *value)
{
char buf[BUFSIZ];

1
pkg.h
View File

@ -129,6 +129,7 @@ pkg_t *parse_file(const char *path, FILE *f);
char *tuple_find(pkg_tuple_t *head, const char *key);
pkg_dependency_t *parse_deplist(pkg_t *pkg, const char *depends);
pkg_dependency_t *pkg_dependency_append(pkg_dependency_t *head, pkg_dependency_t *tail);
char *strdup_parse(pkg_t *pkg, const char *value);
/* argvsplit.c */
int argv_split(const char *src, int *argc, char ***argv);