Commit Graph

11944 Commits (9229b15aaac89dc835662177bbb70cecfa2598d3)

Author SHA1 Message Date
Jacques Garrigue 9229b15aaa Fix PR#6980 and remove unused Ctype.iterative_generalization 2015-11-30 13:49:30 +09:00
Gabriel Scherer 9d7ea1a9f2 Merge pull request #313 from chambart/quadratic_behavior_in_CSE
Prevent quadratic cases in CSE
2015-11-29 22:37:33 +01:00
Gabriel Scherer c6e95e4a64 bootstrap
Because debug-information has been enabled for compiler build
(GPR#300, e69ccdb), boot/ocamlc suffers a very large increase in size:
it goes from 1838126 bytes (around 1.75 MiB) to 9749343 bytes
(9.30 MiB), a 5.3x increase.
2015-11-29 20:54:14 +01:00
Gabriel Scherer 42ebc0469b Merge pull request #318 from Octachron/manual_deprecated_fix
Manual: fix uses of deprecated functions
2015-11-29 15:00:20 +01:00
octachron f86b78c34e manual: improve the string class example
Replace the `copy` method, which is quite pointless for immutable
strings, with an `escaped` method.
2015-11-29 15:50:58 +02:00
octachron 02d0c8285e manual: revert "specialized byte array" addition 2015-11-29 14:48:47 +02:00
octachron c1faf4d4d8 manual: distinguish bytes array and string
This small fix correct the use of the deprecated String.copy in the
manual. To be more coherent, it also mention briefly the existence of
bytes and the immutability of strings in the core language section.
2015-11-29 10:55:12 +02:00
octachron 7a11de0c41 manual: Fix deprecated use of Array.create 2015-11-29 10:54:53 +02:00
Gabriel Scherer 894d76d2f1 manual: Changes entry 2015-11-29 08:50:01 +01:00
Gabriel Scherer 88a4f088cd manual/ add LICENSE file extracted from manual/foreword.etex 2015-11-29 08:45:25 +01:00
Gabriel Scherer 57ab1f1055 manual build: have 'make all' run 'make tools' first 2015-11-29 08:41:31 +01:00
Gabriel Scherer 7fd21a46f4 Merge pull request #302 from bobot/add_ocaml_manuals
Add ocaml manuals in the repository
2015-11-29 08:22:11 +01:00
Pierre Chambart 547ae2e2a2 Update Changes 2015-11-28 21:57:14 +01:00
Gabriel Scherer 113ca21e21 Merge pull request #303 from gasche/hexa-formats
%F support for hexa-floats, and format testsuite
2015-11-28 19:15:05 +01:00
Gabriel Scherer 312d977037 testsuite for formatting of hexadecimal floats 2015-11-28 19:14:08 +01:00
Benoit Vaugon 484950d84b support for hexadecimal float notation in (scanf '%F') 2015-11-28 17:32:31 +01:00
Xavier Leroy e22eabed2c Merge pull request #300 from ocaml/build-with-debugging-informations
Build the compiler with debugging information
2015-11-28 10:52:06 +01:00
Gabriel Scherer 1b68fccfdd Merge pull request #117 from vbgl/ocamlbuild
ocamlbuild: use ocamlfind to discover camlp4 path
2015-11-28 10:34:29 +01:00
Vincent Laporte abb35cbdb1 ocamlbuild: use ocamlfind to discover camlp4 path
and default to `+camlp4`
2015-11-27 22:04:58 +01:00
Gabriel Scherer 5cdb5a7b4e document the travis tests 2015-11-27 21:05:06 +01:00
Gabriel Scherer debae3bac8 Merge pull request #273 from diml/get-extension-slot
Get extension slot
2015-11-27 20:11:36 +01:00
Gabriel Scherer b93ba4a1ed Merge pull request #314 from samoht/trunk
Add new optional checks to the CI
2015-11-27 19:29:18 +01:00
Jeremie Dimino c1c4c426ca Update ocamldep for [%extension_constructor]
Make ocamldep inspect the payload of [%extension_constructor]
2015-11-27 18:24:27 +00:00
Jeremie Dimino 4ffefb4183 update Changes 2015-11-27 18:23:48 +00:00
Jeremie Dimino 4af976cffe Add tests for [%ocaml.extension_constructor <path>] 2015-11-27 18:22:52 +00:00
Jeremie Dimino ebd830b85b Add support for [%ocaml.extension_constructor <path>]
Translate [%ocaml.extension_constructor <path>] to the
runtime-representation of the extension constructor denoted by
<path>. This allows one to get the extension constructor without
having to create a dummy value.
2015-11-27 18:17:14 +00:00
Jeremie Dimino d3b60c8dce Use the extension_constructor type in Obj
Rename Obj.extension_slot to Obj.extension_constructor as well
2015-11-27 17:57:41 +00:00
Jeremie Dimino 09b8c4e031 Add the predefined type extension_constructor
So that we can create constants of type [extension_constructor]
2015-11-27 17:52:33 +00:00
Thomas Gazagnaire 1d2e0cfb59 CI: use container-based infrastructure and add CHANGE and TEST optional checks
The optional checks have been written by @gasche
2015-11-27 17:44:04 +00:00
Xavier Leroy 906558a155 PR#7038: out of memory condition in caml_io_mutex_lock
Check the return code of st_mutex_create so that, in particular, out-of-memory conditions cause an exception.
2015-11-27 15:33:15 +01:00
Xavier Leroy 647a8cc438 configure: Typos in messages and comments. 2015-11-27 09:33:28 +01:00
Xavier Leroy ae9fd0ffb4 configure: typo in detection of clang version. 2015-11-26 19:20:47 +01:00
Xavier Leroy bf87415c1c PR#7024: in documentation of Str regular expressions, clarify what "end of line" means for "^" and "$" regexps. 2015-11-26 15:08:34 +01:00
Pierre Chambart d555b15eaf Prevent quadratic cases in CSE 2015-11-26 15:04:41 +01:00
Damien Doligez 449ba6b7b7 Revert "testsuite/tests/lib-dynlink-*/Makefile: fix wrong include dir"
This reverts commit 7f8019fe30.

That commit was just wrong, but gcc's heuristics hide the bug,
so it only breaks on Windows :-(
2015-11-26 11:28:40 +01:00
Jacques Garrigue 61c2dd2220 Do not warn for unused [pat -> .] clauses 2015-11-26 15:01:58 +09:00
Jacques Garrigue 68f96345a0 Merge pull request #294 from garrigue/compress-Tlink
Do path compression, and undo it in case of unification error
2015-11-26 14:40:32 +09:00
Jacques Garrigue 88ada8c74c be more careful about undoing compression 2015-11-26 14:16:07 +09:00
Jacques Garrigue 7e880f4e0a Merge branch 'trunk' of github.com:ocaml/ocaml into compress-Tlink 2015-11-26 14:04:35 +09:00
Damien Doligez 2512b48307 arg: add changelog entry and test 2015-11-25 22:22:24 +01:00
Richard W.M. Jones da02953570 arg: Allow flags such as --flag=arg as well as --flag arg.
Allow flags to be followed directly by their argument, separated by an '='
sign.  This is consistent with what GNU getopt_long and many other
command line parsing libraries allow.

Fix for the following issue:
http://caml.inria.fr/mantis/view.php?id=5197
2015-11-25 22:18:47 +01:00
Richard W.M. Jones d431b5bbd6 arg: Add no_arg and get_arg helper functions.
The no_arg function in this patch is a no-op.  It will do something
useful in the followups.

The get_arg function simple checks the next position on the command
line exists and returns that argument or raises a Arg.Missing.

This patch should introduce no functional change, it is simply code
refactoring.

In particular, this should not change the treatment of Arg.current
(see: http://caml.inria.fr/mantis/view.php?id=5197#c11147)
2015-11-25 22:14:36 +01:00
Alain Frisch 2b91fc3083 Merge pull request #310 from trefis/document-typedtrees
Document types.mli and typedtree.mli
2015-11-25 18:59:05 +01:00
Thomas Refis 0b1a6f93a8 make Types.type_expr.id immutable
Cf. https://github.com/ocaml/ocaml/pull/310#discussion_r45822414
2015-11-25 17:32:56 +00:00
Frederic Bour 9107f14afc Comment [Types] 2015-11-25 17:32:55 +00:00
Drup 718d1c998b Add comments to the typedtree 2015-11-25 17:32:55 +00:00
alainfrisch e2abefbe9e Do not rely on polymorphic comparison. 2015-11-25 18:06:35 +01:00
Damien Doligez 7f8019fe30 testsuite/tests/lib-dynlink-*/Makefile: fix wrong include dir 2015-11-25 15:47:53 +01:00
Nicolas Ojeda Bar a524920aa2 Remove Typedtree.optional
From comments in typedtree.mli:

When introduced in 2000, this [type] enabled a more efficient code
generation for optional arguments. However, today the information is
redundant as labels are passed to [transl_apply] too. Could be cleaned
up.
2015-11-25 00:37:46 +01:00
alainfrisch e02650addb Doc (catenate -> concatenate, which is more common and coherent with other doc strings). 2015-11-24 16:05:30 +01:00