1999-12-16 04:25:11 -08:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Objective Caml LablTk library */
|
|
|
|
/* */
|
|
|
|
/* Francois Rouaix, Francois Pessaux and Jun Furuse */
|
|
|
|
/* projet Cristal, INRIA Rocquencourt */
|
|
|
|
/* Jacques Garrigue, Kyoto University RIMS */
|
|
|
|
/* */
|
|
|
|
/* Copyright 1999 Institut National de Recherche en Informatique et */
|
|
|
|
/* en Automatique and Kyoto University. All rights reserved. */
|
|
|
|
/* This file is distributed under the terms of the GNU Library */
|
|
|
|
/* General Public License. */
|
|
|
|
/* */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-04-17 01:55:44 -07:00
|
|
|
/* cltkMisc.c */
|
|
|
|
/* copy a Caml string to the C heap. Must be deallocated with stat_free */
|
|
|
|
extern char *string_to_c(value s);
|
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
/* cltkEval.c */
|
|
|
|
extern Tcl_Interp *cltclinterp; /* The Tcl interpretor */
|
2000-04-17 01:55:44 -07:00
|
|
|
extern value copy_string_list(int argc, char ** argv);
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
/* cltkCaml.c */
|
|
|
|
/* pointers to Caml values */
|
|
|
|
extern value *tkerror_exn;
|
|
|
|
extern value *handler_code;
|
2000-04-17 01:55:44 -07:00
|
|
|
extern int CamlCBCmd(ClientData clientdata, Tcl_Interp *interp,
|
|
|
|
int argc, char *argv[]);
|
|
|
|
extern void tk_error(char * errmsg) Noreturn;
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
/* cltkMain.c */
|
|
|
|
extern int signal_events;
|
2000-04-17 01:55:44 -07:00
|
|
|
extern void invoke_pending_caml_signals(ClientData clientdata);
|
1999-11-30 06:59:39 -08:00
|
|
|
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"
|
|
|
|
|