Skip to content

Commit

Permalink
Fixing typos in various files (#2246)
Browse files Browse the repository at this point in the history
Note: Typos found with https://github.com/codespell-project/codespell

Here is the (semi-manual) command used to get (and correct) the typos:

$ codespell -i 3 -w --skip=".png,.gif,./ocaml/boot,./ocaml/.git,./ocaml/manual/styles,./ocaml/manual/manual/htmlman" -L minimise,instal,contructor,"o'caml",cristal,pres,clos,cmo,uint,iff,te,objext,nto,nd,mut,upto,larg,exten,leage,mthod,delte,tim,atleast,langage,hten,iwth,mke,contant,succint,methids,eles,valu,clas,modul,que,classe,missings,froms,defaut,correspondance,differents,configury,reachs,cas,approche,normale,dur,millon,amin,oje,transfert
  • Loading branch information
Fourchaux authored and Armael committed Feb 13, 2019
1 parent 0779456 commit 1946594
Show file tree
Hide file tree
Showing 69 changed files with 120 additions and 120 deletions.
2 changes: 1 addition & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# See the MAPPING AUTHORS section of 'man git-shortlog' for more details.

# Such a remapping may be useful in particular for tracking authorship
# of commits erroneously made under an obscure alias or email adress.
# of commits erroneously made under an obscure alias or email address.
# (Some Name <[email protected]>, pour ne pas le citer)


Expand Down
42 changes: 21 additions & 21 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ OCaml 4.08.0
- GPR#1957: Add Stack.{top_opt,pop_opt} and Queue.{peek_opt,take_opt}.
(Vladimir Keleshev, review by Nicolás Ojeda Bär and Gabriel Scherer)

- GPR#1959: Add Format.dprintf, a printing function which ouputs a closure
- GPR#1959: Add Format.dprintf, a printing function which outputs a closure
usable with %t.
(Gabriel Radanne, request by Armaël Guéneau,
review by Florian Angeletti and Gabriel Scherer)
Expand Down Expand Up @@ -1005,11 +1005,11 @@ OCaml 4.07.0 (10 July 2018)
- GPR#1627: Reduce cmx sizes by sharing variable names (Flambda only).
(Fuyong Quah, Leo White, review by Xavier Clerc)

- GPR#1665: reduce the size of cmx files in classic mode by droping the
- GPR#1665: reduce the size of cmx files in classic mode by dropping the
bodies of functions that will not be inlined.
(Fuyong Quah, review by Leo White and Pierre Chambart)

- GPR#1666: reduce the size of cmx files in classic mode by droping the
- GPR#1666: reduce the size of cmx files in classic mode by dropping the
bodies of functions that cannot be reached from the module block.
(Fuyong Quah, review by Leo White and Pierre Chambart)

Expand Down Expand Up @@ -1825,7 +1825,7 @@ OCaml 4.06.0 (3 Nov 2017):

* MPR#7478, GPR#1037: ocamldoc, do not use as a module preamble documentation
comments that occur after the first module element. This change may break
existing documenation. In particular, module preambles must now come before
existing documentation. In particular, module preambles must now come before
any `open` statement.
(Florian Angeletti, review by David Allsopp and report by Daniel Bünzli)

Expand Down Expand Up @@ -3471,7 +3471,7 @@ OCaml 4.03.0 (25 Apr 2016):
this is the semantics they wanted).
(Alain Frisch, request by Martin Jambon and John Whitington)

- PR#6920: fix debug informations around uses of %apply or %revapply
- PR#6920: fix debug information around uses of %apply or %revapply
(Jérémie Dimino, report by Daniel Bünzli)

- PR#6939: Segfault with improper use of let-rec
Expand Down Expand Up @@ -4067,7 +4067,7 @@ OCaml 4.03.0 (25 Apr 2016):
- PR#6980: Assert failure from polymorphic variants and existentials
(Jacques Garrigue, report by Leo White)

- PR#6981: Ctype.Unify(_) with associated functor arg refering to previous one
- PR#6981: Ctype.Unify(_) with associated functor arg referring to previous one
(Jacques Garrigue, report by Nicholas Labich)

- PR#6982: unexpected type error when packing a module alias
Expand Down Expand Up @@ -4183,7 +4183,7 @@ OCaml 4.03.0 (25 Apr 2016):
(Jacques Garrigue, report by Stephen Dolan)

- PR#7324: OCaml 4.03.0 type checker dies with an assert failure when
given some cyclic recusive module expression
given some cyclic recursive module expression
(Jacques Garrigue, report by jmcarthur)

- PR#7368: Manual major GC fails to compact the heap
Expand Down Expand Up @@ -4256,7 +4256,7 @@ OCaml 4.03.0 (25 Apr 2016):
- PR#6367, GPR#25: introduce Asttypes.arg_label to encode labelled arguments
(Frédéric Bour and Jacques Garrigue)

- PR#6452, GPR#140: add internal suport for custom printing formats
- PR#6452, GPR#140: add internal support for custom printing formats
(Jérémie Dimino)

- PR#6611: remove the option wrapper on optional arguments in the syntax tree
Expand All @@ -4279,7 +4279,7 @@ OCaml 4.03.0 (25 Apr 2016):
(Simon Cruanes)

* PR#6816: reject integer and float literals directly followed by an identifier.
This was prevously read as two separate tokens.
This was previously read as two separate tokens.
[let abc = 1 in (+) 123abc] was accepted and is now rejected.
(Hugo Heuzard)

Expand Down Expand Up @@ -4618,7 +4618,7 @@ Bug fixes:
(Stephen Dolan, Mark Shinwell)

Feature wishes:
- PR#6452, GPR#140: add internal suport for custom printing formats
- PR#6452, GPR#140: add internal support for custom printing formats
(Jérémie Dimino)
- PR#6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib
(whitequark)
Expand Down Expand Up @@ -4885,7 +4885,7 @@ Bug fixes:
(Jacques Garrigue and John Whitington)
- PR#6174: OCaml compiler loops on an example using GADTs (-rectypes case)
(Jacques Garrigue and Grégoire Henry, report by Chantal Keller)
- PR#6175: open! was not suppored by camlp4
- PR#6175: open! was not supported by camlp4
(Hongbo Zhang)
- PR#6184: ocamlbuild: `ocamlfind ocamldep` does not support -predicate
(Jacques-Pascal Deplaix)
Expand Down Expand Up @@ -5216,7 +5216,7 @@ Bug fixes:
(Damien Doligez, report by Markus Mottl)
* PR#5580: missed opportunities for constant propagation
(Xavier Leroy and John Carr)
- PR#5611: avoid clashes betwen .cmo files and output files during linking
- PR#5611: avoid clashes between .cmo files and output files during linking
(Wojciech Meyer)
- PR#5662: typo in md5.c
(Olivier Andrieu)
Expand All @@ -5230,7 +5230,7 @@ Bug fixes:
(Fabrice Le Fessant)
- PR#5697: better location for warnings on statement expressions
(Dan Bensen)
- PR#5698: remove harcoded limit of 200000 labels in emitaux.ml
- PR#5698: remove hardcoded limit of 200000 labels in emitaux.ml
(Fabrice Le Fessant, report by Marcin Sawicki)
- PR#5702: bytecomp/bytelibrarian lib_sharedobjs was defined but never used
(Hongbo Zhang, Fabrice Le Fessant)
Expand Down Expand Up @@ -5303,7 +5303,7 @@ Bug fixes:
- PR#5824: Generate more efficient code for immediate right shifts.
(Pierre Chambart, review by Xavier Leroy)
- PR#5825: Add a toplevel primitive to use source file wrapped with the
coresponding module
corresponding module
(Grégoire Henry, Wojciech Meyer, caml-list discussion)
- PR#5833: README.win32 can leave the wrong flexlink in the path
(Damien Doligez, report by William Smith)
Expand All @@ -5323,7 +5323,7 @@ Bug fixes:
(Alain Frisch, Gabriel Scherer, report by Julien Moutinho)
- PR#5877: multiple "open" can become expensive in memory
(Fabrice Le Fessant and Alain Frisch)
- PR#5880: 'Genlex.make_lexer' documention mentions the wrong exception
- PR#5880: 'Genlex.make_lexer' documentation mentions the wrong exception
(Xavier Clerc, report by Virgile Prevosto)
- PR#5885: Incorrect rule for compiling C stubs when shared libraries are not
supported.
Expand Down Expand Up @@ -5572,7 +5572,7 @@ Native-code compiler:
OCamldoc:
- PR#5645: ocamldoc doesn't handle module/type substitution in signatures
- PR#5544: improve HTML output (less formatting in html code)
- PR#5522: allow refering to record fields and variant constructors
- PR#5522: allow referring to record fields and variant constructors
- fix PR#5419 (error message in french)
- fix PR#5535 (no cross ref to class after dump+load)
* Use first class modules for custom generators, to be able to
Expand Down Expand Up @@ -6470,7 +6470,7 @@ Standard library:
and prints nothing (useful to print conditionally).
- Scanf:
new function format_from_string to convert a string to a format string;
new %r conversion to accomodate user defined scanners.
new %r conversion to accommodate user defined scanners.
- Filename: improved Win32 implementation of Filename.quote.
- List: List.nth now tail-recursive.
- Sys: added Sys.is_directory. Some functions (e.g. Sys.command) that
Expand Down Expand Up @@ -7490,7 +7490,7 @@ Both compilers:
- Option -warn-error to turn warnings into errors.
- Option -where to print the location of the standard library directory.
- Assertions are now type-checked even if the -noassert option is given,
thus -noassert can no longe change the types of modules.
thus -noassert can no longer change the types of modules.

Bytecode compiler and bytecode interpreter:
- Print stack backtrace when a program aborts due to an uncaught exception
Expand All @@ -7508,7 +7508,7 @@ Native-code compiler:
- Removed spurious dependency on the -lcurses library.

Toplevel environment:
- Revised handling of top-level value definitions, allows reclaimation
- Revised handling of top-level value definitions, allows reclamation
of definitions that are shadowed by later definitions with the same names.
(E.g. "let x = <big list>;; let x = 1;;" allows <big list> to be reclaimed.)
- Revised the tracing facility so that for standard library functions,
Expand Down Expand Up @@ -8274,7 +8274,7 @@ Objective Caml 1.03 (29 Oct 1996):
exp() or log() cause a domain error; fixed bug with
String.length "literal";
- Sparc, Mips, HPPA: removed marking of scanned stack frames
(benefits do not outweight cost).
(benefits do not outweigh cost).

* Standard library:
- Arg.parse now prints documentation for command-line options;
Expand Down Expand Up @@ -8434,7 +8434,7 @@ marshaling to/from strings.

* Thread library: much better support for I/O and blocking system calls.

* Graphics library: faster reclaimation of unused pixmaps.
* Graphics library: faster reclamation of unused pixmaps.

* Unix library: new functions {set,clear}_nonblock, {set,clear}_close_on_exec,
{set,get}itimer, inet_addr_any, {get,set}sockopt.
Expand Down
2 changes: 1 addition & 1 deletion asmcomp/CSEgen.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type op_class =
| Op_other (* anything else that does not allocate nor store in memory *)

class cse_generic : object
(* The following methods can be overriden to handle processor-specific
(* The following methods can be overridden to handle processor-specific
operations. *)

method class_of_operation: Mach.operation -> op_class
Expand Down
2 changes: 1 addition & 1 deletion asmcomp/compilenv.mli
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ val record_global_approx_toplevel: unit -> unit
clambda-only *)

val set_export_info: Export_info.t -> unit
(* Record the informations of the unit being compiled
(* Record the information of the unit being compiled
flambda-only *)
val approx_env: unit -> Export_info.t
(* Returns all the information loaded from external compilation units
Expand Down
6 changes: 3 additions & 3 deletions build-aux/libtool.m4
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
# LT_OUTPUT
# ---------
# This macro allows early generation of the libtool script (before
# AC_OUTPUT is called), incase it is used in configure for compilation
# AC_OUTPUT is called), in case it is used in configure for compilation
# tests.
AC_DEFUN([LT_OUTPUT],
[: ${CONFIG_LT=./config.lt}
Expand Down Expand Up @@ -651,7 +651,7 @@ configured by $[0], generated by m4_PACKAGE_STRING.
Copyright (C) 2011 Free Software Foundation, Inc.
This config.lt script is free software; the Free Software Foundation
gives unlimited permision to copy, distribute and modify it."
gives unlimited permission to copy, distribute and modify it."
while test 0 != $[#]
do
Expand Down Expand Up @@ -2866,7 +2866,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
# before this can be enabled.
hardcode_into_libs=yes
# Ideally, we could use ldconfig to report *all* directores which are
# Ideally, we could use ldconfig to report *all* directories which are
# searched for libraries, however this is still not possible. Aside from not
# being certain /sbin/ldconfig is available, command
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Expand Down
10 changes: 5 additions & 5 deletions build-aux/ltmain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func_require_term_colors ()

# _G_HAVE_PLUSEQ_OP
# Can be empty, in which case the shell is probed, "yes" if += is
# useable or anything else if it does not work.
# usable or anything else if it does not work.
test -z "$_G_HAVE_PLUSEQ_OP" \
&& (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
&& _G_HAVE_PLUSEQ_OP=yes
Expand Down Expand Up @@ -696,7 +696,7 @@ eval 'func_dirname ()
# to NONDIR_REPLACEMENT.
# value returned in "$func_dirname_result"
# basename: Compute filename of FILE.
# value retuned in "$func_basename_result"
# value returned in "$func_basename_result"
# For efficiency, we do not delegate to the functions above but instead
# duplicate the functionality here.
eval 'func_dirname_and_basename ()
Expand Down Expand Up @@ -854,7 +854,7 @@ func_mkdir_p ()
# While some portion of DIR does not yet exist...
while test ! -d "$_G_directory_path"; do
# ...make a list in topmost first order. Use a colon delimited
# list incase some portion of path contains whitespace.
# list in case some portion of path contains whitespace.
_G_dir_list=$_G_directory_path:$_G_dir_list

# If the last portion added has no slash in it, the list is done
Expand Down Expand Up @@ -1630,7 +1630,7 @@ func_run_hooks ()

case " $hookable_fns " in
*" $1 "*) ;;
*) func_fatal_error "'$1' does not support hook funcions.n" ;;
*) func_fatal_error "'$1' does not support hook functions.n" ;;
esac

eval _G_hook_fns=\$$1_hooks; shift
Expand Down Expand Up @@ -5961,7 +5961,7 @@ EOF
{
/* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
namespace, but it is not one of the ones we know about and
have already dealt with, above (inluding dump-script), then
have already dealt with, above (including dump-script), then
report an error. Otherwise, targets might begin to believe
they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
namespace. The first time any user complains about this, we'll
Expand Down
2 changes: 1 addition & 1 deletion bytecomp/instruct.ml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ type instruction =
let immed_min = -0x40000000
and immed_max = 0x3FFFFFFF

(* Actually the abstract machine accomodates -0x80000000 to 0x7FFFFFFF,
(* Actually the abstract machine accommodates -0x80000000 to 0x7FFFFFFF,
but these numbers overflow the OCaml type int if the compiler runs on
a 32-bit processor. *)
2 changes: 1 addition & 1 deletion bytecomp/lambda.ml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ exception Not_simple
let max_raw = 32

let make_key e =
let count = ref 0 (* Used for controling size *)
let count = ref 0 (* Used for controlling size *)
and make_key = Ident.make_key_generator () in
(* make_key is used for normalizing let-bound variables *)
let rec tr_rec env e =
Expand Down
6 changes: 3 additions & 3 deletions bytecomp/matching.ml
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ let rebuild_nexts arg nexts k =
in actions (cf. simplify_cases).
Additionally, if the match argument is a variable, matchings whose
first column is made of variables only are splitted further
first column is made of variables only are split further
(cf. precompile_var).
*)
Expand Down Expand Up @@ -1067,7 +1067,7 @@ and precompile_var args cls def k = match args with
| [] -> assert false
| _::((Lvar v as av,_) as arg)::rargs ->
begin match cls with
| [_] -> (* as splitted as it can *)
| [_] -> (* as split as it can *)
dont_precompile_var args cls def k
| _ ->
(* Precompile *)
Expand Down Expand Up @@ -2523,7 +2523,7 @@ let rec event_branch repr lam =
compile_list (for compiling switch results) catch Unused
comp_match_handlers (for compiling splitted matches)
comp_match_handlers (for compiling split matches)
may reraise Unused
Expand Down
2 changes: 1 addition & 1 deletion bytecomp/switch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ end
Adaptation of
R.L. Berstein
``Producing good code for the case statement''
Sofware Practice and Experience, 15(10) (1985)
Software Practice and Experience, 15(10) (1985)
and
D.L. Spuler
``Two-Way Comparison Search Trees, a Generalisation of Binary Search Trees
Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,7 @@ case $host in #(
syslib='-l$(1)' ;;
esac

# Environment variables that are taken into acocunt
# Environment variables that are taken into account



Expand Down Expand Up @@ -11129,7 +11129,7 @@ fi
# before this can be enabled.
hardcode_into_libs=yes

# Ideally, we could use ldconfig to report *all* directores which are
# Ideally, we could use ldconfig to report *all* directories which are
# searched for libraries, however this is still not possible. Aside from not
# being certain /sbin/ldconfig is available, command
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Expand Down Expand Up @@ -13270,7 +13270,7 @@ $as_echo "$ac_cv_c_bigendian" >&6; }

;; #(
*)
as_fn_error $? "could not determine endiannes." "$LINENO" 5 ;;
as_fn_error $? "could not determine endianness." "$LINENO" 5 ;;
esac


Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ AS_CASE([$host],
outputexe='-o $(EMPTY)'
syslib='-l$(1)'])

# Environment variables that are taken into acocunt
# Environment variables that are taken into account

AC_ARG_VAR([AS], [which assembler to use])
AC_ARG_VAR([ASPP], [which assembler (with preprocessor) to use])
Expand Down Expand Up @@ -677,7 +677,7 @@ AC_MSG_NOTICE([Target is a $bits bits architecture])
AC_C_BIGENDIAN(
[AC_DEFINE([ARCH_BIG_ENDIAN], [1])],
[],
[AC_MSG_ERROR([could not determine endiannes.])],
[AC_MSG_ERROR([could not determine endianness.])],
[AC_MSG_ERROR([unable to handle universal endianness])]
)

Expand Down
2 changes: 1 addition & 1 deletion debugger/command_line.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ With no argument, reset the search path." };
"exit the debugger." };
{ instr_name = "shell"; instr_prio = false;
instr_action = instr_shell; instr_repeat = true; instr_help =
"Execute a given COMMAND thru the system shell." };
"Execute a given COMMAND through the system shell." };
{ instr_name = "environment"; instr_prio = false;
instr_action = instr_env; instr_repeat = false; instr_help =
"environment variable to give to program being debugged when it is started." };
Expand Down
2 changes: 1 addition & 1 deletion debugger/time_travel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ let duplicate_current_checkpoint () =
(* --- about this exception. *)
let interrupted = ref false

(* Informations about last breakpoint encountered *)
(* Information about last breakpoint encountered *)
let last_breakpoint = ref None

(* Ensure we stop on an event. *)
Expand Down
Loading

0 comments on commit 1946594

Please sign in to comment.