From 3be947947e3249a9b362fc790d377e43c4108a62 Mon Sep 17 00:00:00 2001 From: Damien Doligez Date: Mon, 26 Oct 1998 19:19:32 +0000 Subject: nouvelles fonctions alloc/alloc_small git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/unixsupport.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'otherlibs/win32unix/unixsupport.c') 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; -- cgit v1.2.3-70-g09d2