ocaml/testsuite/tests/utils
Gabriel Scherer 9d81d6a10e new Misc.Magic_number module for magic number handling
This module was originally inspired by js_of_ocaml Misc.MagicNumber module
https://github.com/ocsigen/js_of_ocaml/blob/151b811/compiler/util.cppo.ml#L277-L347

It provides parsing and validation function for magic numbers, that
can tell the difference between "not a valid magic number" and "a
valid magic number, but with another version", and print user-friendly
user messages about it.

It does not contain any knowledge for where to find the magic number
in an OCaml file (this depends on the file format); the parsing
function should be called with an input channel already at the right
position for whichever format is expect.
2019-12-03 00:08:29 +01:00
..
edit_distance.ml s/string_of_int/Int.to_string/g 2018-11-07 13:52:02 +01:00
edit_distance.reference make it work also on 32-bit machines 2013-04-13 20:24:06 +00:00
magic_number.ml new Misc.Magic_number module for magic number handling 2019-12-03 00:08:29 +01:00
overflow_detection.ml s/string_of_int/Int.to_string/g 2018-11-07 13:52:02 +01:00
overflow_detection.reference More robust implementation of Misc.no_overflow_mul (#1520) 2017-12-20 16:45:39 +01:00
test_strongly_connected_components.ml s/string_of_int/Int.to_string/g 2018-11-07 13:52:02 +01:00
test_strongly_connected_components.reference Fix merge problems 2016-01-12 16:29:22 +01:00