Commit Graph

573 Commits (84304a3282fc5be31f657e0de9c8ff305efc4789)

Author SHA1 Message Date
Jeremie Dimino 84304a3282 Core review work
- Apply the __ heuristic more systematically
- Update tests
- Fix Windows builds
2018-02-12 08:29:17 +00:00
octachron 8f2a15369f Factorize the build of the unprefixed stdlib
which is used by both ocamldoc and the reference manual.
2018-02-12 08:29:16 +00:00
octachron e95b0c4769 Minimal fix for the manual build pocess 2018-02-12 08:29:16 +00:00
David Allsopp 5e35fd0418 Alter awk scripts to cope with CRLF checkout 2018-02-12 08:29:16 +00:00
David Allsopp 4d79045d95 Use gawk on Windows in the build system
awk is symbolic link in Cygwin, which means it can't be used in -pp for
a native Windows build. Just use gawk instead, as no other package
provides the awk command on Cygwin.
2018-02-12 08:29:16 +00:00
Jeremie Dimino 225d1c65b9 Prefix the compilation unit names of all modules in the stdlib
Except for the Camlinternal* modules and the new Stdlib module, all
modules in the stdlib now compile to Stdlib__<module>.

Pervasives is renamed to Stdlib and now contains a list of aliases
from the long names to the short ones, so that from inside and outside
the stdlib we can refer to the standard modules as just List or
Stdlib.List rather than Stdlib__list.

In order to avoid printing the long names in error messages and in the
toplevel, the following heuristic is added to Printtyp: given a path
Foo__bar, if Foo.Bar exists and is a direct or indirect alias to
Foo__bar, then prefer Foo.Bar.

A bootstrap step was required to replace Pervasives by Stdlib as the
module opened by default.
2018-02-12 08:29:16 +00:00
Gabriel Scherer cc5b7ef6be make alldepend 2018-02-05 19:30:48 +01:00
Jérémie Dimino 49f6dd5d20
Allow compilation units to shadow sub-modules of Pervasives (#1513) 2018-02-02 10:44:23 +00:00
Florian Angeletti c0ded0eabe Ocamldoc, latex backend: labels for exception (#1457)
This commit fixes the lack of label for exception definition in the latex
backend of ocamldoc.
2017-10-28 21:07:32 +02:00
Xavier Leroy 875ff82841 MPR#7048: ocamldoc -latex, don't escape Latin-1 accented letters (GPR#1420)
This causes trouble when the doc comments are actually in UTF8 and
the user is providing their own preamble with an UTF8 inputenc.

The default preamble still contains \usepackage[latin1]{inputenc},
so the Latin-1 accents will still display fine.
2017-10-09 19:18:28 +02:00
Xavier Leroy 801993dc8d GPR#931 follow-up: problem with remove_DEBUG sed script under OpenBSD
On OpenBSD this script removes the newline at the end of each line
that is transformed.  If the next line is a `# lineno "filename"`
directive, a syntax error occurs.

This commit changes the script to use a sed 's' command instead of a
'c' command.  This restores the expected behavior under OpenBSD and
seems to make no difference for other systems.
2017-10-07 15:52:07 +02:00
octachron 9c8ac99009 fix few documentation headers 2017-10-04 13:05:05 +02:00
octachron e5715c7bf5 PR#7363: add a texinfo title option to ocamldoc 2017-10-04 13:05:05 +02:00
octachron e30e82a219 PR#7363: start documentation headers at {1 2017-10-04 13:05:05 +02:00
octachron 03e1a93f0b PR#7363, ocamldoc: implicit level 0 for titles
This commit makes the heading hierarchy of ocamldoc start at {0 rather
than {1. This level {0 should be reserved for global titles, freeing
the use of {1 for normal subtitles.
2017-10-03 23:29:50 +02:00
Gabriel Scherer 6550a30719 safe-string: clarify the relation between configure- and compile-time options 2017-10-02 14:42:19 +02:00
octachron 9593af586f ocamldoc html: add missing id to signature items
This commit adds a new id to classes, modules and module types.
The class id replaces the preexisting name attribute that was intended
to be an id attribute.
2017-09-30 20:10:27 +02:00
Leo White 5cb27d8ebb Merge pull request #792 from sliquister/generalize-destr-subst2
Fixing the limitations on destructive substitutions
2017-09-15 09:29:29 +01:00
Xavier Leroy 967ff73a61 Remove otherlibs/num
Continuing a general effort, this commit removes the "num" library for arbitrary-precision arithmetic from the core OCaml system.  A standalone distribution of this library already exists and is hosted at https://github.com/ocaml/num
2017-08-19 10:03:00 +02:00
Fourchaux 72cfdd56e9 Typos and basic grammar error fixing (#1280) 2017-08-10 11:59:23 +01:00
Valentin Gatien-Baron 45f21c6d2b Teach Changes, ocamldoc and the manual about deep destructive substitutions 2017-08-01 07:40:14 -04:00
Valentin Gatien-Baron ff05023fde Support syntax: S with module M.N := .. 2017-08-01 07:40:01 -04:00
Valentin Gatien-Baron f29cd5ab6d Support syntax: S with M.N.t := ... 2017-08-01 07:32:08 -04:00
octachron e5f94ee9d4 Factorize first comment before elements code 2017-07-31 23:01:02 +02:00
octachron cc27e58ea2 PR#7478: ocamldoc, avoid module preambule repetion
To avoid module preamble repetition, ocamldoc only use as a module
preamble documentation comments that occur before any module elements,
which should also prevent some unexpected module preamble when the first
documentation comments appears in the middle of the source file.
2017-07-31 23:01:02 +02:00
Gabriel Scherer aa6b5b96a5 Merge pull request #1118 from objmagic/object-inherit
Support inherited field in object type expression
2017-07-28 07:47:53 +02:00
Olaf Hering aefcb6d777 MPR#7281: fix .TH macros in generated manpages
The troff .TH macro takes up to three extra args, according to the
groff documentation at gnu.org. ocamldoc inserts a fourth argument
"source:". Remove the extra argument. Fixes commit a87c3f20e
("Enable ocamldoc to build reproducible manpages")

Without this change the header/footer of each ocaml manpage is
broken. Example: the date should be in the middle of footer,
instead of the left side. The string "source:" should not be shown
at all. No other manpage has such string.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2017-07-24 16:40:43 +02:00
Runhang Li c39b975d43 merge trunk and update test 2017-07-23 09:31:58 +08:00
Alain Frisch fd47ba9649 Support 'let open' in class and class type expressions (#1249)
* Support 'let open' in class and class type expressions.

* Adapt ocamlprof.

* Adapt ocamldoc.

* Add tests.

* Changelog.

* Manual.
2017-07-20 08:17:30 +02:00
Runhang Li bc32e7a52d
Merge branch 'trunk' into object-inherit 2017-05-22 16:32:24 -07:00
Florian Angeletti a65ce51ace Ocamldoc: end latex files with a new line (#1159) 2017-05-04 15:26:10 +01:00
Sébastien Hinderer 40fcbb5f0a Move configuration header files from the config to the byterun/caml directory
This commit moves:
  - config/m.h to byterun/caml/m.h
  - config/s.h to byterun/caml/s.h

Consequently, m.h and s.h now get installed alongside other
OCaml header files.

This commit also updates the .depend files, introducing updates in the
dependencies which are not consequences of this commit itself.
2017-04-26 19:28:17 +02:00
octachron f7ed665b3c ocamldoc: avoid nested <pre> in module description 2017-04-04 13:27:45 +02:00
Runhang Li edfb8afb0e
Missing arrow. 2017-03-28 22:10:12 -07:00
Runhang Li f7283dafb0
Update ocamldoc tests
Also add test for polymorphic variants.
2017-03-28 21:49:36 -07:00
alainfrisch 0ab1339576 Fix ocamldoc. 2017-03-24 14:24:36 +01:00
Runhang Li 04f05bba64
Remove message. 2017-03-22 22:32:30 -07:00
Runhang Li 864b3b735e
Merge branch 'trunk' into object-inherit 2017-03-22 22:13:06 -07:00
Mark Li 9dc86f8417
Support inherited field in object type expression.
Also add location on object field label and polymorphic variant tags.
2017-03-22 21:47:34 -07:00
octachron d069dbe585 MPR#7352,7353: ocamldoc, better paragraphs in html 2017-03-15 19:55:37 +01:00
octachron 9d97673b9f PR#7351: ocamldoc html, use tags rather than <br>
This commit replaces most of the use of <br> tags in ocamldoc html
backend by more meaningful tags, in order to improve the themability
of the generated html code.
2017-03-15 15:26:56 +01:00
Pierre Boutillier bb27a9803b Ocamldoc: no -title, no empty <h1> in html 2017-03-12 13:35:16 -04:00
Sébastien Hinderer 9e81b0fb4b Update .depend files 2017-03-09 17:12:02 +01:00
Gabriel Scherer 13205fca1d Merge pull request #1085 from Octachron/ocamldoc_self_alias_loop
PR#7331: ocamldoc, avoid self-alias induced infinite loop
2017-03-08 07:49:23 -05:00
Gabriel Scherer 6e94a853de Merge pull request #862 from gasche/PR7037-input_name-in-Pparse
MPR#7037: fix erroneous Location.input_name setting in Pparse.file
2017-03-08 07:41:15 -05:00
sliquister 356d8a9c0c Changing the display of fatal warnings (#948) 2017-03-08 09:16:01 +00:00
Gabriel Scherer a62dd60dee Merge pull request #1040 from dhekir/trunk
fix several typos in comments
2017-02-22 20:26:50 -05:00
octachron 9fc48c62d3 PR#7488: wrong Latex output for variant types 2017-02-19 09:11:15 +00:00
octachron f6736c18ce Update ocamldoc .depend 2017-02-18 08:32:27 +01:00
octachron d377bce541 Update ocamldoc Makefile 2017-02-18 08:32:03 +01:00