summaryrefslogtreecommitdiff
path: root/stdlib/pervasives.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-07-02 18:16:15 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-07-02 18:16:15 +0000
commitb149e67a887edbe66c5159dcc09485862ff3cf55 (patch)
tree5be8990215f73919b29c461d86726e75001e7f07 /stdlib/pervasives.ml
parentf9ca4fbbeb38d1c1979300f68a9e37b409eb4c7e (diff)
downloadocaml-b149e67a887edbe66c5159dcc09485862ff3cf55.tar.gz
Nouveau module Marshal dans stdlib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1633 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/pervasives.ml')
-rw-r--r--stdlib/pervasives.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/stdlib/pervasives.ml b/stdlib/pervasives.ml
index 1904da847b..cf7cd1d150 100644
--- a/stdlib/pervasives.ml
+++ b/stdlib/pervasives.ml
@@ -195,7 +195,10 @@ let output oc s ofs len =
external output_byte : out_channel -> int -> unit = "output_char"
external output_binary_int : out_channel -> int -> unit = "output_int"
-external output_value : out_channel -> 'a -> unit = "output_value"
+
+external marshal_to_channel : out_channel -> 'a -> unit list -> unit
+ = "output_value"
+let output_value chan v = marshal_to_channel chan v []
external seek_out : out_channel -> int -> unit = "seek_out"
external pos_out : out_channel -> int = "pos_out"