(Patch by Andreas Garnæs)
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
val construct_string : Buffer.t -> string -> unit
val construct_bitstring : Buffer.t -> bitstring -> unit
+
+(* Alias of functions shadowed by Core. *)
+val char_code : char -> int
+val int32_of_int : int -> int32
<:expr<
let o =
($lid:original_off$ lsr 3) + $`int:field_byte_offset$ in
- Char.code (String.unsafe_get $lid:data$ o)
+ Bitstring.char_code (String.unsafe_get $lid:data$ o)
>> in
<:expr<
| 32 ->
<:expr<
(* must allocate a new zero each time *)
- let zero = Int32.of_int 0 in
+ let zero = Bitstring.int32_of_int 0 in
Bitstring.$lid:name$ $lid:data$ o zero
>>
| 64 ->