aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12/cCrossCall_121.c
diff options
context:
space:
mode:
authorCamil Staps2015-07-08 11:28:30 +0200
committerCamil Staps2015-07-08 12:24:04 +0200
commitb417a6431e89ea4f57d48c1ca169c5cc3cc7a4cd (patch)
tree0cff25c1d87721ed43fe1ebcb3de599fde75a914 /Linux_C_12/cCrossCall_121.c
parentgitignore swp files (diff)
Debugging; word sizes (Int -> pointer); fix CleanStrings
Diffstat (limited to 'Linux_C_12/cCrossCall_121.c')
-rw-r--r--Linux_C_12/cCrossCall_121.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/Linux_C_12/cCrossCall_121.c b/Linux_C_12/cCrossCall_121.c
index 22a0ae7..83b1fa4 100644
--- a/Linux_C_12/cCrossCall_121.c
+++ b/Linux_C_12/cCrossCall_121.c
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
+#include <inttypes.h>
char** global_argv;
int global_argc = 0;
@@ -290,15 +291,15 @@ OS WinKillOsThread (OS os)
return os;
} /*WinKillOsThread*/
-#undef PRINTCROSSCALLS
+#define PRINTCROSSCALLS
-void WinKickOsThread (int imess,
- int ip1, int ip2, int ip3,
- int ip4, int ip5, int ip6,
+void WinKickOsThread (int64_t imess,
+ int64_t ip1, int64_t ip2, int64_t ip3,
+ int64_t ip4, int64_t ip5, int64_t ip6,
OS ios,
- int *omess,
- int *op1, int *op2, int *op3,
- int *op4, int *op5, int *op6,
+ int64_t *omess,
+ int64_t *op1, int64_t *op2, int64_t *op3,
+ int64_t *op4, int64_t *op5, int64_t *op6,
OS *oos
)
{
@@ -337,9 +338,9 @@ void WinKickOsThread (int imess,
*op5 = gCci.p5;
*op6 = gCci.p6;
*oos = ios;
- /* printf("Data: %d, %d, %d, %d, %d, %d, %d",
+ printf("Data: %p, %p, %p, %p, %p, %p, %p\n",
gCci.p1, gCci.p2, gCci.p3, gCci.p4,
- gCci.p5, gCci.p6, ios); */
+ gCci.p5, gCci.p6, ios);
}
else
{
@@ -447,7 +448,7 @@ void KickCleanThread (CrossCallInfo * pcci)
#endif
} /* KickCleanThread */
-void SendMessageToClean (int mess, int p1, int p2, int p3, int p4, int p5, int p6)
+void SendMessageToClean (int64_t mess, int64_t p1, int64_t p2, int64_t p3, int64_t p4, int64_t p5, int64_t p6)
{
/* printf("SendMessageToClean -- Message: %d\n", mess); */
gCci.mess = mess;