} GlobCode;
#define GLOBERROR(string, column, code) \
- glob->error = string, glob->pos = column, code;
+ glob->error = string, glob->pos = column, code
void glob_cleanup(URLGlob* glob);
}
else if(c == ']') {
*skip = i;
- return colons >= 2;
+ return colons >= 2 ? TRUE : FALSE;
}
else {
return FALSE;
size_t i;
int elem;
+ /* the < condition is required since i underflows! */
for(i = glob->size - 1; i < glob->size; --i) {
if((glob->pattern[i].type == UPTSet) &&
(glob->pattern[i].content.Set.elements)) {
/* implement a counter over the index ranges of all patterns,
starting with the rightmost pattern */
+ /* the < condition is required since i underflows! */
for(i = glob->size - 1; carry && (i < glob->size); --i) {
carry = FALSE;
pat = &glob->pattern[i];