case OP_OR: {
const SQChar *asd = str;
SQRexNode *temp=&exp->_nodes[node->left];
- while(asd = sqstd_rex_matchnode(exp,temp,asd)) {
+ while( (asd = sqstd_rex_matchnode(exp,temp,asd)) ) {
if(temp->next != -1)
temp = &exp->_nodes[temp->next];
else
}
asd = str;
temp = &exp->_nodes[node->right];
- while(asd = sqstd_rex_matchnode(exp,temp,asd)) {
+ while( (asd = sqstd_rex_matchnode(exp,temp,asd)) ) {
if(temp->next != -1)
temp = &exp->_nodes[temp->next];
else
return cur;
}
case OP_WB:
- if(str == exp->_bol && !isspace(*str)
+ if((str == exp->_bol && !isspace(*str))
|| (str == exp->_eol && !isspace(*(str-1)))
- || (!isspace(*str) && isspace(*(str+1)))
- || (isspace(*str) && !isspace(*(str+1))) ) {
+ || ((!isspace(*str) && isspace(*(str+1))))
+ || ((isspace(*str) && !isspace(*(str+1)))) ) {
return (node->left == 'b')?str:NULL;
}
return (node->left == 'b')?NULL:str;