summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/support/cltkDMain.c
diff options
context:
space:
mode:
authorWojciech Meyer <wojciech.meyer@gmail.com>2013-02-25 03:01:31 +0000
committerWojciech Meyer <wojciech.meyer@gmail.com>2013-02-25 03:01:31 +0000
commitdc9834c4a430a57ad1f76992ec9ac85a69b73597 (patch)
treebeed4a44719ceb3ce05444ee08669ada4e40c0a4 /otherlibs/labltk/support/cltkDMain.c
parentfb17e50db586b6e92dc720aec3679dfd34188b96 (diff)
misc: replace stat_(alloc|free|resize) occurences with caml_stat_(...).
byterun/compatibility.h defines: #define stat_alloc caml_stat_alloc #define stat_free caml_stat_free #define stat_resize caml_stat_resize Having the "caml_" prefix seems cleaner to me, it also avoids some issues for cross-compilation but I don't remember well which ones. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13314 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/support/cltkDMain.c')
-rw-r--r--otherlibs/labltk/support/cltkDMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/support/cltkDMain.c b/otherlibs/labltk/support/cltkDMain.c
index 04af209de..58374d8a3 100644
--- a/otherlibs/labltk/support/cltkDMain.c
+++ b/otherlibs/labltk/support/cltkDMain.c
@@ -162,7 +162,7 @@ int CamlRunCmd(dummy, interp, argc, argv)
+ trail.symbol_size + trail.debug_size), 2);
code_size = trail.code_size;
- start_code = (code_t) stat_alloc(code_size);
+ start_code = (code_t) caml_stat_alloc(code_size);
if (read(fd, (char *) start_code, code_size) != code_size)
fatal_error("Fatal error: truncated bytecode file.\n");
@@ -215,7 +215,7 @@ int Caml_Init(interp)
{
char *home = getenv("HOME");
if (home != NULL) {
- char *f = stat_alloc(strlen(home)+strlen(RCNAME)+2);
+ char *f = caml_stat_alloc(strlen(home)+strlen(RCNAME)+2);
f[0]='\0';
strcat(f, home);
strcat(f, "/");