| 29 | } |
| 30 | |
| 31 | void |
| 32 | hoedown_stack_grow(hoedown_stack *st, size_t neosz) |
| 33 | { |
| 34 | assert(st); |
| 35 | |
| 36 | if (st->asize >= neosz) |
| 37 | return; |
| 38 | |
| 39 | st->item = hoedown_realloc(st->item, neosz * sizeof(void *)); |
| 40 | memset(st->item + st->asize, 0x0, (neosz - st->asize) * sizeof(void *)); |
| 41 | |
| 42 | st->asize = neosz; |
| 43 | |
| 44 | if (st->size > neosz) |
| 45 | st->size = neosz; |
| 46 | } |
| 47 | |
| 48 | void |
| 49 | hoedown_stack_push(hoedown_stack *st, void *item) |
no test coverage detected