aboutsummaryrefslogtreecommitdiff
path: root/civyloop.c
diff options
context:
space:
mode:
authorhattenberger2011-02-02 16:58:02 +0000
committerhattenberger2011-02-02 16:58:02 +0000
commit066e7e9c37a407fc6dfd2d2140d0a23bd4b4c36c (patch)
tree9b2bf9af70c8b5cf81df76f8703697e13602af9a /civyloop.c
parent93717e0b2c10f79f0456db95a1ab018d15cdbc41 (diff)
downloadivy-ocaml-066e7e9c37a407fc6dfd2d2140d0a23bd4b4c36c.zip
ivy-ocaml-066e7e9c37a407fc6dfd2d2140d0a23bd4b4c36c.tar.gz
ivy-ocaml-066e7e9c37a407fc6dfd2d2140d0a23bd4b4c36c.tar.bz2
ivy-ocaml-066e7e9c37a407fc6dfd2d2140d0a23bd4b4c36c.tar.xz
Change HANDLE to IVY_HANDLE to match latest ivy-c changes
Diffstat (limited to 'civyloop.c')
-rw-r--r--civyloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/civyloop.c b/civyloop.c
index 4ff0a93..083b104 100644
--- a/civyloop.c
+++ b/civyloop.c
@@ -39,8 +39,8 @@ value ivy_timerRepeatafter(value nb_ticks,value delay, value closure_name)
read closures */
extern void cb_delete_channel(void *delete_read);
-extern void cb_read_channel(Channel ch, HANDLE fd, void *closure);
-extern void cb_write_channel(Channel ch, HANDLE fd, void *closure);
+extern void cb_read_channel(Channel ch, IVY_HANDLE fd, void *closure);
+extern void cb_write_channel(Channel ch, IVY_HANDLE fd, void *closure);
value ivy_channelSetUp(value fd, value closure_name)
@@ -49,9 +49,9 @@ value ivy_channelSetUp(value fd, value closure_name)
value * closure = caml_named_value(String_val(closure_name));
#if IVYMINOR_VERSION == 8
- c = IvyChannelAdd((HANDLE)Int_val(fd), (void*)closure, cb_delete_channel, cb_read_channel);
+ c = IvyChannelAdd((IVY_HANDLE)Int_val(fd), (void*)closure, cb_delete_channel, cb_read_channel);
#else
- c = IvyChannelAdd((HANDLE)Int_val(fd), (void*)closure, cb_delete_channel, cb_read_channel, cb_write_channel);
+ c = IvyChannelAdd((IVY_HANDLE)Int_val(fd), (void*)closure, cb_delete_channel, cb_read_channel, cb_write_channel);
#endif
return Val_int(c);
}