<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ocaml.git/utils/misc.ml, branch atomic_write_cmi</title>
<subtitle>github.com: ocaml/ocaml
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/'/>
<entry>
<title>Create .annot and .cmt files atomically, like .cmi files</title>
<updated>2017-09-01T15:26:00+00:00</updated>
<author>
<name>Xavier Leroy</name>
<email>xavier.leroy@inria.fr</email>
</author>
<published>2017-09-01T15:26:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=e42fc077879a48c8bd4d1d54b2702e1dba989303'/>
<id>e42fc077879a48c8bd4d1d54b2702e1dba989303</id>
<content type='text'>
Follow-up to MPR#7472.  The pattern "write to temporary file then rename"
is abstracted in the new function Misc.output_to_file_via_temporary
and applied to .cmi, .cmt and .annot files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow-up to MPR#7472.  The pattern "write to temporary file then rename"
is abstracted in the new function Misc.output_to_file_via_temporary
and applied to .cmi, .cmt and .annot files.
</pre>
</div>
</content>
</entry>
<entry>
<title>Typos and basic grammar error fixing (#1280)</title>
<updated>2017-08-10T10:59:23+00:00</updated>
<author>
<name>Fourchaux</name>
<email>jprodi04@gmail.com</email>
</author>
<published>2017-08-10T10:59:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=72cfdd56e9459af07731451c4c10ae0ec2c6d877'/>
<id>72cfdd56e9459af07731451c4c10ae0ec2c6d877</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Optimize away some physical equality (#850)</title>
<updated>2017-08-01T07:04:03+00:00</updated>
<author>
<name>Pierre Chambart</name>
<email>chambart@users.noreply.github.com</email>
</author>
<published>2017-08-01T07:04:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=177713ec025cc49eabd7a95ab6d6aaa127d34c81'/>
<id>177713ec025cc49eabd7a95ab6d6aaa127d34c81</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Respect OCAML_COLOR environment variable for deciding whether to use colors</title>
<updated>2017-03-15T08:24:13+00:00</updated>
<author>
<name>Hannes Mehnert</name>
<email>hannes@mehnert.org</email>
</author>
<published>2017-03-11T11:38:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=76bf7c568e7997efd1a80073782f0eddfb2cecaa'/>
<id>76bf7c568e7997efd1a80073782f0eddfb2cecaa</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Wrap hook exceptions and have them printed with the standard mechanism instead of stopping the process.</title>
<updated>2016-07-12T16:10:08+00:00</updated>
<author>
<name>alainfrisch</name>
<email>alain@frisch.fr</email>
</author>
<published>2016-07-05T07:39:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=d9f43d733ee9765e955abc5b24b2c6dc20f2c4fc'/>
<id>d9f43d733ee9765e955abc5b24b2c6dc20f2c4fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add hooks on some compilation phases</title>
<updated>2016-07-12T15:59:58+00:00</updated>
<author>
<name>Fabrice Le Fessant</name>
<email>fabrice.le_fessant@ocamlpro.com</email>
</author>
<published>2016-06-29T15:13:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=bfc36003aa75d049942f9ef368c35a0bf6e9f8d9'/>
<id>bfc36003aa75d049942f9ef368c35a0bf6e9f8d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Misc.Stdlib.String.split -&gt; String.split_on_char.</title>
<updated>2016-07-11T13:01:32+00:00</updated>
<author>
<name>alainfrisch</name>
<email>alain@frisch.fr</email>
</author>
<published>2016-07-11T13:01:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=19d513466ec1cc36c79e156ecad9b91c63d88c2f'/>
<id>19d513466ec1cc36c79e156ecad9b91c63d88c2f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Misc.split -&gt; String.split_on_char.</title>
<updated>2016-07-11T12:55:40+00:00</updated>
<author>
<name>alainfrisch</name>
<email>alain@frisch.fr</email>
</author>
<published>2016-07-11T12:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=15e83644b553f872b14faa6160f013418ad0dbd7'/>
<id>15e83644b553f872b14faa6160f013418ad0dbd7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Filename.extension and Filename.remove_extension.</title>
<updated>2016-07-09T22:16:48+00:00</updated>
<author>
<name>alainfrisch</name>
<email>alain@frisch.fr</email>
</author>
<published>2016-07-06T22:12:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=aa4f427591f3c283403053f83c0f961532872f65'/>
<id>aa4f427591f3c283403053f83c0f961532872f65</id>
<content type='text'>
The definition was suggested by Daniel Bunzli. It considers
that ".", "..", ".foo" all have an empty extension.

This commit also fixes chop_extension to align with this definition
and adds remove_extension which behaves as chop_extension but
does not fail when the extension is empty.

There used to be a Misc.chop_extension_if_any in the compiler code base.
The commit also replaces it with the new Filename.remove_extension.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The definition was suggested by Daniel Bunzli. It considers
that ".", "..", ".foo" all have an empty extension.

This commit also fixes chop_extension to align with this definition
and adds remove_extension which behaves as chop_extension but
does not fail when the extension is empty.

There used to be a Misc.chop_extension_if_any in the compiler code base.
The commit also replaces it with the new Filename.remove_extension.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix embarrassing bug in Misc.Stdlib.String.split properly</title>
<updated>2016-03-17T10:37:49+00:00</updated>
<author>
<name>Mark Shinwell</name>
<email>mshinwell@gmail.com</email>
</author>
<published>2016-03-17T10:37:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=391d7f05a9b0f7e5a02b9e569f2328ce7b333c69'/>
<id>391d7f05a9b0f7e5a02b9e569f2328ce7b333c69</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
