diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-03-28 08:47:47 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2000-03-28 08:47:47 +0000 |
commit | db2e8dec76e17bd0987dd0a12ad7509b6e63d97c (patch) | |
tree | 65f6ec5acc0c6d9020f1fb5b0dcb32bd4fe8bca3 /otherlibs/labltk/compiler/printer.ml | |
parent | e3f1ab289da91f2d382afc824ade6c6e3b5eb764 (diff) |
adapte aux labels legers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3005 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/compiler/printer.ml')
-rw-r--r-- | otherlibs/labltk/compiler/printer.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/compiler/printer.ml b/otherlibs/labltk/compiler/printer.ml index 5a74357c3..d4bb5db72 100644 --- a/otherlibs/labltk/compiler/printer.ml +++ b/otherlibs/labltk/compiler/printer.ml @@ -23,7 +23,7 @@ let escape_string s = | _ -> () done; if !more = 0 then s else - let res = String.create len:(String.length s + !more) in + let res = String.create (String.length s + !more) in let j = ref 0 in for i = 0 to String.length s - 1 do let c = s.[i] in @@ -33,7 +33,7 @@ let escape_string s = done; res;; -let escape_char c = if c = '\'' then "\\'" else String.make len:1 c;; +let escape_char c = if c = '\'' then "\\'" else String.make 1 c;; let print_quoted_string s = printf "\"%s\"" (escape_string s);; let print_quoted_char c = printf "'%s'" (escape_char c);; |