summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/camltk.h
blob: 176ad8a8beff957fc3d9e5feaacf6f8ef2891556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* cltkEval.c */
extern Tcl_Interp *cltclinterp; /* The Tcl interpretor */

/* copy a Caml string to the C heap. Must be deallocated with stat_free */
char *string_to_c();

/* cltkCaml.c */
/* pointers to Caml values */
extern value *tkerror_exn;
extern value *handler_code;
int CamlCBCmd();
void tk_error();

/* cltkMain.c */
extern int signal_events;
void invoke_pending_caml_signals();
extern Tk_Window cltk_mainWindow;
extern int cltk_slave_mode;

/* check that initialisations took place */
#define CheckInit()  if (!cltclinterp) tk_error("Tcl/Tk not initialised")

#define RCNAME ".camltkrc"
#define CAMLCB "camlcb"