| 2191 | return 0; |
| 2192 | } |
| 2193 | static int my_xpath_parse_RelationalExpr(MY_XPATH *xpath) |
| 2194 | { |
| 2195 | MY_XPATH_LEX operator_context; |
| 2196 | if (!my_xpath_parse_AdditiveExpr(xpath)) |
| 2197 | return 0; |
| 2198 | operator_context= xpath->lasttok; |
| 2199 | while (my_xpath_parse_RelationalOperator(xpath)) |
| 2200 | { |
| 2201 | Item *prev= xpath->item; |
| 2202 | int oper= xpath->extra; |
| 2203 | |
| 2204 | if (!my_xpath_parse_AdditiveExpr(xpath)) |
| 2205 | { |
| 2206 | xpath->error= 1; |
| 2207 | return 0; |
| 2208 | } |
| 2209 | |
| 2210 | if (!(xpath->item= create_comparator(xpath, oper, &operator_context, |
| 2211 | prev, xpath->item))) |
| 2212 | return 0; |
| 2213 | operator_context= xpath->lasttok; |
| 2214 | } |
| 2215 | return 1; |
| 2216 | } |
| 2217 | |
| 2218 | |
| 2219 | /* |
no test coverage detected