Lines Matching refs:glob

36   glob->error = string, glob->pos = column, code
38 static CURLcode glob_fixed(struct URLGlob *glob, char *fixed, size_t len) in glob_fixed() argument
40 struct URLPattern *pat = &glob->pattern[glob->size]; in glob_fixed()
88 static CURLcode glob_set(struct URLGlob *glob, char **patternp, in glob_set() argument
97 char *buf = glob->glob_buffer; in glob_set()
102 pat = &glob->pattern[glob->size]; in glob_set()
148 strdup(glob->glob_buffer); in glob_set()
159 buf = glob->glob_buffer; in glob_set()
183 static CURLcode glob_range(struct URLGlob *glob, char **patternp, in glob_range() argument
198 pat = &glob->pattern[glob->size]; in glob_range()
371 static CURLcode glob_parse(struct URLGlob *glob, char *pattern, in glob_parse() argument
383 char *buf = glob->glob_buffer; in glob_parse()
420 res = glob_fixed(glob, glob->glob_buffer, sublen); in glob_parse()
431 res = glob_set(glob, &pattern, &pos, amount, globindex++); in glob_parse()
438 res = glob_range(glob, &pattern, &pos, amount, globindex++); in glob_parse()
443 if(++glob->size >= GLOB_PATTERN_NUM) in glob_parse()
449 CURLcode glob_url(struct URLGlob **glob, char *url, curl_off_t *urlnum, in glob_url() argument
461 *glob = NULL; in glob_url()
501 *glob = glob_expand; in glob_url()
509 struct URLGlob *glob = *globp; in glob_cleanup() local
511 if(!glob) in glob_cleanup()
514 for(i = 0; i < glob->size; i++) { in glob_cleanup()
515 if((glob->pattern[i].type == UPTSet) && in glob_cleanup()
516 (glob->pattern[i].content.Set.elements)) { in glob_cleanup()
517 for(elem = glob->pattern[i].content.Set.size - 1; in glob_cleanup()
520 Curl_safefree(glob->pattern[i].content.Set.elements[elem]); in glob_cleanup()
522 Curl_safefree(glob->pattern[i].content.Set.elements); in glob_cleanup()
525 Curl_safefree(glob->glob_buffer); in glob_cleanup()
526 Curl_safefree(glob); in glob_cleanup()
530 CURLcode glob_next_url(char **globbed, struct URLGlob *glob) in glob_next_url() argument
535 size_t buflen = glob->urllen + 1; in glob_next_url()
536 char *buf = glob->glob_buffer; in glob_next_url()
540 if(!glob->beenhere) in glob_next_url()
541 glob->beenhere = 1; in glob_next_url()
547 for(i = 0; carry && (i < glob->size); i++) { in glob_next_url()
549 pat = &glob->pattern[glob->size - 1 - i]; in glob_next_url()
584 for(i = 0; i < glob->size; ++i) { in glob_next_url()
585 pat = &glob->pattern[i]; in glob_next_url()
617 *globbed = strdup(glob->glob_buffer); in glob_next_url()
626 CURLcode glob_match_url(char **result, char *filename, struct URLGlob *glob) in glob_match_url() argument
646 if(num && (num < glob->size)) { in glob_match_url()
650 for(i = 0; i < glob->size; i++) { in glob_match_url()
651 if(glob->pattern[i].globindex == (int)num) { in glob_match_url()
652 pat = &glob->pattern[i]; in glob_match_url()