| 60 | } |
| 61 | |
| 62 | static bool gic_open(cbm_ignore_checked_t **owner, const cbm_ignore_checked_limits_t *limits) { |
| 63 | cbm_ignore_checked_error_t error; |
| 64 | memset(&error, 0xa5, sizeof(error)); |
| 65 | bool ok = |
| 66 | gic_status(cbm_ignore_checked_open(limits, owner, &error), CBM_IGNORE_CHECKED_OK, &error) && |
| 67 | *owner; |
| 68 | if (!ok) { |
| 69 | cbm_ignore_checked_free(*owner); |
| 70 | *owner = NULL; |
| 71 | } |
| 72 | return ok; |
| 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) { |
no test coverage detected