summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/support')
-rw-r--r--otherlibs/labltk/support/camltk.h5
-rw-r--r--otherlibs/labltk/support/cltkEval.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/otherlibs/labltk/support/camltk.h b/otherlibs/labltk/support/camltk.h
index 06505cf71..44354076a 100644
--- a/otherlibs/labltk/support/camltk.h
+++ b/otherlibs/labltk/support/camltk.h
@@ -25,7 +25,8 @@ extern value tcl_string_to_caml( char * );
extern char * caml_string_to_tcl( value );
/* cltkEval.c */
-CAMLprim Tcl_Interp *cltclinterp; /* The Tcl interpretor */
+extern Tcl_Interp *cltclinterp; /* The Tcl interpretor */
+extern Tcl_Interp * get_cltclinterp(void);
extern value copy_string_list(int argc, char ** argv);
/* cltkCaml.c */
@@ -34,7 +35,7 @@ extern value *tkerror_exn;
extern value *handler_code;
extern int CamlCBCmd(ClientData clientdata, Tcl_Interp *interp,
int argc, char *argv[]);
-CAMLprim void tk_error(char * errmsg) Noreturn;
+extern void tk_error(char * errmsg) Noreturn;
/* cltkMain.c */
extern int signal_events;
diff --git a/otherlibs/labltk/support/cltkEval.c b/otherlibs/labltk/support/cltkEval.c
index ae86452f2..5c9aeac12 100644
--- a/otherlibs/labltk/support/cltkEval.c
+++ b/otherlibs/labltk/support/cltkEval.c
@@ -30,7 +30,12 @@
#include "camltk.h"
/* The Tcl interpretor */
-CAMLprim Tcl_Interp *cltclinterp = NULL;
+Tcl_Interp *cltclinterp = NULL;
+
+CAMLexport Tcl_Interp * get_cltclinterp(void)
+{
+ return cltclinterp;
+}
/* Copy a list of strings from the C heap to Caml */
value copy_string_list(int argc, char **argv)