Commit Graph

136 Commits (e0d5daa6837dfc087ce9a7d29b5fd586d388eb6d)

Author SHA1 Message Date
Nicolás Ojeda Bär 6c1bec42c7 Deprecate -thread option, equivalent to -I +threads 2018-03-15 18:37:02 +01:00
Gabriel Scherer d229144189 Merge pull request #1344 from nojb/linscan_flag_manual
Add -linscan doc to manual
2017-10-16 09:27:02 +02:00
octachron 0bf9ceaa3f toplevel: remove plugin option in toplevel 2017-09-30 11:03:53 +02:00
Matej Košík 3c9759b899 Ocamldoc manpage update (#1356)
* add description of the "-charset" option to the manual page of "ocamldoc"
* add description of the "-show-missed-chrossref" option to the manual page of "ocamldoc"
* add description of the "-text" option to the manual page of "ocamldoc"
2017-09-23 18:49:17 +02:00
Leo White 20668002bb Turn off warning 40 by default (#1333)
* Turn off warning 40 by default
2017-09-15 18:41:49 +02:00
Nicolas Ojeda Bar 2c371b7104 Add -linscan doc to manual and man page 2017-09-15 18:07:25 +02:00
Florian Angeletti 588c23117b Merge pull request #1231 from Octachron/hello_κόσμος
Toplevel: only escapes bytes and not strings
2017-09-13 23:24:24 +02:00
octachron 2e6a78aa18 toplevel: only escapes bytes and not strings
Escaping strings when printing them in the toplevel has the disadvantage
of mangling unicode text:

```
\# "한글";;
- : string = "\237\149\156\234\184\128"
```

With this commit, strings are not escaped anymore, contrarily to bytes:

```
\# let cosmos = "κόσμος";;
cosmos : string = "κόσμος"
\# Bytes.of_string cosmos;;
- : bytes =
Bytes.of_string "\206\186\207\140\207\131\206\188\206\191\207\130"
```

This new behavior can be disabled dynamically by setting the environment
variable OCAMLTOP_UTF_8 to false

This change is not solely aesthetic: the mangling of unicode string may
contribute to the impression of some OCaml newcomers that Ocaml has no
support for unicode.
2017-09-12 22:28:18 +02:00
Thomas Refis 1747a2f0eb Mention deprecated warning 25 in manual and man page
* warning 25: updated the man page

* warning 25: update the manual
2017-07-10 18:18:37 +02:00
Etienne Millon e795b95eb7 Fix "-keep-docs" option in ocamlopt manpage
It was a duplicate of `-keep-locs` below.
2017-06-30 15:56:18 +02:00
Damien Doligez fee01100fb Some tweaks for MPR#7557 (#1213)
* fall back to __secure_getenv when secure_getenv is not available

* use secure_getenv for instrumented runtimes

* documentation: warn against setting the setuid or setgid bits on custom bytecode executables
2017-06-28 14:08:07 +02:00
Fabrice Le Fessant 8daa184d95 New -depend option for ocamlc/ocamlopt 2017-06-01 15:56:30 +02:00
Sébastien Hinderer fcc173e7d3 Fix man/Makefile
This is a follow-up to commit eef958007e
(rename variables related to manual pages)

A few occurrences had been forgotten.
2017-05-23 15:11:25 +02:00
Mark Shinwell 3efe66e043 Remove SPARC backend 2017-04-10 09:18:13 +01:00
Sébastien Hinderer eef958007e Build system: rename variables related to manual pages
Rename MANEXT (resp. LIB_MANEXT) to PROGRAMS_MAN_SECTION (resp.
LIBRARIES_MAN_SECTION).

Also get rid of a useless variable assignment in configure.
2017-03-29 11:10:06 +02:00
Hannes Mehnert 76bf7c568e Respect OCAML_COLOR environment variable for deciding whether to use colors
Since 4.03, OCaml supports coloring its messages to standard output and standard
error, depending on the "-color" argument ({always,never,auto}).  This commit
adds support for the environment variable "OCAML_COLOR" (which value can as well
be {always,never,auto}).

The command line argument "-color" takes precedence, "OCAML_COLOR" is only
taken into consideration if no "-color" is provided.

The motivation for this is that the user should have control over coloring
OCaml's output messages.  OCamlbuild, a widely used build tool executes OCaml
not under a tty (and OCaml does not colorize errors and warnings), which lead
various packages use `color(always)` in their `_tags` files, which breaks with
other (non-interactive) programs (i.e.  editor helpers).

Further discussion was done at https://github.com/ocaml/ocamlbuild/issues/87 and
https://github.com/ocaml/ocaml/pull/1098.
2017-03-15 08:24:13 +00:00
Gabriel Scherer 509fb39b53 Merge pull request #989 from gasche/opaque-manual
Opaque manual
2017-03-05 14:31:47 -05:00
Fabrice Le Fessant b7b0a64d33 ocamldep: add -plugin and use compilerlibs to build (#1015)
* ocamldep: add -plugin argument, and use compilerlibs to build
2017-03-02 16:45:58 +01:00
Gabriel Scherer 3bae6a68b4 -opaque documentation: take Mark's review comments into account 2017-02-24 21:55:14 -05:00
Gabriel Scherer 6e47bace18 differentiate the ocamlc/ocamlopt -opaque manpage 2017-02-24 21:55:13 -05:00
Konstantin Romanov 39bb4179ee Added description of -opaque to man pages. 2017-02-24 21:55:13 -05:00
octachron 25c49bc42f Document ocamldep's "-shared" option 2017-02-18 08:34:51 +01:00
Xavier Leroy 7921342073 GPR#1009: add Changes entry and update man pages 2017-01-15 20:48:39 +01:00
Damien Doligez d5a6e50ebe GPR#606: add unboxed types 2016-07-21 13:51:46 +02:00
Fabrice Le Fessant c71e4d38b2 Update the manual with the -plugin option 2016-07-19 16:54:35 +02:00
alainfrisch 32f0e2120c Detect unused module declarations. 2016-07-18 10:35:19 +02:00
Gabriel Scherer bd9693b3eb Merge pull request #598 from yallop/ocamlyacc-conflict-error
Reject conflicts in parsing/parser.mly
2016-06-26 15:36:32 -04:00
Jeremy Yallop e24a65e5a6 Rename -e to --strict in the ocamlyacc man page. 2016-06-22 09:15:40 +01:00
whitequark be1f3cfa78 Update manpages and manual to account for changes in 221c55a4. 2016-06-14 11:36:35 -04:00
Jeremy Yallop c40c2887c4 Document the ocamlyacc -e flag. 2016-05-31 20:45:40 +01:00
Damien Doligez 4a2107be8d Merge pull request #575 from shindere/toplever-no-version
Add the -no-version option to the toplevel.
2016-05-10 11:31:26 +02:00
Sébastien Hinderer 3bbf34319e Add the -no-version option to the toplevel.
This option requests the toplevel not to print its version number
at startup.
2016-05-09 17:22:29 +02:00
Sébastien Hinderer 50147913ac Call the '#' sign hash rather than sharp. 2016-05-09 16:34:40 +02:00
Damien Doligez 520fb2df50 Merge tag 4.03.0 into trunk. 2016-04-28 16:13:21 +02:00
Gabriel Scherer c6fdca82b3 minor ocamlc.m fix 2016-04-18 11:25:01 -04:00
Gabriel Scherer 20cf23e625 document .ocamldebug, the debugger initialization file
For consistency, I also added an "Initialization file" section in the
toplevel manpage.
2016-04-18 11:25:01 -04:00
Damien Doligez df75e7e9de cut overlong lines 2016-02-25 16:51:40 +01:00
Simon Cruanes ea967c3499 add a description of the `-color` flag in the manual and manpage 2016-02-23 09:19:54 -05:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Mark Shinwell 776b489f35 add warning 59 to ocamlc.m 2016-01-14 12:06:12 +00:00
Damien Doligez 6533f3bc06 PR#5995 (cont): add a note saying that you can still pack without -for-pack but exception names will be wrong 2015-12-28 14:23:43 +01:00
alainfrisch dd1f25f172 #7062: document two more command line option for ocamldep in the man page. 2015-12-11 16:04:01 +01:00
alainfrisch a9854a4a3e #5995: document -for-pack as mandatory including in bytecode. This is required to get proper names for exceptions. 2015-12-11 12:58:43 +01:00
alainfrisch 79aa0b5b09 PR#5461, PR#4231: warning 31 (duplicated linking) is now a warn-error by default. 2015-12-09 18:47:47 +01:00
Louis Gesbert 24e42d4d22 Add v=0x400 to OCAMLRUNPARAM to print more Gc stats on exit
In a format following that of Gc.print_stat. I chose to print only the "quick_stat"
values rather than call gc_ctrl.c::heap_stats because it's lighter, and the extra
information is typically not very useful at program exit.

Also adds documentation for the 0x400 flag (in man and Gc module)

This replaces the previous undocumented 0x400 that only displayed the
total (minwords + majwords - prowords) and with a different format,
since keeping both wouldn't provide more information.
2015-12-04 21:09:27 +09:00
Jacques Garrigue ed1c289836 update documentation for ocamldep 2015-12-01 00:54:22 +09:00
Damien Doligez 860c670848 merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +00:00
Leo White 5c55e4cc08 Attach documentation comments to Parsetree
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16189 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-28 13:11:50 +00:00
Damien Doligez 0477bab3bf deduplicate some startup code and fix PR#6808: the parsing of OCAMLRUNPARAM is too lax
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-05-04 15:44:40 +00:00
Gabriel Scherer 41e0ecf2ef PR#6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa
(Peter Zotov)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15828 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-02-08 11:18:29 +00:00