mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
134 lines
7.2 KiB
C
134 lines
7.2 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-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-bearssl/bearssl/certs -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 -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/v1/node -o nimcache/release/quicksim/@m..@s..@s..@svendor@snim-eth@seth@sp2p@senode.nim.c.o nimcache/release/quicksim/@m..@s..@s..@svendor@snim-eth@seth@sp2p@senode.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.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_ENode__bNRDNKJGQnqT2sH89bsDhBw tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw;
|
|
typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA;
|
|
typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ;
|
|
typedef struct tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA;
|
|
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
|
|
};
|
|
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
|
|
};
|
|
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_Address__x5U8qnsjGWstAJoOadUZ9aA {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip;
|
|
NU16 udpPort;
|
|
NU16 tcpPort;
|
|
};
|
|
struct tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA pubkey;
|
|
tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA address;
|
|
};
|
|
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;
|
|
};
|
|
N_LIB_PRIVATE TNimType NTI__bNRDNKJGQnqT2sH89bsDhBw_;
|
|
extern TNimType NTI__YxxaGK7KOKaWCOaZ44rHMA_;
|
|
N_LIB_PRIVATE TNimType NTI__x5U8qnsjGWstAJoOadUZ9aA_;
|
|
extern TNimType NTI__t0yd6ha54oWXm7nwZ4QqfA_;
|
|
extern TNimType NTI__M4na42GvebBMnI5wV9cYMxg_;
|
|
extern TNimType* nimTypeRoot;
|
|
N_LIB_PRIVATE N_NIMCALL(void, eth_enodeDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__5p3rEJPVDvOAs69bkZMfUjw_2_2[2];
|
|
static TNimNode* TM__5p3rEJPVDvOAs69bkZMfUjw_3_3[3];
|
|
static TNimNode TM__5p3rEJPVDvOAs69bkZMfUjw_0[7];NTI__bNRDNKJGQnqT2sH89bsDhBw_.size = sizeof(tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw);
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.kind = 18;
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.base = 0;
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.flags = 3;
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.name = "ENode";
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__bNRDNKJGQnqT2sH89bsDhBw_;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_2_2[0] = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[1];
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[1].kind = 1;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[1].offset = offsetof(tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw, pubkey);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[1].typ = (&NTI__YxxaGK7KOKaWCOaZ44rHMA_);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[1].name = "pubkey";
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_2_2[1] = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[2];
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.size = sizeof(tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA);
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.kind = 18;
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.base = 0;
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.flags = 3;
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.name = "Address";
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__x5U8qnsjGWstAJoOadUZ9aA_;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_3_3[0] = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[4];
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[4].kind = 1;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[4].offset = offsetof(tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA, ip);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[4].typ = (&NTI__t0yd6ha54oWXm7nwZ4QqfA_);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[4].name = "ip";
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_3_3[1] = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[5];
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[5].kind = 1;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[5].offset = offsetof(tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA, udpPort);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[5].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[5].name = "udpPort";
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_3_3[2] = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[6];
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[6].kind = 1;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[6].offset = offsetof(tyObject_Address__x5U8qnsjGWstAJoOadUZ9aA, tcpPort);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[6].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[6].name = "tcpPort";
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[3].len = 3; TM__5p3rEJPVDvOAs69bkZMfUjw_0[3].kind = 2; TM__5p3rEJPVDvOAs69bkZMfUjw_0[3].sons = &TM__5p3rEJPVDvOAs69bkZMfUjw_3_3[0];
|
|
NTI__x5U8qnsjGWstAJoOadUZ9aA_.node = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[3];
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[2].kind = 1;
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[2].offset = offsetof(tyObject_ENode__bNRDNKJGQnqT2sH89bsDhBw, address);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[2].typ = (&NTI__x5U8qnsjGWstAJoOadUZ9aA_);
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[2].name = "address";
|
|
TM__5p3rEJPVDvOAs69bkZMfUjw_0[0].len = 2; TM__5p3rEJPVDvOAs69bkZMfUjw_0[0].kind = 2; TM__5p3rEJPVDvOAs69bkZMfUjw_0[0].sons = &TM__5p3rEJPVDvOAs69bkZMfUjw_2_2[0];
|
|
NTI__bNRDNKJGQnqT2sH89bsDhBw_.node = &TM__5p3rEJPVDvOAs69bkZMfUjw_0[0];
|
|
}
|
|
|