| 2130 | return 0; |
| 2131 | } |
| 2132 | static int my_xpath_parse_EqualityExpr(MY_XPATH *xpath) |
| 2133 | { |
| 2134 | MY_XPATH_LEX operator_context; |
| 2135 | if (!my_xpath_parse_RelationalExpr(xpath)) |
| 2136 | return 0; |
| 2137 | |
| 2138 | operator_context= xpath->lasttok; |
| 2139 | while (my_xpath_parse_EqualityOperator(xpath)) |
| 2140 | { |
| 2141 | Item *prev= xpath->item; |
| 2142 | int oper= xpath->extra; |
| 2143 | if (!my_xpath_parse_RelationalExpr(xpath)) |
| 2144 | { |
| 2145 | xpath->error= 1; |
| 2146 | return 0; |
| 2147 | } |
| 2148 | |
| 2149 | if (!(xpath->item= create_comparator(xpath, oper, &operator_context, |
| 2150 | prev, xpath->item))) |
| 2151 | return 0; |
| 2152 | |
| 2153 | operator_context= xpath->lasttok; |
| 2154 | } |
| 2155 | return 1; |
| 2156 | } |
| 2157 | |
| 2158 | |
| 2159 | /* |
no test coverage detected