7 Dec
2022
7 Dec
'22
4:15 p.m.
Jacek Caban (@jacek) commented about dlls/jscript/jscript.h:
void heap_pool_free(heap_pool_t*) DECLSPEC_HIDDEN; heap_pool_t *heap_pool_mark(heap_pool_t*) DECLSPEC_HIDDEN;
+/* Initialize to zero before use */ +struct heap_stack { + struct heap_stack_chunk *chunk; + struct heap_stack_chunk *next; + unsigned idx; +}; + +HRESULT heap_stack_push(struct heap_stack*,void*) DECLSPEC_HIDDEN; +void *heap_stack_pop(struct heap_stack*) DECLSPEC_HIDDEN; This is not really generic nor used outside GC, I'd suggest to make it private to GC and not have it in the header at all.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1635#note_19023