caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Filename.quote - again
@ 2002-04-14 18:03 Vitaly Lugovsky
  2002-04-15  8:12 ` [Caml-list] " Xavier Leroy
  0 siblings, 1 reply; 14+ messages in thread
From: Vitaly Lugovsky @ 2002-04-14 18:03 UTC (permalink / raw)
  To: xavier.leroy; +Cc: caml-list


 Hi!

 I already reported about Filename.quote bug
(or feature?) in current ocaml cvs. I can't
understand the meaning of the following code:

-----------------------
(* $Id: filename.ml,v 1.25 2002/03/12 16:16:56 xleroy Exp $ *)

let generic_quote quotequote s =
  let l = String.length s in
  let b = Buffer.create (l + 20) in
  Buffer.add_char b '\''; (* HERE!!! *)
  for i = 0 to l - 1 do
    if s.[i] = '\''
    then Buffer.add_string b quotequote
    else Buffer.add_char b  s.[i]
  done;
  Buffer.add_char b '\''; (* AND HERE!!!! *)
  Buffer.contents b
---------------------------

 It makes gcc crazy when you passing linking
options with spaces inside (try to compile
camltk418 for example).


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-04-20 11:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-14 18:03 [Caml-list] Filename.quote - again Vitaly Lugovsky
2002-04-15  8:12 ` [Caml-list] " Xavier Leroy
2002-04-15 12:49   ` Vitaly Lugovsky
2002-04-15 13:26     ` Andrej Bauer
2002-04-15 13:47       ` Vitaly Lugovsky
     [not found]       ` <"from Andrej.Bauer"@andrej.com>
2002-04-19  5:58         ` [Caml-list] command arguments sticking together Brock
2002-04-19  9:08           ` Jérôme Marant
2002-04-19 10:01             ` [Caml-list] Prerelease - Announce ocaml-swig Benedikt Grundmann
2002-04-19  9:22           ` [Caml-list] command arguments sticking together Jacques Garrigue
2002-04-19 12:21             ` Florian Hars
2002-04-19 13:01               ` Christopher Quinn
2002-04-19 13:33                 ` Christopher Quinn
     [not found]                   ` <"from cq"@htec.demon.co.uk>
2002-04-19 19:39                     ` Brock
2002-04-20 11:09                       ` Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).