• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/src/

Lines Matching defs:glob

39   glob->error = string, glob->pos = column, code;
41 void glob_cleanup(URLGlob* glob);
43 static GlobCode glob_fixed(URLGlob *glob, char *fixed, size_t len)
45 URLPattern *pat = &glob->pattern[glob->size];
79 static GlobCode glob_set(URLGlob *glob, char **patternp,
88 char *buf = glob->glob_buffer;
93 pat = &glob->pattern[glob->size];
137 strdup(glob->glob_buffer);
148 buf = glob->glob_buffer;
172 static GlobCode glob_range(URLGlob *glob, char **patternp,
187 pat = &glob->pattern[glob->size];
305 static GlobCode glob_parse(URLGlob *glob, char *pattern,
317 char *buf = glob->glob_buffer;
339 res = glob_fixed(glob, glob->glob_buffer, sublen);
350 res = glob_set(glob, &pattern, &pos, amount, globindex++);
357 res = glob_range(glob, &pattern, &pos, amount, globindex++);
362 if(++glob->size > GLOB_PATTERN_NUM)
368 int glob_url(URLGlob** glob, char* url, unsigned long *urlnum, FILE *error)
379 *glob = NULL;
417 *glob = glob_expand;
421 void glob_cleanup(URLGlob* glob)
426 for(i = glob->size - 1; i < glob->size; --i) {
427 if((glob->pattern[i].type == UPTSet) &&
428 (glob->pattern[i].content.Set.elements)) {
429 for(elem = glob->pattern[i].content.Set.size - 1;
432 Curl_safefree(glob->pattern[i].content.Set.elements[elem]);
434 Curl_safefree(glob->pattern[i].content.Set.elements);
437 Curl_safefree(glob->glob_buffer);
438 Curl_safefree(glob);
441 int glob_next_url(char **globbed, URLGlob *glob)
447 size_t buflen = glob->urllen + 1;
448 char *buf = glob->glob_buffer;
452 if(!glob->beenhere)
453 glob->beenhere = 1;
459 for(i = glob->size - 1; carry && (i < glob->size); --i) {
461 pat = &glob->pattern[i];
496 for(j = 0; j < glob->size; ++j) {
497 pat = &glob->pattern[j];
525 *globbed = strdup(glob->glob_buffer);
532 int glob_match_url(char **result, char *filename, URLGlob *glob)
560 if(num < glob->size) {
562 /* find the correct glob entry */
563 for(i=0; i<glob->size; i++) {
564 if(glob->pattern[i].globindex == (int)num) {
565 pat = &glob->pattern[i];