| 1344 | } |
| 1345 | |
| 1346 | static void compiler_free( compiler * c ) |
| 1347 | { |
| 1348 | int i; |
| 1349 | dynamic_array_free( c->actions ); |
| 1350 | dynamic_array_free( c->rules ); |
| 1351 | for ( i = 0; i < c->labels->size; ++i ) |
| 1352 | dynamic_array_free( dynamic_array_at( struct label_info, c->labels, i |
| 1353 | ).uses ); |
| 1354 | dynamic_array_free( c->labels ); |
| 1355 | dynamic_array_free( c->constants ); |
| 1356 | dynamic_array_free( c->code ); |
| 1357 | } |
| 1358 | |
| 1359 | static void compile_emit_instruction( compiler * c, instruction instr ) |
| 1360 | { |
no test coverage detected