This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Ctypes | |
include Sys_socket_types.SaFamily | |
include Sys_socket_stubs.Def(Sys_socket_generated_stubs) | |
type socklen = Types.socklen | |
let socklen_t = Types.socklen_t | |
let int_of_socklen = Types.int_of_socklen | |
let socklen_of_int = Types.socklen_of_int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Ctypes | |
(** Ctypes routines for C type socklen_t. *) | |
type socklen | |
val socklen_t : socklen typ | |
val int_of_socklen : socklen -> int | |
val socklen_of_int : int -> socklen | |
(** Generic sockaddr_t structure. *) | |
module Sockaddr : sig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SYSTEM=$1 | |
CMD=$2 | |
ARG=$3 | |
if test "${SYSTEM}" = "mingw"; then | |
wine $CMD $ARG | |
elif test "${SYSTEM}" = "mingw64"; then | |
wine64 $CMD $ARG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(executable | |
(name test) | |
(modules test) | |
(optional) | |
(libraries foo)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(library | |
(name test_private_lib) | |
(public_name test_private_lib) | |
(modules public) | |
(libraries private)) | |
(library | |
(name private) | |
(package test_private_lib) | |
(modules private)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module C = Configurator.V1 | |
let () = | |
C.main ~name:"test-dune-configurator" (fun c -> | |
let has_alsa = | |
C.c_test c | |
{| | |
#include <alsa/asoundlib.h> | |
int main() { | |
snd_pcm_t *pcm_handle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SearchContextType { | |
show: boolean | |
setShow: (_: boolean) => void | |
query: string | |
setQuery: (_: string) => void | |
} | |
const SearchContext = createContext<SearchContextType>({} as SearchContextType) | |
export const SearchProvider = ({ children }: { children: React.ReactNode }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SearchContextType { | |
show: boolean | |
setShow: (_: boolean) => void | |
query: string | |
setQuery: (_: string) => void | |
} | |
const SearchContext = createContext<SearchContextType>({} as SearchContextType) | |
export const SearchProvider = ({ children }: { children: React.ReactNode }) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(generate_sites_module | |
(module sites) | |
(sites test-dune-site)) | |
(executable | |
(name test_dune_site) | |
(public_name test_dune_site) | |
(libraries dune-site) | |
(modules sites test_dune_site)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lang dune 3.2) | |
(using dune_site 0.1) | |
(package | |
(name repro-main) | |
(depends | |
(ocaml (>= 4.12.0)) | |
dune-site) | |
(sites (share libs)) | |
(synopsis "Repro main")) |