Antonin Décimo

Results 157 issues of Antonin Décimo

The code is currently correct since we use wrap-around semantics for signed integers (`-fwrapv`), but: - it's difficult to communicate that fact to static analyzers, which warn when computing the...

Some cleanups removing checks and workarounds for older compilers, assuming that the compiler supports C11 or C++11 out of the box. We may use [`_Alignas` (since C11) or `alignas` (since...

`getaddrinfo` ([POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html), [Windows](https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) errors are not set into `errno`, but returned to the caller. The implementation of [`Unix.getaddrinfo`](https://github.com/ocaml/ocaml/blob/1a798642c364d2e867696391755d071c6ece7819/otherlibs/unix/getaddrinfo.c) doesn't report errors to the OCaml side and returns an empty list...

Stale

I noticed that the `CPPFLAGS` and `CFLAGS` were not being passed when building Flexdll's C files, but they introduce problems when building OCaml 4.06 and 4.07 (explanation from David Allsopp):...

I noticed that the Lwt documentation has doc comments like this: There are straightforward ways to make promises canceled. One could create a promise that {e starts out} canceled, with...

parser
enhancement

The Lwt documentation has snippets such as: - {{: #3_Quickstart} Quick start} links these concepts to actual functions in Lwt – the most fundamental ones. .... {3 Quick start} or...

stale

dune configurator [has this code](https://github.com/ocaml/dune/blob/main/otherlibs/configurator/src/v1.mli): ```ocaml module V1 : sig type t module Pkg_config : sig type configurator = t type t (** Search pkg-config in the PATH. Returns [None]...

stale

Considering a polymorphic variant type: ```ocaml type switch = [`On; `Off] ``` I'd like to be able to refer to the constructors in the documentation. It could be doable if...

cross-referencer
enhancement

The opam files were using old declarations of Dune build and missed the dependency on `result`. We can safely update to Dune 3.0 and OCaml 4.08 to fix these for...