Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_arm64.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_arm64.c Sat Sep 17 14:31:54 2016 +0200 +++ b/dyncallback/dyncall_callback_arm64.c Sat Oct 22 15:55:54 2016 +0200 @@ -6,8 +6,8 @@ Description: Callback - Implementation for ARM64 / ARMv8 / AAPCS64 License: - Copyright (c) 2015 Daniel Adler <dadler@uni-goettingen.de>, - Tassilo Philipp <tphilipp@potion-studios.com> + Copyright (c) 2015-2016 Daniel Adler <dadler@uni-goettingen.de>, + Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -23,23 +23,21 @@ */ + #include "dyncall_callback.h" #include "dyncall_alloc_wx.h" #include "dyncall_thunk.h" +/* Callback symbol. */ extern void dcCallbackThunkEntry(); -struct DCCallback -{ - // off size - // ----|----- - DCThunk thunk; // 0 32 - DCCallbackHandler* handler; // 32 8 - void* userdata; // 40 8 - // - // size 48 - // aligned 48 -}; +struct DCCallback /* off size */ +{ /* ----|----- */ + DCThunk thunk; /* 0 32 */ + DCCallbackHandler* handler; /* 32 8 */ + void* userdata; /* 40 8 */ +}; /* total 48 */ + /* aligned 48 */ void dcbInitCallback(DCCallback* pcb, const char* signature, DCCallbackHandler* handler, void* userdata) {