| 73 | } |
| 74 | |
| 75 | static bool gic_parse(cbm_ignore_checked_t *owner, const void *bytes, size_t length, size_t count, |
| 76 | const cbm_ignore_program_t **program) { |
| 77 | cbm_ignore_checked_control_t control = gic_control(); |
| 78 | cbm_ignore_checked_parse_result_t out = {0}; |
| 79 | cbm_ignore_checked_error_t error; |
| 80 | cbm_ignore_checked_status_t status = |
| 81 | cbm_ignore_checked_parse(owner, bytes, length, &control, &out, &error); |
| 82 | if (!gic_status(status, CBM_IGNORE_CHECKED_OK, &error) || !out.program || |
| 83 | out.pattern_count != count) |
| 84 | return false; |
| 85 | *program = out.program; |
| 86 | return true; |
| 87 | } |
| 88 | |
| 89 | static bool gic_match(cbm_ignore_checked_t *owner, const cbm_ignore_program_t *program, |
| 90 | const char *path, bool directory, cbm_ignore_decision_t expected) { |
no test coverage detected