mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 23:55:43 +00:00
132 lines
7.6 KiB
C
132 lines
7.6 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-stew@sstew@sshims@snet.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-stew@sstew@sshims@snet.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg;
|
|
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA;
|
|
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
|
|
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
|
|
struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family;
|
|
union{
|
|
struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6;
|
|
} _family_1;
|
|
struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4;
|
|
} _family_2;
|
|
};
|
|
};
|
|
struct tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA value;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIpAddress__1ivqWNphfe1wCfgNmXXOCA)(NimStringDesc* addressStr);
|
|
N_LIB_PRIVATE TNimType NTI__CzBTfc62i86oI9cTRbEwpHg_;
|
|
extern TNimType NTI__t0yd6ha54oWXm7nwZ4QqfA_;
|
|
extern TNimType* nimTypeRoot;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg, init__CcnUUdkOpu40jxYIdoeMbg)(NimStringDesc* str) { tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg result; nimZeroMem((void*)(&result), sizeof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg));
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg));
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
result.value = parseIpAddress__1ivqWNphfe1wCfgNmXXOCA(str); return result;}
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg, init__HcqA0SbpwY1ii5w1Am1UXg)(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip_0) { tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg result; nimZeroMem((void*)(&result), sizeof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg));
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg)); result.value = ip_0; return result;}
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, toNormalIp__yE5rchHevuUpBuS1R7ZcTQ)(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg ip_0) { tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA result; nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/shims/net.nim"
|
|
result = ip_0.value; return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, stew_netDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode TM__H4aVPuVruNUrSHP29cDX67g_0[1];NTI__CzBTfc62i86oI9cTRbEwpHg_.size = sizeof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg);
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.kind = 18;
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.base = 0;
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.flags = 3;
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.name = "ValidIpAddress";
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__CzBTfc62i86oI9cTRbEwpHg_;
|
|
TM__H4aVPuVruNUrSHP29cDX67g_0[0].kind = 1;
|
|
TM__H4aVPuVruNUrSHP29cDX67g_0[0].offset = offsetof(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg, value);
|
|
TM__H4aVPuVruNUrSHP29cDX67g_0[0].typ = (&NTI__t0yd6ha54oWXm7nwZ4QqfA_);
|
|
TM__H4aVPuVruNUrSHP29cDX67g_0[0].name = "value";
|
|
NTI__CzBTfc62i86oI9cTRbEwpHg_.node = &TM__H4aVPuVruNUrSHP29cDX67g_0[0];
|
|
}
|
|
|