summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/cltkVar.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2000-04-17 08:55:44 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2000-04-17 08:55:44 +0000
commitaec1de6aee0fa94368912d9cac6f95bad234ef8e (patch)
treefaa34e0c52dc3919f98a80421115d73e7c656eeb /otherlibs/labltk/support/cltkVar.c
parent790770e1cace566ab377e4371ce8d813dd37879c (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/cltkVar.c')
-rw-r--r--otherlibs/labltk/support/cltkVar.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/otherlibs/labltk/support/cltkVar.c b/otherlibs/labltk/support/cltkVar.c
index cf981ce6f..efca7621a 100644
--- a/otherlibs/labltk/support/cltkVar.c
+++ b/otherlibs/labltk/support/cltkVar.c
@@ -19,12 +19,13 @@
#include <string.h>
#include <tcl.h>
#include <tk.h>
-#include <caml/mlvalues.h>
-#include <caml/memory.h>
+#include <mlvalues.h>
+#include <memory.h>
+#include <alloc.h>
+#include <callback.h>
#include "camltk.h"
-value camltk_getvar(var) /* ML */
- value var;
+value camltk_getvar(value var) /* ML */
{
char *s;
char *stable_var = NULL;
@@ -41,9 +42,7 @@ value camltk_getvar(var) /* ML */
return(copy_string(s));
}
-value camltk_setvar(var,contents) /* ML */
- value var;
- value contents;
+value camltk_setvar(value var, value contents) /* ML */
{
char *s;
char *stable_var = NULL;
@@ -68,12 +67,12 @@ value camltk_setvar(var,contents) /* ML */
typedef char *(Tcl_VarTraceProc) _ANSI_ARGS_((ClientData clientData,
Tcl_Interp *interp, char *part1, char *part2, int flags));
*/
-static char * tracevar(clientdata, interp, name1, name2, flags)
- ClientData clientdata;
- Tcl_Interp *interp; /* Interpreter containing variable. */
- char *name1; /* Name of variable. */
- char *name2; /* Second part of variable name. */
- int flags; /* Information about what happened. */
+static char * tracevar(ClientData clientdata, Tcl_Interp *interp,
+ char *name1, char *name2, int flags)
+ /* Interpreter containing variable. */
+ /* Name of variable. */
+ /* Second part of variable name. */
+ /* Information about what happened. */
{
Tcl_UntraceVar2(interp, name1, name2,
TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
@@ -83,9 +82,7 @@ static char * tracevar(clientdata, interp, name1, name2, flags)
}
/* Sets up a callback upon modification of a variable */
-value camltk_trace_var(var,cbid) /* ML */
- value var;
- value cbid;
+value camltk_trace_var(value var, value cbid) /* ML */
{
char *cvar = NULL;
@@ -106,9 +103,7 @@ value camltk_trace_var(var,cbid) /* ML */
return Val_unit;
}
-value camltk_untrace_var(var,cbid) /* ML */
- value var;
- value cbid;
+value camltk_untrace_var(value var, value cbid) /* ML */
{
char *cvar = NULL;