nwaku/nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sprotocols@sprotocol.nim.c

179 lines
11 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-libp2p@slibp2p@sprotocols@sprotocol.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sprotocols@sprotocol.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_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct RootObj RootObj;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA;
typedef struct tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A;
typedef struct tyObject_Env_protocoldotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_protocoldotnim___diB2NTuAIWY0FO9c5IUJRGg;
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 RootObj {TNimType* m_type;};
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef struct {
N_NIMCALL_PTR(tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA*, ClP_0) (tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, NimStringDesc* proto, void* ClE_0);
void* ClE_0;
} tyProc__Sx7TcXJiI2BS08wYpfOyIg;
struct tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w { RootObj Sup;tySequence__sM4lkSb7zS6F7OVMvW9cffQ* codecs;
tyProc__Sx7TcXJiI2BS08wYpfOyIg handler;
};
struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A {
void* Field0;
tyObject_Env_protocoldotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, init__pkXzn3N1QvEEaqoiztBICg)(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* p_0);
N_LIB_PRIVATE N_NIMCALL(void, insert__QiSrmi7QFVZLWumqReTo7w)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ** x_0, NimStringDesc* item, NI i);
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, Marker_tyRef__9b6s9bYbEs8N4m9aTvh9a9atzLA)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
N_LIB_PRIVATE TNimType NTI__5aL02d9bjOYDZmYD0dWxn2w_;
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
N_LIB_PRIVATE TNimType NTI__Sx7TcXJiI2BS08wYpfOyIg_;
extern TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_;
extern TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_;
N_LIB_PRIVATE TNimType NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_;
STRING_LITERAL(TM__JAf9b1nxLC9cMklHqsVU9aHjg_4, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/pr"
"otocols/protocol.nim(25, 9) `p.codecs.len > 0` Codecs sequence w"
"as empty!", 136);
extern TNimType* nimTypeRoot;
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
N_LIB_PRIVATE N_NIMCALL(void, init__pkXzn3N1QvEEaqoiztBICg)(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* p_0) {}
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
N_LIB_PRIVATE N_NIMCALL(void, codeceq___FJgTWmJomZg9cJD1BFJyUDQ)(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* p_0, NimStringDesc* codec) {
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
insert__QiSrmi7QFVZLWumqReTo7w((&(*p_0).codecs), codec, ((NI) 0));
}
static N_NIMCALL(void, Marker_tyRef__9b6s9bYbEs8N4m9aTvh9a9atzLA)(void* p, NI op) {
tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* a;
a = (tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w*)p;
nimGCvisit((void*)(*a).codecs, op); nimGCvisit((void*)(*a).handler.ClE_0, op);}
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, codec__9aMav7tf05vmztlcWKYHy9ag)(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* p_0) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
{ NI T3_;
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
T3_ = ((*p_0).codecs ? (*p_0).codecs->Sup.len : 0); if (!!((((NI) 0) < T3_))) goto LA4_;
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/protocol.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JAf9b1nxLC9cMklHqsVU9aHjg_4));
}
LA4_: ;
if ((NU)(((NI) 0)) >= (NU)((*p_0).codecs ? (*p_0).codecs->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*p_0).codecs ? (*p_0).codecs->Sup.len : 0)-1); } result = copyString((*p_0).codecs->data[((NI) 0)]); return result;}
N_LIB_PRIVATE N_NIMCALL(void, libp2p_protocolDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__JAf9b1nxLC9cMklHqsVU9aHjg_2_2[2];
static TNimNode* TM__JAf9b1nxLC9cMklHqsVU9aHjg_3_2[2];
static TNimNode TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[6];NTI__5aL02d9bjOYDZmYD0dWxn2w_.size = sizeof(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w);
NTI__5aL02d9bjOYDZmYD0dWxn2w_.kind = 17;
NTI__5aL02d9bjOYDZmYD0dWxn2w_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
NTI__5aL02d9bjOYDZmYD0dWxn2w_.name = "LPProtocol:ObjectType";
NTI__5aL02d9bjOYDZmYD0dWxn2w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__5aL02d9bjOYDZmYD0dWxn2w_;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_2_2[0] = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[1];
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[1].kind = 1;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[1].offset = offsetof(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w, codecs);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[1].typ = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[1].name = "codecs";
TM__JAf9b1nxLC9cMklHqsVU9aHjg_2_2[1] = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[2];
NTI__Sx7TcXJiI2BS08wYpfOyIg_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTI__Sx7TcXJiI2BS08wYpfOyIg_.kind = 18;
NTI__Sx7TcXJiI2BS08wYpfOyIg_.base = 0;
NTI__Sx7TcXJiI2BS08wYpfOyIg_.name = "tuple of (pointer, ref object)";
NTI__Sx7TcXJiI2BS08wYpfOyIg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Sx7TcXJiI2BS08wYpfOyIg_;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_3_2[0] = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[4];
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[4].kind = 1;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[4].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[4].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[4].name = "Field0";
TM__JAf9b1nxLC9cMklHqsVU9aHjg_3_2[1] = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[5];
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[5].kind = 1;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[5].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[5].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[5].name = "Field1";
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[3].len = 2; TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[3].kind = 2; TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[3].sons = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_3_2[0];
NTI__Sx7TcXJiI2BS08wYpfOyIg_.node = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[3];
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[2].kind = 1;
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[2].offset = offsetof(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w, handler);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[2].typ = (&NTI__Sx7TcXJiI2BS08wYpfOyIg_);
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[2].name = "handler";
TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[0].len = 2; TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[0].kind = 2; TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[0].sons = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_2_2[0];
NTI__5aL02d9bjOYDZmYD0dWxn2w_.node = &TM__JAf9b1nxLC9cMklHqsVU9aHjg_0[0];
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.size = sizeof(tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w*);
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.kind = 22;
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.base = (&NTI__5aL02d9bjOYDZmYD0dWxn2w_);
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.name = "LPProtocol";
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_;
NTI__9b6s9bYbEs8N4m9aTvh9a9atzLA_.marker = Marker_tyRef__9b6s9bYbEs8N4m9aTvh9a9atzLA;
}