Commit Graph

18 Commits (fb36548704ce096310707204c77218fe4d69f069)

Author SHA1 Message Date
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez 997a678d5e clean up TABs and whitespace
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-30 18:04:46 +00:00
Gabriel Scherer bc139ae14e PR#5644: Stream.count broken when used with Sapp or Slazy nodes
There is a bug in the way concatenating operations work when combined
with `Sgen`-defined stream (Stream.from, Stream.of_string): the
concatenation functions reset the `count` field to 0, which disturbs
the Sgen producer.

While the fix in the Scons case is easy (instead of 0, set
the count to `original_count - 1`), fixing the Sapp case is more
delicate (we can't predict the size of the prepended stream). Our
technique is to change the stored left-hand-side to not the stream
data only, but the whole stream, count included.
Once we detect the prepended stream was completely consumed, we can
then restore the count to its previous value, so that Sgen's function
can be provided correct count information. This required a change in
the internal `get_data` implementation.

Slazy-constructed streams have the exact same issue: we don't know
their count before forcin them. Again, `get_data` is changed to
dynamically update the count at forcing time.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12682 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 09:58:38 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Michel Mauny d0d6af3c16 Remove restrictions to stream concatenation, and use Lazy.t for the argument
of the Slazy data constructor.
Affected files: stdlib/{stream.ml,.depend,Makefile}


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8893 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-06-18 15:35:02 +00:00
Xavier Leroy 7501784c80 MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Xavier Leroy cc0f32b054 Changement de la licence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy 5038f3cdb6 Ajout de Pervasives.ignore. List.remove -> List.remove_ass*
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2304 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-24 15:21:50 +00:00
Daniel de Rauglaudre f8c39b7d67 Message d'erreur manquant (était indiqué par erreur comme "erreur interne").
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2139 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-11-02 23:27:22 +00:00
Damien Doligez c194d39545 Paresseux.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1716 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-10-14 13:17:48 +00:00
Daniel de Rauglaudre 45ffca1009 Nouvelle version des Streams
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1612 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-06-16 15:33:44 +00:00
Xavier Leroy dfb5710a14 Utilisation de Sys.os_type. Nettoyages exceptions (failwith -> invalid_arg)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1170 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-11-07 11:00:19 +00:00
Xavier Leroy 2301d778e7 Renommage en Objective Caml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Daniel de Rauglaudre e5884f1b62 Les fonctions de streams rapides, "from", "of_channel", etc. ne peuvent plus
se me'langer avec les streams normaux.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@518 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-12-07 19:44:19 +00:00
Daniel de Rauglaudre d80ae19644 Mutables in buffio (do not compromise streams polymorphism).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@447 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-15 13:50:40 +00:00
Daniel de Rauglaudre f67cf2d0cd Modify interface & comments.
Implement with Obj.set_field instead of mutable to accept polymorphic empty
streams (worked before because of a bug in type checking).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@439 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-13 13:29:51 +00:00
Daniel de Rauglaudre b6e330b089 Add "iter". Change comments.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@437 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-10 15:15:12 +00:00
Daniel de Rauglaudre c23136aa3e Library module for streams and parsers. Very first version.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@423 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-09 11:04:31 +00:00