summaryrefslogtreecommitdiffstats
path: root/byterun/extern.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2002-06-07 09:49:45 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2002-06-07 09:49:45 +0000
commita82c3665042b80a0febcbffdf0577cd37de349ff (patch)
tree25ddb7621d275881c1cfa38e6ce0a2b1462270b8 /byterun/extern.c
parent143761a5142bf30a3321ec7b66bf2f4b2620ac30 (diff)
Portage Mingw et revision du portage Win32/MSVC
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/extern.c')
-rw-r--r--byterun/extern.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/byterun/extern.c b/byterun/extern.c
index 0d6c33a08..9298c8a40 100644
--- a/byterun/extern.c
+++ b/byterun/extern.c
@@ -334,6 +334,10 @@ static void extern_rec(value v)
case Custom_tag: {
unsigned long sz_32, sz_64;
char * ident = Custom_ops_val(v)->identifier;
+ void (*serialize)(value v, unsigned long * wsize_32,
+ unsigned long * wsize_64)
+ = Custom_ops_val(v)->serialize;
+ if (serialize == NULL) failwith("output_value: abstract value");
Write(CODE_CUSTOM);
writeblock(ident, strlen(ident) + 1);
Custom_ops_val(v)->serialize(v, &sz_32, &sz_64);