Scan the given token SYNOPSYS Scan the given token and rotate lasttok to prevtok on success. RETURN 1 - success 0 - failure */
| 1437 | 0 - failure |
| 1438 | */ |
| 1439 | static int |
| 1440 | my_xpath_parse_term(MY_XPATH *xpath, int term) |
| 1441 | { |
| 1442 | if (xpath->lasttok.term == term && !xpath->error) |
| 1443 | { |
| 1444 | xpath->prevtok= xpath->lasttok; |
| 1445 | my_xpath_lex_scan(xpath, &xpath->lasttok, |
| 1446 | xpath->lasttok.end, xpath->query.end); |
| 1447 | return 1; |
| 1448 | } |
| 1449 | return 0; |
| 1450 | } |
| 1451 | |
| 1452 | |
| 1453 | /* |
no test coverage detected