Commit Graph

20933 Commits (9e181ca8f446d238ba279bc22fef9d166d4f38b0)

Author SHA1 Message Date
David Allsopp 0bd6c0d36f Remove unused spacetime primitives 2020-09-14 18:01:14 +01:00
David Allsopp 13bba6531b Remove leaking globals 2020-09-14 16:40:12 +01:00
David Allsopp f71a41daaf Add internal toggle to disable using .opt binaries
Adding USE_BEST_BINARIES= to the command line disables the use of the
.opt compilers.
2020-09-14 16:13:41 +01:00
Florian Angeletti bc4d260de7
Merge pull request #9865 from raphael-proust/pp_print_seq
Stdlib.Format: add pp_print_seq
2020-09-14 16:52:11 +02:00
David Allsopp 954128bc5c Make caml_spacetime_automatic_save static
There's no need for this function to be globally visible.
2020-09-14 14:56:57 +01:00
David Allsopp 0c646d4f4e Remove unnecessary extern's in spacetime_nat.c
These are declared in respective headers already.
2020-09-14 14:56:07 +01:00
David Allsopp b38f4962e9 Remove undefined declaration of caml_spacetime_debug 2020-09-14 14:55:17 +01:00
David Allsopp 46da6eb4bc Tidy spacetime.h 2020-09-14 14:54:10 +01:00
Thomas Refis f8fb2d4ba6 Changes 2020-09-14 13:33:36 +02:00
Thomas Refis 92c36d54c5 correction following Florian's review 2020-09-14 13:33:24 +02:00
Thomas Refis 162df93916 catch Nondep_cannot_erase exception 2020-09-14 13:27:03 +02:00
Thomas Refis 6aad418899 add test from #9858 2020-09-14 13:27:03 +02:00
David Allsopp 89ef6199bd Remove caml_ensure_spacetime_dot_o_is_included 2020-09-14 11:42:59 +01:00
David Allsopp 3b1d4dafe0
Eliminate caml_code_area globals (#9909) 2020-09-14 09:16:09 +01:00
Gabriel Scherer d3c1daae32
Merge pull request #9908 from dra27/tweak-9652
Fix unnecessary rebuilding on Windows
2020-09-12 15:13:54 +02:00
Raphaël Proust 63f107c62e Credit MR reviewer 2020-09-12 09:19:30 +02:00
Raphaël Proust faeb43ba5a Add test for Stdlib.Format.pp_print_seq 2020-09-12 09:19:30 +02:00
David Allsopp 720b8c9b99 Fix ocamlcommon.cmxa/ocamlopttoplevel.cmxa rules
Depending on ocamlopt meant they were always rebuilt on Windows/Cygwin
builds.
2020-09-12 08:11:03 +01:00
John Whitington 2d217e7c44 assoc -> assoc_opt 2020-09-11 20:07:44 +01:00
John Whitington cd920ab553 Remove false self-references 2020-09-11 18:11:54 +01:00
John Whitington bcc16f692b Fix two little errors 2020-09-11 18:10:12 +01:00
Florian Angeletti 9a31c888b1
Merge pull request #9433 from lpw25/fix-package-constraints-for-module-aliases
Fix package constraints for module aliases
2020-09-11 18:21:24 +02:00
David Allsopp 0d91bef985
Eliminate CAMLprim/CAMLexport in socketaddr.h (#9900)
* Merge {win32,}unix/socketaddr.h so that unix/socketaddr.h can be used from win32unix/ as well.
* Update socket-related files in win32unix/
2020-09-11 16:35:31 +02:00
David Allsopp c9d5294b78 Fix check-typo sins 2020-09-11 15:01:14 +01:00
John Whitington a866c6d07f Fix reference to tools/unlabel 2020-09-11 14:39:12 +01:00
John Whitington c3f6cd7ff7 Merge remote-tracking branch 'upstream/trunk' into trunk 2020-09-11 14:14:38 +01:00
Florian Angeletti 75ec40bdd6
Merge pull request #9590 from chetmurthy/pr-extension-constructor-rebind-pprint-4.11
PR extension constructor rebind pprint 4.11
2020-09-11 10:37:08 +02:00
David Allsopp 28789cd045
Merge pull request #9904 from dra27/unix-io-prims
Declare primitives used by unix in io.h
2020-09-11 09:35:31 +01:00
David Allsopp e7a2da1707
Merge pull request #9903 from dra27/tidy-CAMLextern
Remove final instances CAMLextern in C files
2020-09-11 09:35:07 +01:00
David Allsopp 95ea8a2d32
Merge pull request #9902 from dra27/main-cleanup
Declare caml_expand_command_line in osdeps.h
2020-09-11 09:34:47 +01:00
David Allsopp d889d8f565
Merge pull request #9901 from dra27/caml_main
Tidy caml_main declaration
2020-09-11 09:34:29 +01:00
David Allsopp ade519d5df
Merge pull request #9899 from dra27/export-in-C-only
Remove CAMLprim and CAMLexport from backtrace.h
2020-09-11 09:34:06 +01:00
John Whitington 69c59b172d Take account of GPR#9668 2020-09-10 21:01:02 +01:00
John Whitington 5a230ee8e7 Add reviewer 2020-09-10 19:33:19 +01:00
John Whitington fc101ae849 Rename tools/unlabel --> tools/sync_stdlib_docs 2020-09-10 19:17:43 +01:00
Chet Murthy 0d46b5206d redo: This little patch fixes the pretty-printing of "rebind" extension-constructors (and also rebind exceptions) so that it matches the parser. With tests. a rebind extension like
type t  += A = M.A [@a]
was pretty-printed as

type t += A[@a] = M.A
[obviously wrong, also not accepted by parser]

With tests for extension-constructors and exceptions.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch pr-extension-constructor-rebind-pprint-4.11
# Changes to be committed:
#	modified:   Changes
#	modified:   parsing/pprintast.ml
#	modified:   testsuite/tests/parsetree/source.ml
#
# Untracked files:
#	Changes.orig
#	parsing/pprintast.ml.orig
#	testsuite/tests/parsetree/source.ml.orig
#	testsuite/tests/parsetree/source.ml.rej
#
2020-09-10 11:09:06 -07:00
John Whitington 5fd8236343 Fix comment regarding NaN in Array.sort 2020-09-10 18:10:29 +01:00
John Whitington 99645f901b Adds readme to stdlib/templates 2020-09-10 18:08:00 +01:00
John Whitington d6ce828d06 Remove SINCE work from tools/unlabel 2020-09-10 17:56:42 +01:00
David Allsopp 435babd6f8 Declare primitives used by unix in io.h 2020-09-10 16:34:24 +01:00
David Allsopp 83f0dda553 Don't use CAMLextern in C files 2020-09-10 13:55:38 +01:00
David Allsopp 503776deb4 Declare caml_expand_command_line in osdeps.h 2020-09-10 12:11:02 +01:00
David Allsopp 29408deb2c Tidy caml_main declaration 2020-09-10 12:05:46 +01:00
David Allsopp 121cae4801 Remove CAMLprim and CAMLexport from backtrace.h 2020-09-10 11:01:19 +01:00
David Allsopp df64b46a7c Remove dup. declaration of caml_sys_time_unboxed 2020-09-10 09:54:43 +01:00
Florian Angeletti b0eaf5b844
Merge pull request #9591 from chetmurthy/pr-polyvariant-pprint
fix pprint of polyvariants that start with a core_type,closed, not low
2020-09-10 10:25:30 +02:00
Chet Murthy 5b8b6de2ac sorry, too-long line in Changes file
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch pr-polyvariant-pprint
# Your branch is up to date with 'my-fork/pr-polyvariant-pprint'.
#
# Changes to be committed:
#	modified:   Changes
#
# Untracked files:
#	Changes.orig
#	parsing/pprintast.ml.orig
#	testsuite/tests/parsetree/source.ml.orig
#	testsuite/tests/parsetree/source.ml.rej
#
2020-09-09 15:15:22 -07:00
Chet Murthy e2ec81fe56 re-do of print polyvariants that start with a core_type,closed, not low with leading bar ("|").
a type "[ | w ]" must be printed with the "|", or it won't be
reparseable.

with tests, Changes entry.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch pr-polyvariant-pprint
# Changes to be committed:
#	modified:   Changes
#	modified:   parsing/parsetree.mli
#	modified:   parsing/pprintast.ml
#	modified:   testsuite/tests/parsetree/source.ml
#
# Untracked files:
#	Changes.orig
#	parsing/pprintast.ml.orig
#	testsuite/tests/parsetree/source.ml.orig
#	testsuite/tests/parsetree/source.ml.rej
#
2020-09-09 13:37:36 -07:00
Gabriel Scherer 03839754f4
List.equal, List.compare (#9668)
`List.equal f foo bar` is nicer than
`List.length foo = List.length bar && List.for_all2 f foo bar`.

Note: with List.compare there is a risk of users having opened the
List module, and then using 'compare' from the stdlib unqualified. For
example:

    List.(sort compare foo bar)

Such code will break (type error), and has to be fixed by using
Stdlib.compare. Stdlib is available since OCaml 4.07; people wishing
to support both 4.12 and older releases would have to avoid opening
List, or rebind 'compare' locally.
2020-09-09 20:01:04 +02:00
David Allsopp 212c0fa70c
Allow running a single test in testsuite/Makefile (#9807)
* Allow running a single test in testsuite/Makefile.  Syntax is `make one FILE=...`

* Rename `make list` into `make one LIST=...` for consistency.

* Always read actual lines from files

read should, as a general rule, always be followed by -r in scripts. If
IFS is not empty, then spaces are stripped as well.
2020-09-09 19:54:00 +02:00