diff dyncallback/dyncall_callback_sparc64.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 82a0eef83db0
children 2f7a7f3472cb
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_sparc64.c	Sat Sep 17 14:31:54 2016 +0200
+++ b/dyncallback/dyncall_callback_sparc64.c	Sat Oct 22 15:55:54 2016 +0200
@@ -6,7 +6,7 @@
  Description: Callback - Implementation for sparc64 (TODO: not implemented yet)
  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,16 +25,25 @@
 
 
 #include "dyncall_callback.h"
-#include "dyncall_callback_sparc32.h"
+#include "dyncall_alloc_wx.h"
+#include "dyncall_thunk.h"
+
+/* Callback symbol. */
+extern void dcCallbackThunkEntry();
 
-#include "dyncall_alloc_wx.h"
+struct DCCallback
+{
+  DCThunk            thunk;         /* offset  0, size ?? */
+  DCCallbackHandler* handler;       /* offset ??, size  4 */
+  size_t             stack_cleanup; /* offset ??, size  4 */
+  void*              userdata;      /* offset ??, size  4 */
+};
+
 
 void dcbInitCallback(DCCallback* pcb, const char* signature, DCCallbackHandler* handler, void* userdata)
 {
 }
 
-extern void dcCallbackThunkEntry();
-
 DCCallback* dcbNewCallback(const char* signature, DCCallbackHandler* handler, void* userdata)
 {
   DCCallback* pcb;