| 1454 | } |
| 1455 | |
| 1456 | static void compiler_free( compiler * c ) |
| 1457 | { |
| 1458 | int32_t i; |
| 1459 | dynamic_array_free( c->actions ); |
| 1460 | dynamic_array_free( c->rules ); |
| 1461 | for ( i = 0; i < c->labels->size; ++i ) |
| 1462 | dynamic_array_free( dynamic_array_at( struct label_info, c->labels, i |
| 1463 | ).uses ); |
| 1464 | dynamic_array_free( c->labels ); |
| 1465 | dynamic_array_free( c->constants ); |
| 1466 | dynamic_array_free( c->code ); |
| 1467 | dynamic_array_free( c->cleanups ); |
| 1468 | dynamic_array_free( c->loop_scopes ); |
| 1469 | } |
| 1470 | |
| 1471 | static void compile_emit_instruction( compiler * c, instruction instr ) |
| 1472 | { |
no test coverage detected