Gabriel Scherer
e3d8281790
Ensure that {Set,Map}.{filter,partition} call their functional argument
...
in the user-expected left-to-right evaluation order.
This is a cosmetics change but users usually expect the
mapping/filtering functions to be called in increasing key order. As
the order for filter and partition changed recently anyway (commit
r12026), it makes sense to "fix" it now.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12509 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-30 11:28:28 +00:00
Alain Frisch
e489d6e3f4
Eliminate useless rec.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12507 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 12:52:44 +00:00
Alain Frisch
1cc8f999d8
Document that a dummy declaration is here to avoid a warning.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 12:37:01 +00:00
Alain Frisch
dd6d8257c0
Enabled 'unused rec flag' warning.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12503 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 12:33:51 +00:00
Alain Frisch
4dcc69b52c
Detect (and fix some) useless recursive flags.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12501 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 12:31:28 +00:00
Alain Frisch
a0a14c08fa
Enable and fix more warnings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 11:47:28 +00:00
Alain Frisch
05c973e6ed
Compile with warning 33, and remove unused opens.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 11:10:03 +00:00
Damien Doligez
8a216cd3bb
fix two bugs in commit 12453
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12476 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-24 15:12:37 +00:00
Fabrice Le Fessant
621dd2dd5f
Fix PR#5555
...
Add Hashtbl.reset to resize the bucket table to its initial size.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12451 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-15 08:36:25 +00:00
Damien Doligez
b8136a7ca8
documentation: I/O functions can raise Sys_error
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12417 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-02 14:40:23 +00:00
Pierre Weis
30c8f97c21
Documentation for set/get_formatter_out_functions.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12408 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-27 12:13:29 +00:00
Pierre Weis
2b94ebecf8
Additional documentation for format strings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12407 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-27 09:56:05 +00:00
Xavier Leroy
b2166e33f5
- Hashtbl:
...
. Added optional "random" parameter to Hashtbl.create to randomize
collision patterns and improve security (PR#5572, CVE-2012-0839)
. Added "randomize" function and "R" parameter to OCAMLRUNPARAM
to turn randomization on by default (PR#5572, CVE-2012-0839)
- Filename: on-demand (lazy) initialization of the PRNG used by "temp_file".
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12384 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-19 13:17:40 +00:00
Damien Doligez
1b782a0122
PR#5585: typo explicitely -> explicitly
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12353 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-13 12:44:29 +00:00
Pierre Weis
1d690696e9
Introducing ikfprintf.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12343 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-11 18:01:02 +00:00
Pierre Weis
b81519668f
Doc: better phrasing for %,. Introducing ikfprintf.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12342 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-11 18:00:32 +00:00
Alain Frisch
2845f7b7ea
Typo.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12338 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-11 03:50:39 +00:00
Damien Doligez
8617313666
PR#5575: Random states are not marshallable across architectures
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12335 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-10 15:33:21 +00:00
Alain Frisch
77b7ef9714
#5397 : Filename.temp_dir_name should be mutable.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12274 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-26 17:17:35 +00:00
Xavier Leroy
90fde3e40e
Updated documentation of Random.self_init and Random.float.
...
Faster implementation of Random.float: to get a 53-bit random mantissa, combining two calls to Random.bits is enough, three was overkill.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12262 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-23 09:58:22 +00:00
Xavier Leroy
44b6164bb0
Improve self-initialization of the Random module, using /dev/urandom
...
when available. The changes in byterun/win32.c are untested.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12244 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-14 16:12:09 +00:00
Damien Doligez
f95e7f4a59
uniformization of the warnings at the head of the hidden sections of the .mli
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-14 16:03:15 +00:00
Damien Doligez
2d5764e00d
PR#4292, point 8: bad placement of section header
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12231 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-13 16:11:07 +00:00
Damien Doligez
5d56f0e299
cut overlong line
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12213 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 22:36:21 +00:00
Damien Doligez
0ed38a9fb1
bumped version to 4.00.0 (per Xavier's decision)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 22:27:57 +00:00
Damien Doligez
c5ef010a5a
typo in URL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 21:45:26 +00:00
Damien Doligez
6c24f4f90b
merge version 3.12 from 3.12.1 to r12205
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 19:52:03 +00:00
Damien Doligez
ab2f6297c7
aftermath of PR#5497
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12183 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-23 19:15:09 +00:00
Damien Doligez
f824b6a46c
change duplicate tag in docs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12176 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-21 12:41:33 +00:00
Fabrice Le Fessant
b2cbd03b35
Fix PR#5309: Queue.add is not thread/signal safe
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12163 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 09:36:13 +00:00
Damien Doligez
e7f5b858c2
More renaming to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +00:00
Damien Doligez
066ef003d4
typo in doc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12147 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 14:45:41 +00:00
Damien Doligez
f283133875
PR#5159: better documentation of type "position"
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 09:08:02 +00:00
Damien Doligez
f065ad5698
better documentation for format6
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12136 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 13:39:48 +00:00
Damien Doligez
a776e35b9e
reformat over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 13:12:53 +00:00
Xavier Leroy
a775cb815b
Related to #5493 again: more explanations about string mutation, string sharing, and why mutation is best avoided.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12127 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 09:51:49 +00:00
Damien Doligez
76538749ee
hack to make ocamldoc happy; should be fixed properly
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12114 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:01:06 +00:00
Jonathan Protzenko
d9d4bd2ad0
Related to #5493 : document in string.mli the fact that string constants are shared.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12102 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-30 15:33:42 +00:00
Damien Doligez
7092fb36d6
PR#1835: add function Digest.from_hex
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-26 22:56:48 +00:00
Fabrice Le Fessant
1d8acd3f92
Fix PR#5493 by documentating
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12079 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-26 10:24:35 +00:00
Damien Doligez
6d33d232ff
PR#1284: documentation: remove restriction on mixed streams
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12077 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-25 14:50:03 +00:00
Xavier Leroy
ee95e9fd91
More efficient implementation of {Set,Map}.{filter,partition}
...
Optimize Set.join just like Map.join was recently.
Added some tests for Set and Map.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12026 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-16 09:03:16 +00:00
Damien Doligez
b0300990da
add missing @since; cut long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12020 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-12 15:53:55 +00:00
Damien Doligez
10ed81e2c8
extra def. of ~+; cut long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12019 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-12 15:46:51 +00:00
Damien Doligez
b4ccb873a6
PR#5380: copy fix from 3.12 branch
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12014 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-11 15:22:51 +00:00
Damien Doligez
cbcf38ab47
cut long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-11 13:24:58 +00:00
Damien Doligez
7c7cad0ee2
documentation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12011 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-10 20:08:38 +00:00
Fabrice Le Fessant
d02419cef7
Fix bug #3888 (String.map and Scanf.unescaped)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12004 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-08 15:38:38 +00:00
Damien Doligez
2c04ae521e
PR#4549: make Filename.dirname/basename POSIX compliant
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11999 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-06 14:24:58 +00:00
Damien Doligez
1a4f7bd6ab
doc: stats since 3.13.0; clean up whitespace
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11995 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-06 13:42:04 +00:00