| 2455 | // |
| 2456 | |
| 2457 | static bool par_options(gpre_req* request, bool flag) |
| 2458 | { |
| 2459 | if (!MSC_match(KW_LEFT_PAREN)) |
| 2460 | return true; |
| 2461 | |
| 2462 | while (true) |
| 2463 | { |
| 2464 | if (MSC_match(KW_RIGHT_PAREN)) |
| 2465 | return true; |
| 2466 | if (MSC_match(KW_REQUEST_HANDLE)) |
| 2467 | { |
| 2468 | request->req_handle = PAR_native_value(false, true); |
| 2469 | request->req_flags |= REQ_exp_hand; |
| 2470 | } |
| 2471 | else if (MSC_match(KW_TRANSACTION_HANDLE)) |
| 2472 | request->req_trans = PAR_native_value(false, true); |
| 2473 | else if (MSC_match(KW_LEVEL)) |
| 2474 | request->req_request_level = PAR_native_value(false, false); |
| 2475 | else |
| 2476 | { |
| 2477 | if (!flag) |
| 2478 | CPR_s_error("request option"); |
| 2479 | return false; |
| 2480 | } |
| 2481 | MSC_match(KW_COMMA); |
| 2482 | } |
| 2483 | } |
| 2484 | |
| 2485 | |
| 2486 | //____________________________________________________________ |
no test coverage detected