package opam-core
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Core library for opam 2.1
Install
dune-project
Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
2.1.0-beta4.tar.gz
md5=c8b674ab0803330a1daaa241b067c7e3
sha512=d9ee987a173a013a40a2ab1765f7e2d71bdc1b191e868ec99f4b60e9b6792b1850894a484b9770ae7fb4a540a9fd3f2417506701924f45430a2a31125ba5784f
doc/src/opam-core/opamCompat.ml.html
Source file opamCompat.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128(**************************************************************************) (* *) (* Copyright 2018-2020 OCamlPro *) (* *) (* All rights reserved. This file is distributed under the terms of the *) (* GNU Lesser General Public License version 2.1, with the special *) (* exception on linking described in the file LICENSE. *) (* *) (**************************************************************************) module String = #if OCAML_VERSION >= (4, 3, 0) String #else struct include String let lowercase_ascii = lowercase let uppercase_ascii = uppercase let capitalize_ascii = capitalize end #endif module Char = #if OCAML_VERSION >= (4, 3, 0) Char #else struct include Char let lowercase_ascii = lowercase end #endif module Printexc = #if OCAML_VERSION >= (4, 5, 0) Printexc #else struct include Printexc let raise_with_backtrace e _bt = raise e end #endif module Unix = #if OCAML_VERSION >= (4, 6, 0) Unix #else struct include Unix let map_file = Bigarray.Genarray.map_file end #endif module Uchar = #if OCAML_VERSION >= (4, 3, 0) Uchar #else struct type t = int let of_int i = i external to_int : t -> int = "%identity" end #endif module Buffer = #if OCAML_VERSION >= (4, 6, 0) Buffer #else struct include Buffer let add_utf_8_uchar b u = match Uchar.to_int u with | u when u < 0 -> assert false | u when u <= 0x007F -> add_char b (Char.unsafe_chr u) | u when u <= 0x07FF -> add_char b (Char.unsafe_chr (0xC0 lor (u lsr 6))); add_char b (Char.unsafe_chr (0x80 lor (u land 0x3F))) | u when u <= 0xFFFF -> add_char b (Char.unsafe_chr (0xE0 lor (u lsr 12))); add_char b (Char.unsafe_chr (0x80 lor ((u lsr 6) land 0x3F))); add_char b (Char.unsafe_chr (0x80 lor (u land 0x3F))) | u when u <= 0x10FFFF -> add_char b (Char.unsafe_chr (0xF0 lor (u lsr 18))); add_char b (Char.unsafe_chr (0x80 lor ((u lsr 12) land 0x3F))); add_char b (Char.unsafe_chr (0x80 lor ((u lsr 6) land 0x3F))); add_char b (Char.unsafe_chr (0x80 lor (u land 0x3F))) | _ -> assert false end #endif module Filename = #if OCAML_VERSION >= (4, 4, 0) Filename #else struct include Filename let extension fn = match Filename.chop_extension fn with | base -> let l = String.length base in String.sub fn l (String.length fn - l) | exception Invalid_argument _ -> "" end #endif module Result = #if OCAML_VERSION >= (4, 8, 0) Result #else struct type ('a, 'e) t #if OCAML_VERSION >= (4, 3, 0) = ('a, 'e) result #endif = Ok of 'a | Error of 'e end #endif #if OCAML_VERSION < (4, 7, 0) module Stdlib = Pervasives #endif
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>