Scan And Expression SYNOPSYS [22] AndExpr ::= EqualityExpr | AndExpr 'and' EqualityExpr RETURN 1 - success 0 - failure */
| 2066 | 0 - failure |
| 2067 | */ |
| 2068 | static int my_xpath_parse_AndExpr(MY_XPATH *xpath) |
| 2069 | { |
| 2070 | if (!my_xpath_parse_EqualityExpr(xpath)) |
| 2071 | return 0; |
| 2072 | |
| 2073 | while (my_xpath_parse_term(xpath, MY_XPATH_LEX_AND)) |
| 2074 | { |
| 2075 | Item *prev= xpath->item; |
| 2076 | if (!my_xpath_parse_EqualityExpr(xpath)) |
| 2077 | { |
| 2078 | xpath->error= 1; |
| 2079 | return 0; |
| 2080 | } |
| 2081 | |
| 2082 | xpath->item= new Item_cond_and(nodeset2bool(xpath,prev), |
| 2083 | nodeset2bool(xpath,xpath->item)); |
| 2084 | } |
| 2085 | return 1; |
| 2086 | } |
| 2087 | |
| 2088 | |
| 2089 | /* |
no test coverage detected