diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
commit | 3be947947e3249a9b362fc790d377e43c4108a62 (patch) | |
tree | fa0c0fbdd5b3148f926e2f7f15090f7bd7d9a44d /otherlibs/win32unix/unixsupport.c | |
parent | 59cb8750d21154c767d7224cd0f726b5da62d59b (diff) |
nouvelles fonctions alloc/alloc_small
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unixsupport.c')
-rw-r--r-- | otherlibs/win32unix/unixsupport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/unixsupport.c b/otherlibs/win32unix/unixsupport.c index e631ccbdb..2d1cfd5f2 100644 --- a/otherlibs/win32unix/unixsupport.c +++ b/otherlibs/win32unix/unixsupport.c @@ -5,7 +5,7 @@ /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ /* */ /* Copyright 1996 Institut National de Recherche en Informatique et */ -/* Automatique. Distributed only by permission. */ +/* en Automatique. Distributed only by permission. */ /* */ /***********************************************************************/ @@ -25,7 +25,7 @@ value win_alloc_handle(HANDLE h) { - value res = alloc(sizeof(HANDLE) / sizeof(value), Abstract_tag); + value res = alloc_small(sizeof(HANDLE) / sizeof(value), Abstract_tag); Handle_val(res) = h; return res; } @@ -100,7 +100,7 @@ void unix_error(int errcode, char *cmdname, value cmdarg) errconstr = cst_to_constr(errcode, error_table, sizeof(error_table)/sizeof(int), -1); if (errconstr == Val_int(-1)) { - err = alloc(1, 0); + err = alloc_small(1, 0); Field(err, 0) = Val_int(errcode); } else { err = errconstr; @@ -110,7 +110,7 @@ void unix_error(int errcode, char *cmdname, value cmdarg) if (unix_error_exn == NULL) invalid_argument("Exception Unix.Unix_error not initialized, please link unix.cma"); } - res = alloc(4, 0); + res = alloc_small(4, 0); Field(res, 0) = *unix_error_exn; Field(res, 1) = err; Field(res, 2) = name; |