REDIVIVUS

Proposals / #1590

Mac DEQUE_Clear: void __cdecl (void* pDeque)

checked · by KierTaylor · submitted 2026-11-08

There is one cdecl stack arg, [EBP+8] -> EBX = the deque: it gets the begin/end iterators (0x00025dec), destroys the elements, frees all but the needed blocks, and resets the start offset (+0x10 = 0x16 or 0xb depending on the block count). Plain RET with no return value. The only caller, DEQUE_Destructor 0x00026b8a, stores [ESP]=the deque and then reloads its fields without reading EAX.

Changes 1, applied together

  1. Set prototype mac 0x00026bc2

    signatureundefined DEQUE_Clear(void)→void DEQUE_Clear(void* pDeque)
    conventionunknown→__cdecl