forked from ariadne/pkgconf
parse: make strdup_parse() public
parent
0b244237b1
commit
0737a72070
2
parse.c
2
parse.c
|
@ -53,7 +53,7 @@ tuple_find(pkg_tuple_t *head, const char *key)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
char *
|
||||||
strdup_parse(pkg_t *pkg, const char *value)
|
strdup_parse(pkg_t *pkg, const char *value)
|
||||||
{
|
{
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
|
|
1
pkg.h
1
pkg.h
|
@ -129,6 +129,7 @@ pkg_t *parse_file(const char *path, FILE *f);
|
||||||
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);
|
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);
|
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 */
|
/* argvsplit.c */
|
||||||
int argv_split(const char *src, int *argc, char ***argv);
|
int argv_split(const char *src, int *argc, char ***argv);
|
||||||
|
|
Loading…
Reference in New Issue