git.annexia.org
/
ocaml-bitstring.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow bitstring to be compiled with Core.
[ocaml-bitstring.git]
/
bitstring.ml
diff --git
a/bitstring.ml
b/bitstring.ml
index
1c51a73
..
c860c08
100644
(file)
--- a/
bitstring.ml
+++ b/
bitstring.ml
@@
-1212,3
+1212,9
@@
let hexdump_bitstring chan (data, off, len) =
fprintf chan " |%s|\n%!" linechars
) else
fprintf chan "\n%!"
+
+(*----------------------------------------------------------------------*)
+(* Alias of functions shadowed by Core. *)
+
+let char_code = Char.code
+let int32_of_int = Int32.of_int