aboutsummaryrefslogtreecommitdiff
path: root/src/tool_urlglob.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_urlglob.h')
-rw-r--r--src/tool_urlglob.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/tool_urlglob.h b/src/tool_urlglob.h
index 9c0813750..e1e9c6384 100644
--- a/src/tool_urlglob.h
+++ b/src/tool_urlglob.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -31,11 +31,13 @@ typedef enum {
typedef struct {
URLPatternType type;
+ int globindex; /* the number of this particular glob or -1 if not used
+ within {} or [] */
union {
struct {
char **elements;
- short size;
- short ptr_s;
+ int size;
+ int ptr_s;
} Set;
struct {
char min_c;
@@ -44,21 +46,20 @@ typedef struct {
int step;
} CharRange;
struct {
- int min_n;
- int max_n;
- short padlength;
- int ptr_n;
- int step;
+ unsigned long min_n;
+ unsigned long max_n;
+ int padlength;
+ unsigned long ptr_n;
+ unsigned long step;
} NumRange ;
} content;
} URLPattern;
/* the total number of globs supported */
-#define GLOB_PATTERN_NUM 9
+#define GLOB_PATTERN_NUM 100
typedef struct {
- char *literal[10];
- URLPattern pattern[GLOB_PATTERN_NUM+1];
+ URLPattern pattern[GLOB_PATTERN_NUM];
size_t size;
size_t urllen;
char *glob_buffer;
@@ -66,7 +67,7 @@ typedef struct {
char errormsg[80]; /* error message buffer */
} URLGlob;
-int glob_url(URLGlob**, char*, int *, FILE *);
+int glob_url(URLGlob**, char*, unsigned long *, FILE *);
int glob_next_url(char **, URLGlob *);
int glob_match_url(char **, char*, URLGlob *);
void glob_cleanup(URLGlob* glob);