diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2000-04-17 08:55:44 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2000-04-17 08:55:44 +0000 |
commit | aec1de6aee0fa94368912d9cac6f95bad234ef8e (patch) | |
tree | faa34e0c52dc3919f98a80421115d73e7c656eeb /otherlibs/labltk/support/cltkCaml.c | |
parent | 790770e1cace566ab377e4371ce8d813dd37879c (diff) |
Utiliser les includes de ../../../byterun, pas ceux de /usr/local/lib/ocaml/caml.
Ajout d'includes manquants. Ajout de prototypes sur toutes les fonctions.
Suppression de warnings du compilo C.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3098 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/support/cltkCaml.c')
-rw-r--r-- | otherlibs/labltk/support/cltkCaml.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/otherlibs/labltk/support/cltkCaml.c b/otherlibs/labltk/support/cltkCaml.c index ad84ab156..003b9a541 100644 --- a/otherlibs/labltk/support/cltkCaml.c +++ b/otherlibs/labltk/support/cltkCaml.c @@ -17,19 +17,17 @@ #include <tcl.h> #include <tk.h> -#include <caml/mlvalues.h> -#include <caml/callback.h> +#include <mlvalues.h> +#include <alloc.h> +#include <callback.h> +#include <fail.h> #include "camltk.h" value * tkerror_exn = NULL; value * handler_code = NULL; /* The Tcl command for evaluating callback in Caml */ -int CamlCBCmd(clientdata, interp, argc, argv) - ClientData clientdata; - Tcl_Interp *interp; - int argc; - char *argv[]; +int CamlCBCmd(ClientData clientdata, Tcl_Interp *interp, int argc, char **argv) { CheckInit(); @@ -53,8 +51,7 @@ int CamlCBCmd(clientdata, interp, argc, argv) * using the following. TCL_VOLATILE ensures that Tcl will make * a copy of the string */ -value camltk_return (v) /* ML */ - value v; +value camltk_return (value v) /* ML */ { CheckInit(); @@ -63,8 +60,7 @@ value camltk_return (v) /* ML */ } /* Note: raise_with_string WILL copy the error message */ -void tk_error(errmsg) - char *errmsg; +void tk_error(char *errmsg) { raise_with_string(*tkerror_exn, errmsg); } @@ -75,8 +71,7 @@ void tk_error(errmsg) takes place during loading of the protocol module */ -value camltk_init(v) /* ML */ - value v; +value camltk_init(value v) /* ML */ { /* Initialize the Caml pointers */ if (tkerror_exn == NULL) |