aboutsummaryrefslogtreecommitdiff
path: root/trunk/ctkivy.c
diff options
context:
space:
mode:
authorhattenberger2013-05-01 22:48:44 +0000
committerhattenberger2013-05-01 22:48:44 +0000
commitd567e908db2e1acec01d0798bd7e8af6c084dba4 (patch)
tree6b6eb46c9ea53360eda9127e54efb22acd857bbe /trunk/ctkivy.c
parent7fae936e59d5c4a446e0c1e92e6d2df4fac5c37d (diff)
downloadivy-ocaml-d567e908db2e1acec01d0798bd7e8af6c084dba4.zip
ivy-ocaml-d567e908db2e1acec01d0798bd7e8af6c084dba4.tar.gz
ivy-ocaml-d567e908db2e1acec01d0798bd7e8af6c084dba4.tar.bz2
ivy-ocaml-d567e908db2e1acec01d0798bd7e8af6c084dba4.tar.xz
remove accidental trunk dir
Diffstat (limited to 'trunk/ctkivy.c')
-rw-r--r--trunk/ctkivy.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/trunk/ctkivy.c b/trunk/ctkivy.c
deleted file mode 100644
index 87b7eb6..0000000
--- a/trunk/ctkivy.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <getopt.h>
-#include <timer.h>
-#include <caml/mlvalues.h>
-#include <caml/fail.h>
-#include <caml/callback.h>
-#include <caml/memory.h>
-#include <caml/alloc.h>
-#include "ivytcl.h"
-
-extern void cb_delete_channel(void *delete_read);
-extern void cb_read_channel(Channel ch, IVY_HANDLE fd, void *closure);
-
-value ivy_TclmainLoop(value unit)
-{
- Tk_MainLoop();
- return Val_unit;
-}
-
-
-value ivy_TclchannelSetUp(value fd, value closure_name)
-{
- Channel c;
- value * closure = caml_named_value(String_val(closure_name));
-
- c = IvyTclChannelSetUp((IVY_HANDLE)Int_val(fd), (void*)closure, cb_delete_channel, cb_read_channel);
- return Val_int(c);
-}
-
-value ivy_TclchannelClose(value ch)
-{
- IvyTclChannelClose((Channel)Int_val(ch));
- return Val_unit;
-}