Commit Graph

13943 Commits (0e72af57b82218bff3d2874a8100d411a7a2daee)

Author SHA1 Message Date
Gabriel Scherer 0e72af57b8 testsuite/HACKING.adoc 2016-12-03 10:04:32 -05:00
Gabriel Scherer 4c04dee041 Merge pull request #939 from Octachron/manual_camlexample_for_exten
Manual: caml_example for language extensions
2016-11-29 16:54:01 -05:00
octachron a57a5d4aa4 GPR#939: Changes 2016-11-29 19:29:21 +01:00
octachron ac8077c5b7 Detect missing `;;` at the end of caml examples 2016-11-29 19:08:51 +01:00
octachron 68354a560a Inline css update for manual 2016-11-29 18:53:03 +01:00
octachron 20f1406a64 Delete `\tq` macro 2016-11-29 18:53:03 +01:00
octachron 862e276728 caml_example: convert example linked to verbatim 2016-11-29 18:53:03 +01:00
octachron c62735066f Convert handwritten code examples to caml_example 2016-11-29 18:53:03 +01:00
octachron eae2b1337b Activate caml_example for refman/exten.etex 2016-11-28 21:02:22 +01:00
Gabriel Scherer 9df8c636e0 Merge pull request #937 from thomasblanc/patch-1
Fixing typo in manual (7.16)
2016-11-28 09:51:12 -05:00
Thomas Blanc 6361a2fc57 Fixing typo in manual (7.16) 2016-11-28 15:30:30 +01:00
Gabriel Scherer 30a06b33c5 Merge pull request #905 from sbriais/trunk
Document behaviour of unlink on directories.
2016-11-27 15:45:19 -05:00
Gabriel Scherer dade0b507c Merge pull request #920 from sliquister/leak-in-c-binding-example
manual: example of releasing the runtime system leaks memory
2016-11-27 15:43:23 -05:00
Gabriel Scherer 1e08c9ab5c merge the MPR#7417, GPR#930 fix to the 4.04 release branch 2016-11-27 14:10:06 -05:00
Gabriel Scherer 3ad607f0fd Merge pull request #930 from christoph-cullmann/trunk
PR#7417: ensure stack stays 16 bytes aligned
2016-11-27 06:58:42 -05:00
Gabriel Scherer 26183199c0 Merge pull request #936 from ygrek/fix_invalid_argument
unix: invalid_argument -> caml_invalid_argument
2016-11-27 06:53:36 -05:00
Gabriel Scherer 28bc91369e Travis changes-entry test: take github labels into account
See the discussion at #923
  https://github.com/ocaml/ocaml/pull/923
2016-11-26 21:59:25 -05:00
ygrek 0589c0d1f7 unix: invalid_argument -> caml_invalid_argument 2016-11-26 16:47:22 -08:00
Frédéric Bour 99923f7b7a GPR #922 : add GPR#247 to Changes 2016-11-26 11:47:20 -05:00
Gabriel Scherer d4d85fa1b9 clarify ocamldoc text parsing error messages
Before, parsing the comment

    (**
    Sample code to iterate over all frames (inlined and non-inlined):
    {|
      (* note: the start-of-code-block above should be after a blank line *)
    |}
    *)

would show

    File ".../foo.mli", line 3, character 6:
        {|
          ^

now it shows

    File ".../foo.mli", line 3, character 6:
    Error parsing text:
        {|
          ^
2016-11-26 11:13:15 -05:00
Gabriel Scherer ae754edb05 Merge pull request #925 from gasche/HACKING.adoc
A HACKING.adoc file with hacking advice
2016-11-26 10:45:32 -05:00
Sébastien Hinderer 3caf25d4da Fix asmrun/Makefile
ranlib was called on the dummy profiling library libasmrunp.a instead
of being called on libasmrun_pic.a.

Before PR#933 was merged this did not cause any error because
libasmrunp.a was always provided, but now that PR#933 has been merged
this wrong call fails on platforms that do not have gprof profiling
support.
2016-11-25 17:25:02 +01:00
Sébastien Hinderer 54e6aecd77 Improve handling of platforms that do not have gprof profiling support (#933)
This commit modifies these two behaviours:

1. ``make install'' installs libraries with profiling support only when
this makes sense.

2. On platforms that do not support profiling with gprof, the -p option of
ocamlopt produces an error message.
On such platforms, ``make install'' was installing dummy profiling
libraries and ocamlopt's -p option was silently ignored.

In addition, this commit modifies the values of the PROFILING make
variable. Before the commit it was either prof or noprof. After the
commit it is either true or false.

In the asmrun directory, the call to ranlib for libasmrunp.a has also been
removed from the install target because this command is already invoked
in the rule that builds libasmrunp.a.

ocamlc/ocamlopt -config now prints the state of profiling support
2016-11-25 17:24:44 +01:00
Gabriel Scherer 0657fd8193 Revert "Improve handling of platforms that do not have gprof profiling support (#933)"
This reverts commit 8adfe15f18.

This is a temporary revert caused by Continuous Integration
failure. We'll investigate the issue and merge again when it is fixed.
2016-11-25 11:12:56 -05:00
whitequark 0670dc2be9 Fix install of symlinks with installopt but without installoptopt. (#932) 2016-11-25 15:01:04 +00:00
Sébastien Hinderer 8adfe15f18 Improve handling of platforms that do not have gprof profiling support (#933)
This commit modifies these two behaviours:

1. ``make install'' installs libraries with profiling support only when
this makes sense.

2. On platforms that do not support profiling with gprof, the -p option of
ocamlopt produces an error message.
On such platforms, ``make install'' was installing dummy profiling
libraries and ocamlopt's -p option was silently ignored.

In addition, this commit modifies the values of the PROFILING make
variable. Before the commit it was either prof or noprof. After the
commit it is either true or false.

In the asmrun directory, the call to ranlib for libasmrunp.a has also been
removed from the install target because this command is already invoked
in the rule that builds libasmrunp.a.

ocamlc/ocamlopt -config now prints the state of profiling support
2016-11-25 15:57:14 +01:00
Gabriel Scherer b9f9d707c8 HACKING.adoc: plenty of changes suggested by David Allsopp's review 2016-11-23 07:13:46 -05:00
Gabriel Scherer 1e8016e67d add a Changes entry 2016-11-22 21:35:49 -05:00
Gabriel Scherer d7acff30bc split HACKING.adoc with parts in {parsing,typing}/HACKING.adoc
In the interest of keeping HACKING.adoc not-too-long and
general-purpose, advice on modifying specific sub-systems of the
compiler distribution should be moved to the directory of this
sub-system.

This PR also clarifies the relations between the README, INSTALL,
HACKING and CONTRIBUTING documents.
2016-11-22 21:35:49 -05:00
Gabriel Scherer 237c7d0e84 merge all of Drup's Hacking.adoc content into HACKING.adoc 2016-11-22 21:35:49 -05:00
Drup 48bdaa08fd Various small fixes/improvements. 2016-11-22 21:35:49 -05:00
Drup da6e7dce5e Extend the typecheking part. 2016-11-22 21:35:49 -05:00
Drup 66ecb7c480 Fix link. 2016-11-22 21:35:49 -05:00
Drup a980aa59f6 Backport gasche's improvements. 2016-11-22 21:35:49 -05:00
Drup 9b17752122 Starting Hacking.adoc. 2016-11-22 21:35:49 -05:00
Gabriel Scherer 0ea3b2800a add explanations on INRIA's CI server and how to use ocaml/precheck 2016-11-22 21:35:49 -05:00
Gabriel Scherer d30878a572 first draft of HACKING.adoc file [WIP] 2016-11-22 21:35:49 -05:00
Jacques Garrigue 2bd22967b4 Fix MPR#7414 (#929)
* Fix PR#7414 by adding Mtype.lower_nongen
2016-11-21 22:19:44 +09:00
Christoph Cullmann 0059f1a23a add entry to Changes for fix of 16 byte alignment (MPR#7417, GPR#930) 2016-11-20 15:33:56 +01:00
Christoph Cullmann 75e0f787c9 PR#7417: ensure stack stays 16 bytes aligned 2016-11-20 13:15:29 +01:00
Gabriel Scherer f68ff2e5b0 Merge pull request #927 from Armael/hashbang
Improve the detection of hashbang support in the configure script
2016-11-18 18:43:28 -05:00
alainfrisch 04d1f22ea8 Add missing documentation for OCAMLRUNPARAM=0x400 in the manual. 2016-11-18 16:22:26 +01:00
Armaël Guéneau 4c52779aad Improve the detection of hashbang support in the configure script
In particular, this adds support for systems where the `cat` binary isn't
located in /usr/bin/ or /bin/, but can be found using /usr/bin/env.
An example of such a system is NixOS (https://nixos.org).
2016-11-18 16:14:32 +01:00
Gabriel Scherer c2599e366a Merge pull request #923 from let-def/typo_in_env
typo in env
2016-11-17 07:06:00 -05:00
Dhruv Makwana d5af984970 Add MPR#6975: truncate in Buffer module (#902)
MPR#6975: add truncate in Buffer module
2016-11-17 07:00:48 -05:00
Sébastien Hinderer 45211b0254 Remove use of compatibility macros in Cygwin-specific code.
This fixes PR #892 (commit 13945a71ed):
there was one compatibility macro remaining in Cygwin-specific code.
2016-11-17 12:16:17 +01:00
Frédéric Bour 322aa22386 typo in env (no change entry needed) 2016-11-17 11:56:15 +01:00
Sébastien Hinderer 13945a71ed Do not use the compatibility macros in the C stub code. (#892)
* Don't use the compatibility macros, neither in the C stub code nor in the testsuite.

* Make sure compiler sources do not use deprecated C identifiers.

This is achieved by ensuring that the CAML_NAME_SPACE macro is defined
everytime a C source file is compiled, rather than being defined only
in a few places. Defining this macro guarantees that the compatibility.h
header (where these deprecated identifiers are defined) will not be
included.
2016-11-17 11:03:09 +01:00
Gabriel Scherer c628d9c6e1 Merge pull request #921 from Octachron/manual_deprecated_names
Manual: deprecated modules have a name too
2016-11-16 16:27:44 -05:00
octachron b5a8bbac6e manual: deprecated modules have a name too 2016-11-16 18:55:12 +01:00