Hongbo Zhang
e97c59d045
fix scanf.ml build
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13728 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-02 14:42:33 +00:00
Pierre Weis
4b3e3c7647
A thoroughly revised documentation for format strings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13726 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 12:05:32 +00:00
Pierre Weis
e833f3c9d5
Better error messages for binary/octal/hexa integer scanning.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13725 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 09:01:59 +00:00
Pierre Weis
626c696aee
Wrong quoting chase.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13717 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-29 18:03:55 +00:00
Pierre Weis
f5e0923469
Better documentation of meta format conversion.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13714 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-29 16:44:12 +00:00
Damien Doligez
db9ea0df59
PR#6024: Format syntax for printing @ is incompatible with 3.12.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13713 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-29 15:56:25 +00:00
Gabriel Scherer
c089c9a6dd
fix the buggy parser example in the Genlex documentation (issue reported by Armael Geneau)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13613 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-28 14:28:55 +00:00
Pierre Weis
faf9cb478d
Revert sprintf type. Add a new function to support %a conversions in sprintf functionality.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13609 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-25 09:14:09 +00:00
Pierre Weis
3e110da03d
Details.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13608 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-25 09:11:44 +00:00
Pierre Weis
a79b51b675
Complete rewriting of Format.mk_printf. Convergence between Printf and Format codes.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13606 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-24 14:56:25 +00:00
Pierre Weis
2ad00ac0ad
Exporting count_printing_arguments_of_format and add_int_index.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13605 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-24 14:54:58 +00:00
Pierre Weis
1d1d751326
PR#5973 (old @ escape was still implemented in Format) + bootstrap.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13601 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-23 21:44:30 +00:00
Wojciech Meyer
16e6f2df27
PR#4978: Better wording.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13568 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 15:18:17 +00:00
Alain Frisch
261eaed8b2
Typo.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13555 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 12:56:28 +00:00
Xavier Leroy
e29c9d2956
PR#5986: added flag Marshal.Compat_32 and ocamlc option -compat-32.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13554 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 11:58:59 +00:00
Alain Frisch
b4c4c5e77b
#5977 : ensure that bootstrapping on 64-bit does not produce 64-bit constants that cannot be read on 32-bit platforms.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13488 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-09 12:17:05 +00:00
Wojciech Meyer
93fc228b45
PR#4978: add a warning to the Marshal module documentation about using marshaled exception.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13486 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-04 22:07:51 +00:00
Pierre Weis
5392f6f13e
@@ should be written \@\@ for Ocamldoc...
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13416 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 19:25:24 +00:00
Pierre Weis
635604d822
Typo: get_formatter_out_functions was redefined. Doc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13414 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 10:14:31 +00:00
Pierre Weis
a2c500f8bc
Details.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13413 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 08:06:06 +00:00
Pierre Weis
559521f125
Documentation.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13412 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 08:02:15 +00:00
Pierre Weis
54b4e5e79e
sprintf now compatible with proper %a application with formatters. Deprecating pp_ versions of get/set_all_formatter_output_functions. Documentation review.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13411 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 07:58:59 +00:00
Gabriel Scherer
75b8c0184f
PR#5933 type-specialize 'let compare = compare' on ints and strings
...
According to the reporter 'sliquister', type-specialized comparison
can nearly halve compilation time in some cases. This patch applies
type-specialization throughout the OCaml distribution sources, so not
all changes will have performance utility, but in this case I think
it's best to be consistent, as I see no downside to the change.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13410 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 07:22:12 +00:00
Gabriel Scherer
725da3dcc9
user-exposed abstract type for raw backtraces in Printexc.ml (original patch from Jacques-Henri Jourdan)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13394 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-11 19:04:12 +00:00
Damien Doligez
c63f9e0957
fix a few problems with whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Damien Doligez
90dd916144
typo
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13318 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-26 12:46:09 +00:00
Pierre Weis
4a6a0c199d
Normalization.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13292 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-12 08:14:49 +00:00
Alain Frisch
ba00d09386
Revert bad commit.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13268 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 08:41:02 +00:00
Alain Frisch
20a4b99758
#5902 : adapt standard ppx driver to support extra arguments.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13267 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 08:37:01 +00:00
Xavier Clerc
21f51b8b03
PR#5880: 'Genlex.make_lexer' documention mentions the wrong exception
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-16 12:29:25 +00:00
Damien Doligez
98f86ab6ae
fixed wrong @since version numbers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13215 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 13:23:49 +00:00
Alain Frisch
fe4528d13a
Doc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13213 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:32:49 +00:00
Alain Frisch
f369e064d0
Add ocamldoc 'since' tag to Set.find.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:02:33 +00:00
Alain Frisch
706f815450
#5864 : add a find operation to Set.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:01:02 +00:00
Damien Doligez
b61b138c99
PR#5804: bad formatting of documentation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13200 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-03 16:01:13 +00:00
Fabrice Le Fessant
89bdc10350
PR#5774: Add bswap primitives for amd64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13106 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-29 09:55:00 +00:00
Damien Doligez
c92ab2768b
remove non-ascii chars
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13030 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 21:01:38 +00:00
Damien Doligez
ce01d56eb5
remove non-ascii chars
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13029 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 21:01:34 +00:00
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
bb5c5b7e88
merge changes from 4.00.0 to 4.00.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12990 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-05 15:21:35 +00:00
Xavier Leroy
7cb5ba33fc
PR#5742: missing bound checks in Array.sub (picking r12891 from 4.00 branch)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12892 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-08-28 15:08:30 +00:00
Damien Doligez
f4ec71e64b
PR#5712: doc of Format.printf and missing functions in StdLabels
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12824 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-08-06 11:55:32 +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
Damien Doligez
0c3a7de507
merge changes from 4.00 branching to 4.00.0 (part 1)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-26 19:21:54 +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
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
Fabrice Le Fessant
11093a64b3
Add String.map in string.mli (partial fix of bug #3888 )
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11994 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-06 08:05:00 +00:00
Wojciech Meyer
b33b2cc8b9
Fix PR#5454: Update docs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11973 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-29 03:13:41 +00:00
Wojciech Meyer
c1eebeea60
Fix PR#5454: Add compare to Digest and allow to pass directly Digest to Set.Make and Map.Make
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11971 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-29 03:10:49 +00:00
Jonathan Protzenko
bc8d8e957e
Fix #5171 : Map: avoid unnecessary uses of the user-provided comparison function in [join].
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11955 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-23 20:54:57 +00:00
Jonathan Protzenko
632cea70f8
Followup fix to #5437 : make sure [align] doesn't add padding to undocumented options, so that these don't show up when passed to [parse] or [usage].
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11946 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-23 13:34:13 +00:00
Jonathan Protzenko
b47d5b20f2
Fix #5437 : when registering an option with Arg, if the option has an empty doc string, do not include it when printing the usage.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11939 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-22 14:04:18 +00:00
Alain Frisch
ec02bc1f8d
Clarify doc about Oo.id ( #5436 ).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11933 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-22 09:30:51 +00:00
Jacques Garrigue
16d937aa40
fix PR#5436
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11930 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-22 07:30:18 +00:00
Damien Doligez
cca0035fbb
continuing to change the name to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11922 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-21 15:37:54 +00:00
Xavier Leroy
e43dd3a2a1
OCaml, not Objective Caml, I get it.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11914 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-21 10:41:59 +00:00
Xavier Leroy
c8f32a4a50
Module Array: faster implementations of "blit", "copy", "sub",
...
"append" and "concat" (PR#2395, PR#2787, PR#4591)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11913 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-21 10:36:35 +00:00
Pierre Weis
99451ca83e
Implementing the precision feature for Scanf.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11255 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-28 21:35:32 +00:00
Pierre Weis
e2c3a9996d
Typo in doc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11250 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-28 21:16:36 +00:00
Pierre Weis
2a2fcade52
Bug #4380 .
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-25 13:13:54 +00:00
Pierre Weis
dacd082532
Module Buffer, printf, Format and Scanf are compiled with -w A.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11240 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-25 12:09:01 +00:00
Pierre Weis
6f0acffe94
Typo
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11239 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-25 12:07:13 +00:00
Xavier Leroy
bd3e65ea7a
PR#5349: "replace" uses new key instead of reusing old key.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11205 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-18 09:40:21 +00:00
Xavier Leroy
8e33ab4f2d
Improve backward compatibility for Hashtbl functorial interface:
...
Hashtbl.Make returns a "create" function without an optional seed parameter.
(Which would be ignored anyway.)
Hashtbl.MakeSeeded returns a "create" function with an optional seed parameter.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11204 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-18 09:35:27 +00:00
Xavier Clerc
cb7818e6de
PR#5344: some predifined exceptions need special printing
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11187 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-08 08:34:43 +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
Damien Doligez
90664f4ea1
uniform .ignore system
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11133 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-20 15:37:36 +00:00
Damien Doligez
c91db736b1
merge changes from 3.12.0 to 3.12.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-20 09:17:07 +00:00
Damien Doligez
9058be97f9
typo
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11112 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-07 13:12:54 +00:00
Pierre Weis
c5289420e9
Module Printf, Format, and Scanf are printed in -w A warning mode. This found an old and subtle bug in Format; for other modules, the code is clearer and cleaner!
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11100 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-20 21:46:20 +00:00
Xavier Clerc
d9b3046c49
Some precisions about the use of a backtrace from a exception printer.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11088 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-14 11:08:07 +00:00
Xavier Leroy
174ff0b018
PR#3806, 4752, 5246: added "hypot" and "copysign" to Pervasives.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11065 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-04 08:55:55 +00:00
Xavier Leroy
e6d76ed5b1
Hashtbl again: simplified interface for seeding; seed is now an optional parameter of the "create" function, and it is the user's responsibility to generate a random seed if desired.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11063 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-04 08:08:40 +00:00
Xavier Leroy
aea227fdeb
Better hashing!
...
- New generic hash function based on Murmur 3, with better statistical
properties (PR#5225), and better speed
- Make sure equal floats hash equally (PR#5222)
- Breadth-first traversal instead of depth-first
- Added seeded hash functions and seeded functorial interface to Hashtbl.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11056 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-05-29 09:52:27 +00:00
Damien Doligez
9007782d63
line break in doc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11042 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-05-13 13:30:30 +00:00
Damien Doligez
9d0006c665
camlheaderd is generated
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11014 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-04-26 12:16:24 +00:00
Pierre Weis
919873347f
Ignoring compiled files. Bootstrap.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11001 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-03-18 00:25:29 +00:00
Pierre Weis
2dda988df1
Ignoring compiled files.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10987 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-03-17 23:31:03 +00:00
Damien Doligez
a53ce2df70
add option -runtime-variant
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10982 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-03-17 16:18:05 +00:00
Pierre Weis
a11d74583a
Including correction from 3.12.1.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10974 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-03-06 16:20:28 +00:00
Pierre Weis
0d2a1430d0
Defining type file_name.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10963 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-02-23 18:39:15 +00:00
Pierre Weis
480c99722b
@ must be escaped in some strange circumstances!
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10961 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-02-23 16:36:36 +00:00
Pierre Weis
3922204442
Documentation (Bug #5230 ).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10959 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-02-22 00:32:46 +00:00
Alain Frisch
b2520d12ea
Document the fact that Hashtbl.length runs in constant time.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10931 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-01-18 12:54:57 +00:00
Alain Frisch
f537ba28b0
Adding String.iteri.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10762 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-11-05 08:15:36 +00:00
Alain Frisch
a5628ad725
Adding List.iteri/mapi.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10761 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-11-05 08:10:59 +00:00
Damien Doligez
575555eecd
merge changes from branching of 3.12 to release/3.12.0
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10643 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-08-02 14:37:22 +00:00
Pierre Weis
49f84679d2
Spacing review: symboliques operators are surrounded with spaces, ":" are also surrounded by spaces not to confuse with labels (as exemplify by emacs coloration!).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10551 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-06-09 11:00:56 +00:00
Pierre Weis
e873deb417
Adding @since indications + spacing revision in documentation comments.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10546 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-06-09 10:19:06 +00:00
Pierre Weis
f5c2201cc0
PR#5062
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-06-04 16:44:08 +00:00
Damien Doligez
49e3d68bb5
cut long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10483 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-31 12:48:13 +00:00
Damien Doligez
b0c511558c
small optimization of Array.concat
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10482 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-31 12:46:27 +00:00
Alain Frisch
3671db5389
Adding @since ocamldoc tags.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10481 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-31 12:28:03 +00:00
Alain Frisch
66092ce6ff
Extend Map with functions from Set.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10468 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-25 13:29:43 +00:00
Alain Frisch
e671780b01
Fix PR#4012: Map.map and Map.mapi do not conform to specification.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10465 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-25 11:22:14 +00:00
Damien Doligez
9209d550c5
PR#4831: use tags @since and @before in std lib
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10457 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-21 18:30:12 +00:00
Damien Doligez
b29bc9fd2b
PR#5055: head -1 doesn't work
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10448 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-21 11:28:21 +00:00
Damien Doligez
dc94932437
PR#4721: documented the fact that Lazy.force is not thread-safe
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10394 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-12 14:56:09 +00:00
Damien Doligez
29224ccbe6
PR#4742: finalisation function raising an exception blocks other finalisations
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-12 14:32:23 +00:00
Pierre Weis
2855154d6c
Typo in module Scanf prevented tests to succeeded properly.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10377 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-05 17:49:19 +00:00
Pierre Weis
1b5c521bb7
Forgotten export added. Remove spurious warninggs from Oug[1].
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10374 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-05 12:58:01 +00:00