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/cltkMisc.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/cltkMisc.c')
-rw-r--r-- | otherlibs/labltk/support/cltkMisc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/otherlibs/labltk/support/cltkMisc.c b/otherlibs/labltk/support/cltkMisc.c index 8bd6d323a..2640427a7 100644 --- a/otherlibs/labltk/support/cltkMisc.c +++ b/otherlibs/labltk/support/cltkMisc.c @@ -15,15 +15,15 @@ /* $Id$ */ +#include <string.h> #include <tcl.h> #include <tk.h> -#include <caml/mlvalues.h> -#include <caml/memory.h> +#include <mlvalues.h> +#include <memory.h> #include "camltk.h" /* Parsing results */ -value camltk_splitlist (v) /* ML */ - value v; +value camltk_splitlist (value v) /* ML */ { int argc; char **argv; @@ -46,8 +46,7 @@ value camltk_splitlist (v) /* ML */ } /* Copy a Caml string to the C heap. Should deallocate with stat_free */ -char *string_to_c(s) - value s; +char *string_to_c(value s) { int l = string_length(s); char *res = stat_alloc(l + 1); |