Meilleures declarations de string_length et blit_string
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2106 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
1bc1476a68
commit
497f50b8ba
|
@ -111,10 +111,10 @@ external truncate : float -> int = "%intoffloat"
|
|||
|
||||
(* String operations -- more in module String *)
|
||||
|
||||
external string_length : string -> int = "ml_string_length"
|
||||
external string_length : string -> int = "%string_length"
|
||||
external string_create: int -> string = "create_string"
|
||||
external string_blit : string -> int -> string -> int -> int -> unit
|
||||
= "blit_string"
|
||||
= "blit_string" "noalloc"
|
||||
|
||||
let (^) s1 s2 =
|
||||
let l1 = string_length s1 and l2 = string_length s2 in
|
||||
|
|
|
@ -107,10 +107,10 @@ external truncate : float -> int = "%intoffloat"
|
|||
|
||||
(* String operations -- more in module String *)
|
||||
|
||||
external string_length : string -> int = "ml_string_length"
|
||||
external string_length : string -> int = "%string_length"
|
||||
external string_create: int -> string = "create_string"
|
||||
external string_blit : string -> int -> string -> int -> int -> unit
|
||||
= "blit_string"
|
||||
= "blit_string" "noalloc"
|
||||
|
||||
let (^) s1 s2 =
|
||||
let l1 = string_length s1 and l2 = string_length s2 in
|
||||
|
|
Loading…
Reference in New Issue