Commit Graph

2029 Commits (4a2fa2978ff5ca356836de70b5d1cdd8e8ee02d3)

Author SHA1 Message Date
Raja Boujbel 3c042f88ac update Changes 2018-05-30 17:47:10 +02:00
Thomas Refis e9c423ead9 Changes 2018-05-29 15:30:39 +01:00
Gabriel Scherer f3aab90538 minor Changes changes 2018-05-29 14:44:56 +02:00
Gabriel Scherer 90453ca855 synchronize Changes with 4.07 2018-05-29 14:12:54 +02:00
Gabriel Scherer f81054f004 minor Changes polish 2018-05-29 13:41:28 +02:00
Gabriel Scherer d159aa2c29
Merge pull request #1687 from 314eter/pprint-functor-type
Fix printing of functor types
2018-05-29 13:29:03 +02:00
Pieter Goetschalckx 5633c84644 Fix printing of functor types 2018-05-29 10:52:18 +02:00
Gabriel Scherer 148e811ec9
Merge pull request #1182 from ygrek/printf_alt_int
Printf: alternative format for integers
2018-05-29 06:59:24 +02:00
ygrek 3a978584d5 Add Changes entry and update Printf doc 2018-05-28 17:52:33 -07:00
Gabriel Scherer 15c89485f3
Merge pull request #1723 from stedolan/remove-meta-static
Remove Meta.static_{alloc, free}.
2018-05-28 16:14:52 +02:00
LemonBoy 86d1f0d714 Optimize 32->64 sign-extension for AMD64 (#1631) 2018-05-28 15:38:57 +02:00
Florian Angeletti 1d27ddef10
manual: move quoted string to the main chapters (#1788)
* manual: itemize the list of basic data types
2018-05-25 21:15:35 +02:00
Sébastien Hinderer 73620c1591 Add the -m and -M command-line options to ocamlrun
- -m shows the magic number of the bytecode executable given as argument

- -M shows the magic number this runtime expects
2018-05-25 14:14:25 +02:00
Thomas Refis e407ecf114
Merge pull request #1748 from trefis/remove-record-check
do not error when instantiating polymorphic fields in patterns
2018-05-25 10:20:57 +01:00
Sébastien Hinderer a2586680a0 Remove the Makefile.nt files 2018-05-25 00:36:56 +02:00
Thomas Refis c2fef187a8 Changes 2018-05-24 13:41:56 +01:00
Nicolás Ojeda Bär 76f30d00f3 Unix: add open_process_args{,_in,_out,_full} (#1792)
The idea is to add a variant of the Unix.open_process{,_in,_out,_full} functions that work with a pair (program, args) directly, without going through the system shell, which introduces extra complexity (in particular, with respect to quoting).

I used the name Unix.open_process_args which is the one suggested in ocaml-batteries-team/batteries-included#858, but I am not completely sold on it.

One uses the usual "close" functions Unix.close_process{,_in,_out,_full} with the new functions as well.

The "old" functions Unix.open_process{,_in,_out,_full} are re-implemented in terms of the "new" functions, so I did not feel pressed to add new tests.

Addresses: MPR#7794.
2018-05-24 11:10:36 +02:00
Xavier Leroy cea41081dc Update Changes entry for GPR#1790 2018-05-23 20:03:30 +02:00
Xavier Leroy ab1ca8e72a
Make sure a function registered with `at_exit` is executed only once (#1790)
Fixes: MPR#7253 (in large part), MPR#7796 (in full).

As shown in the PRs above there are several cases where do_at_exit
is called several times, causing functions registered with at_exit
to be called several times.  Also, an at_exit function that raises
could prevent other at_exit functions from being run.

This commit doesn't try to prevent multiple calls to do_at_exit,
but makes sure that each function registered with at_exit is run
at most once.  The idea is due to Nicolás Ojeda Bär.
2018-05-23 17:12:01 +02:00
stdowl bd204c7939
Merge branch 'trunk' into html-manual 2018-05-20 10:49:54 +02:00
steinuil 16f8372e43 add changes entry 2018-05-19 21:48:18 +02:00
Gabriel Scherer 493336e2c1
Merge pull request #1767 from charlesetc/manual-font-size
Change html manual to use relative font sizes
2018-05-18 16:34:43 +02:00
Marc Lasson 02e93d657f Fix Segfault on Windows 64 bits
The segfault happens when you use a wildcard '*' or '?'
in the argument of the caml program compiled on Windows
64bits.

The handle was corrupted because is cast from
intptr_t (64bits) to int (32bits).

In order to make sure that both `intptr_t` and `uintptr_t`
are available on MSVC we forced the inclusion of <stdint.h>
for versions that have it (starting from Visual Studio 2010
(MSVC version 1600)). For older versions, the typedefs may be
found in <stddef.h>; therefore we forced the inclusion of this
standard header in config.h.
2018-05-18 12:19:01 +01:00
Leo White f4fbdaba71
Merge pull request #1778 from lpw25/fix-pr7414-for-local-modules
Fix PR#7414 for local modules
2018-05-17 09:52:21 -04:00
Leo White 90151b0b28 Add Changes entry 2018-05-17 14:51:33 +01:00
Charles Chamberlain 17a1059305 Fix 'Changes' 2018-05-15 16:26:05 +00:00
Charles Chamberlain 36f003de13 Update changes file for html manual change 2018-05-15 16:24:10 +00:00
Charles Chamberlain f5d7c7957f Smaller body size, smaller text size, and wrap pre 2018-05-15 16:24:10 +00:00
Mark Shinwell 8054e4f819 Add configure option to not install ".byte" executables (#1776)
In environments where the executables compiled to native code,
such as ocamlopt.opt, are always used in preference to the bytecode
versions then space can be saved by not installing the latter.
This patch provides a configure option to do such. It is relatively lightly
engineered; in particular, it won't complain if the native code executables
aren't themselves being built; but given this is an option for knowledgeable
users we think that it is reasonable.
2018-05-14 10:44:01 +02:00
Gabriel Scherer 83b0ee1b62
Merge pull request #1779 from pmetzger/bigardocfix
Integrate Bigarray documentation
2018-05-14 10:31:38 +02:00
Mark Shinwell ea2d6a1e31
Add configure options to control installation of source artifacts (#1777) 2018-05-14 08:15:44 +01:00
KC Sivaramakrishnan 1cd57a0b64 Add changes entry for GPR#1782 2018-05-13 14:08:55 +01:00
Gabriel Scherer a8ae01a6c1 minor Changes change suggested by Thomas Refis 2018-05-13 11:49:33 +02:00
Nicolás Ojeda Bär 03805df535 Changes 2018-05-11 16:06:58 +02:00
Perry E. Metzger 1a412be026 Integrate Bigarray documentation
1. Add Bigarray lines to library/stdlib.etex
2. Move intro from libbigarray.etex to stdlib/bigarray.mli
3. Note that 0-dimensional arrays are supported.
4. Move C interface description to cmds/intf-c.etex
5. Change wording in libbigarray.etex to reflect legacy status.
6. Add a label to libunix.etex (needed for link from libbigarray.etex)
7. Put the changes in Changes (for 4.07).
2018-05-10 15:13:56 -04:00
Xavier Leroy 461c752175
ARM VFP loads and stores: offset must be multiple of 4 (#1774)
In flds, fldd, fsts, fstd instructions, using indexed addressing mode,
the offset from the index register must be a multiple of 4.
Otherwise, invalid asm is produced and rejected by the assembler.
2018-05-09 11:34:07 +02:00
Xavier Leroy 4dae83a088
Use C99 flexible arrays for struct pool_block in memory.c if possible (#1764)
The original code may not be quite ISO C conformant,
and causes alarms with Clang's address sanitizer.

The new code is patterned after struct caml_ba_array in <caml/bigarray.h>,
which is a solution to a similar problem (see MPR#5516).
2018-05-08 18:34:23 +02:00
Thomas Refis 1abc01f8c6 debugger: avoid out of bounds access 2018-05-08 11:10:58 -04:00
Gabriel Scherer 7398fd2257
Merge pull request #1765 from Octachron/manual_ellipsis_in_examples
manual: ellipses in examples
2018-05-07 14:24:05 +02:00
octachron fb35a542f3 update changes 2018-05-07 10:50:31 +02:00
Armael acfd3783eb update Changes 2018-05-06 10:08:30 +02:00
Florian Angeletti 145bedc2ae
manual: signature option for caml_example (#1702)
* Signature option for caml_example
* convert ocamldoc code example to caml_example
* error message when using caml_example*{signature} without *
2018-05-05 21:50:40 +02:00
Gabriel Scherer 1cb36f7cbe Changes entry for GPR #1693 2018-05-05 16:54:05 +02:00
Gabriel Scherer 9b10a776ee
Merge pull request #1746 from Octachron/rip_seltype_nongen
remove unreachable error variant: Make_seltype_nongen
2018-05-05 14:43:48 +02:00
Gabriel Scherer 64f4c0f74b
Merge pull request #1761 from gasche/revert-extended-index-operators-trunk
Revert "Parser: allow seq_expr inside extended indexing/bigarray oper…
2018-05-05 14:42:46 +02:00
Gabriel Scherer ced02672c1
Merge pull request #1757 from charlesetc/manual-formatting
Style the html manual, changing type and layout
2018-05-05 10:42:48 +02:00
Charles Chamberlain 5317b717f6 Host fonts in the manual, add line to Changes 2018-05-04 23:41:18 -05:00
octachron 01ff3fb7d1 update changes with review info 2018-05-04 21:45:31 +02:00
Anil Madhavapeddy 698f64825e debugger: avoid off-by-one overflow in debugger socket path (#1753)
Modern gcc have a `-Werror=stringop-truncation` warning that tells
us that the strncpy used to copy the CAML_DEBUG_SOCKET value from
the environment misses out the space for a terminating NUL.

Rather than silently truncate the path, this patch raises an
exception if the path is too long, and also fixes the off-by-one
in the strncpy invocation.

with feedback from Stephen Dolan
2018-05-04 18:54:11 +02:00
Gabriel Scherer 5a902144e6 Revert "Parser: allow seq_expr inside extended indexing/bigarray operators (#1467)"
This reverts commit 6664b06366.
2018-05-04 16:45:52 +02:00