| 20 | } |
| 21 | |
| 22 | static CBMScopeChunk* alloc_chunk(CBMScope* scope) { |
| 23 | if (!scope->arena) { |
| 24 | return NULL; |
| 25 | } |
| 26 | CBMScopeChunk* c = (CBMScopeChunk*)cbm_arena_alloc(scope->arena, sizeof(CBMScopeChunk)); |
| 27 | if (!c) { |
| 28 | return NULL; |
| 29 | } |
| 30 | memset(c, 0, sizeof(CBMScopeChunk)); |
| 31 | c->next = scope->chunks; |
| 32 | scope->chunks = c; |
| 33 | return c; |
| 34 | } |
| 35 | |
| 36 | /* Returns false when the binding could NOT be recorded in THIS frame. |
| 37 | * |
no test coverage detected