summaryrefslogtreecommitdiff
path: root/byterun/ints.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2011-07-23 10:07:25 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2011-07-23 10:07:25 +0000
commitf90ddc8c22079e5f54c9c21f633c0d829f3218a2 (patch)
tree9b7e1dc7272fa1b553d5ea980973d9b22a9db7be /byterun/ints.c
parent8f5e85913493f813154079639c5c42d44fb11525 (diff)
downloadocaml-f90ddc8c22079e5f54c9c21f633c0d829f3218a2.tar.gz
PR#5290: added hash functions for channels, nats, mutexes, conditions.
Also: added "custom_compare_ext_default" to all struct custom_operations: default initialization to 0 did what we want, but explicit initialization better documents the C sources. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11143 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/ints.c')
-rw-r--r--byterun/ints.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/byterun/ints.c b/byterun/ints.c
index b15de09ec6..a9f224c2b6 100644
--- a/byterun/ints.c
+++ b/byterun/ints.c
@@ -227,7 +227,8 @@ CAMLexport struct custom_operations caml_int32_ops = {
int32_cmp,
int32_hash,
int32_serialize,
- int32_deserialize
+ int32_deserialize,
+ custom_compare_ext_default
};
CAMLexport value caml_copy_int32(int32 i)
@@ -414,7 +415,8 @@ CAMLexport struct custom_operations caml_int64_ops = {
int64_cmp,
int64_hash,
int64_serialize,
- int64_deserialize
+ int64_deserialize,
+ custom_compare_ext_default
};
CAMLexport value caml_copy_int64(int64 i)
@@ -665,7 +667,8 @@ CAMLexport struct custom_operations caml_nativeint_ops = {
nativeint_cmp,
nativeint_hash,
nativeint_serialize,
- nativeint_deserialize
+ nativeint_deserialize,
+ custom_compare_ext_default
};
CAMLexport value caml_copy_nativeint(intnat i)