Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_ppc32.c @ 152:d48a8b8d2ef9
- integrated all headers containing DCCallback definition into the translation units used (arm64 already avoided this pointless header, so following that style)
- some cleanups, removal of unnecessary includes, etc.
author | cslag |
---|---|
date | Sat, 22 Oct 2016 15:55:54 +0200 |
parents | 3e629dc19168 |
children | 030fbb70aa1b |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_ppc32.c Sat Sep 17 14:31:54 2016 +0200 +++ b/dyncallback/dyncall_callback_ppc32.c Sat Oct 22 15:55:54 2016 +0200 @@ -6,7 +6,7 @@ Description: Callback - Implementation Header for ppc32 License: - Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, + Copyright (c) 2007-2016 Daniel Adler <dadler@uni-goettingen.de>, Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any @@ -25,7 +25,20 @@ #include "dyncall_callback.h" -#include "dyncall_callback_ppc32.h" +#include "dyncall_alloc_wx.h" +#include "dyncall_thunk.h" + +/* Callback symbol. */ +extern void dcCallbackThunkEntry(); + +struct DCCallback +{ + DCThunk thunk; /* offset 0 size 24 */ + DCCallbackHandler* handler; /* offset 24 size 4 */ + size_t stack_cleanup; /* offset 28 size 4 */ + void* userdata; /* offset 32 size 4 */ +}; /* total size 36 */ + void dcbInitCallback(DCCallback* pcb, const char* signature, DCCallbackHandler* handler, void* userdata) { @@ -36,8 +49,6 @@ pcb->userdata = userdata; } -extern void dcCallbackThunkEntry(); - DCCallback* dcbNewCallback(const char* signature, DCCallbackHandler* handler, void* userdata) { DCCallback* pcb;