Alogani
Alogani
Oups, true. I don't see how to do it, except by using just a pointer, but we would lose some information.
@litlighilit this is very nice work. The workaround using a template is a nice one! So the only problem is to make openbsd field in good order and that's all...
I think it would quite easy to make std/distro work at compile time. But certainly not very efficient... The template might still be the most polyvalent solution
Nice work @litlighilit 👍
How could it ? ## Example 1: ```nim include mycustomSigaction var a = Sigaction() a.sa_handler = proc(x: cint) {.noconv.} = echo "catch", x ``` Output: ``` Error: undeclared field: 'sa_handler='...
@litlighilit don't know about future development on Nim's NIR or nlvm project. But if Nim's import are close to C definitions, this will make life easier on future. But I...
Have you tested it ? ^^ ``` type Sigset* {.importc: "sigset_t", header: "", final, pure.} = object abi: array[1024 div (8 * sizeof(culong)), culong] type Sigaction_internal {.union.} = object sa_handler*:...
Hello, In linux, pcre is not is not shipped with nim : ```bash ls -l /home/Alogani/.nimble/bin/ total 5220 -rwxr-xr-x. 1 Alogani Alogani 1835456 6 janv. 09:17 choosenim -rwxr--r--. 1 Alogani...
sorry for the inconvenience
For reference, how to setup two interfaces (not worth including in docs) : ``` # avoid conflicts rm /var/service/dhclient-eth0 # for better dns resolution printf "\nhostname\n" >> /etc/dhcpcd.conf # #...