| 1 |
#include "../chaining.h" |
| 2 |
#include "common.h" |
| 3 |
static void otl_init_chaining(subtable_chaining *subtable) { |
| 4 |
memset(subtable, 0, sizeof(*subtable)); |
| 5 |
} |
| 6 |
static void otl_dispose_chaining(subtable_chaining *subtable) { |
| 7 |
if (subtable->type) { |
| 8 |
if (subtable->rules) { |
| 9 |
for (tableid_t j = 0; j < subtable->rulesCount; j++) { |
| 10 |
deleteRule(subtable->rules[j]); |
| 11 |
} |
| 12 |
FREE(subtable->rules); |
| 13 |
} |
| 14 |
if (subtable->bc) { ClassDef.free(subtable->bc); } |
| 15 |
if (subtable->ic) { ClassDef.free(subtable->ic); } |
| 16 |
if (subtable->fc) { ClassDef.free(subtable->fc); } |
| 17 |
} else { |
| 18 |
closeRule(&subtable->rule); |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
caryll_standardRefType(subtable_chaining, iSubtable_chaining, otl_init_chaining, |
| 23 |
otl_dispose_chaining); |