From 88b98f00facde51bff705a3fb6c32a73937428cb Mon Sep 17 00:00:00 2001 From: xleroy Date: Sat, 25 Jul 2009 16:22:17 +0000 Subject: Use Extraction Blacklist git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1114 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- lib/Camlcoq.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Camlcoq.ml b/lib/Camlcoq.ml index 3660a10..c7abdcc 100644 --- a/lib/Camlcoq.ml +++ b/lib/Camlcoq.ml @@ -90,15 +90,15 @@ let char_of_ascii (Ascii.Ascii(a0, a1, a2, a3, a4, a5, a6, a7)) = let coqstring_length s = let rec len accu = function - | CoqString.EmptyString -> accu - | CoqString.CoqString(_, s) -> len (accu + 1) s + | String0.EmptyString -> accu + | String0.String(_, s) -> len (accu + 1) s in len 0 s let camlstring_of_coqstring s = let r = String.create (coqstring_length s) in let rec fill pos = function - | CoqString.EmptyString -> r - | CoqString.CoqString(c, s) -> r.[pos] <- char_of_ascii c; fill (pos + 1) s + | String0.EmptyString -> r + | String0.String(c, s) -> r.[pos] <- char_of_ascii c; fill (pos + 1) s in fill 0 s (* Timing facility *) -- cgit v1.2.3