mirror of
https://github.com/curl/curl.git
synced 2026-08-11 15:22:00 +03:00
Multiple URL support added
This commit is contained in:
parent
53c27c7722
commit
14ca732a8f
3 changed files with 396 additions and 312 deletions
|
|
@ -213,6 +213,7 @@ int glob_url(URLGlob** glob, char* url, int *urlnum)
|
|||
glob_expand->size = 0;
|
||||
glob_expand->urllen = strlen(url);
|
||||
glob_expand->glob_buffer = glob_buffer;
|
||||
glob_expand->beenhere=0;
|
||||
*urlnum = glob_word(glob_expand, url, 1);
|
||||
*glob = glob_expand;
|
||||
return CURLE_OK;
|
||||
|
|
@ -240,15 +241,14 @@ void glob_cleanup(URLGlob* glob)
|
|||
|
||||
char *next_url(URLGlob *glob)
|
||||
{
|
||||
static int beenhere = 0;
|
||||
char *buf = glob->glob_buffer;
|
||||
URLPattern *pat;
|
||||
char *lit;
|
||||
signed int i;
|
||||
int carry;
|
||||
|
||||
if (!beenhere)
|
||||
beenhere = 1;
|
||||
if (!glob->beenhere)
|
||||
glob->beenhere = 1;
|
||||
else {
|
||||
carry = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue