Lines Matching refs:s
17 const char *s = entry; in strlist__node_new() local
24 s = strdup(s); in strlist__node_new()
25 if (s == NULL) in strlist__node_new()
28 snode->s = s; in strlist__node_new()
42 zfree((char **)&snode->s); in str_node__delete()
60 return strcmp(snode->s, str); in strlist__node_cmp()
111 static int strlist__parse_list_entry(struct strlist *slist, const char *s, in strlist__parse_list_entry() argument
117 if (strncmp(s, "file://", 7) == 0) in strlist__parse_list_entry()
118 return strlist__load(slist, s + 7); in strlist__parse_list_entry()
122 if (asprintf(&subst, "%s/%s", subst_dir, s) < 0) in strlist__parse_list_entry()
136 err = strlist__add(slist, s); in strlist__parse_list_entry()
142 static int strlist__parse_list(struct strlist *slist, const char *s, const char *subst_dir) in strlist__parse_list() argument
147 while ((sep = strchr(s, ',')) != NULL) { in strlist__parse_list()
149 err = strlist__parse_list_entry(slist, s, subst_dir); in strlist__parse_list()
153 s = sep + 1; in strlist__parse_list()
156 return *s ? strlist__parse_list_entry(slist, s, subst_dir) : 0; in strlist__parse_list()