mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
919 lines
58 KiB
C
919 lines
58 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/examples/v1 -o nimcache/release/example/@m..@s..@swaku@scommon@sutils@snat.nim.c.o nimcache/release/example/@m..@s..@swaku@scommon@sutils@snat.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#include <setjmp.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#include <stdlib.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 tyTuple__FkTTvqR0qjrSirqw1mlpbQ tyTuple__FkTTvqR0qjrSirqw1mlpbQ;
|
|
typedef struct tyObject_Option__uF36ME4fpYfnIMScqmC3EA tyObject_Option__uF36ME4fpYfnIMScqmC3EA;
|
|
typedef struct tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg;
|
|
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
|
|
typedef struct tyObject_Option__G4QSZNj619bazerwBIq3ZNg tyObject_Option__G4QSZNj619bazerwBIq3ZNg;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct TSafePoint TSafePoint;
|
|
typedef struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA;
|
|
typedef struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA;
|
|
typedef struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg;
|
|
typedef struct tyTuple__yobv8JsmBBRNC1NIieLJzQ tyTuple__yobv8JsmBBRNC1NIieLJzQ;
|
|
typedef struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ;
|
|
typedef struct tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw;
|
|
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
|
|
typedef struct tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg;
|
|
typedef struct tyTuple__LGcBAKu039a0TOc2fpMiDpA tyTuple__LGcBAKu039a0TOc2fpMiDpA;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
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;
|
|
};
|
|
struct tyObject_Option__uF36ME4fpYfnIMScqmC3EA {tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Option__G4QSZNj619bazerwBIq3ZNg {NU16 val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyTuple__FkTTvqR0qjrSirqw1mlpbQ {
|
|
tyObject_Option__uF36ME4fpYfnIMScqmC3EA Field0;
|
|
tyObject_Option__G4QSZNj619bazerwBIq3ZNg Field1;
|
|
tyObject_Option__G4QSZNj619bazerwBIq3ZNg Field2;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef NU8 tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA;
|
|
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;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
|
|
struct TSafePoint {TSafePoint* prev;
|
|
NI status;
|
|
jmp_buf context;
|
|
};
|
|
struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {NI a;
|
|
NI b;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA {char dummy;
|
|
};
|
|
struct tyTuple__yobv8JsmBBRNC1NIieLJzQ {
|
|
tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA Field0;
|
|
};
|
|
struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg {tyTuple__yobv8JsmBBRNC1NIieLJzQ finalOutputs;
|
|
NimStringDesc* buffer;
|
|
};
|
|
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
|
|
struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA {tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg output;
|
|
tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA level;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA { Exception Sup;};
|
|
struct tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw { tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;};
|
|
struct tyTuple__LGcBAKu039a0TOc2fpMiDpA {
|
|
NU16 Field0;
|
|
NU16 Field1;
|
|
};
|
|
struct tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg {tyTuple__LGcBAKu039a0TOc2fpMiDpA val;
|
|
NIM_BOOL has;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA 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_NIMCALL(NimStringDesc*, nsuToLowerAsciiStr)(NimStringDesc* s_0);
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
|
|
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
|
|
static N_INLINE(tyObject_Option__uF36ME4fpYfnIMScqmC3EA, some__a3k06sPK5i9cVxef0HslXygoptions)(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg, init__CcnUUdkOpu40jxYIdoeMbg)(NimStringDesc* str);
|
|
static N_INLINE(NimStringDesc*, X5BX5D___ogYTOKbgqbjPfyC123US1gsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
static N_INLINE(void, popSafePoint)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA lvl, NimStringDesc* topics, NimStringDesc* name_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__czv7v33Y9bwyVAHI9b2eiKDw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NI val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__U2vmGWVLHFSD9cvjHnmuu2A)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NimStringDesc* val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
|
|
N_LIB_PRIVATE N_NIMCALL(void, flushRecord__2TFyTWhDxeU5kGr2yqnA6w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
|
|
static N_INLINE(Exception*, getCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex);
|
|
static N_INLINE(void, popCurrentException)(void);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ, getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg)(tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA natStrategy, NIM_BOOL quiet);
|
|
static N_INLINE(NIM_BOOL, isSome__Ko7CQanwNHnwf7WYxGSR2woptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg, init__HcqA0SbpwY1ii5w1Am1UXg)(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA ip_0);
|
|
static N_INLINE(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, get__kzEKFZ5iRtYll9bH0fejYJAoptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self);
|
|
static N_INLINE(NIM_BOOL, isNone__Ko7CQanwNHnwf7WYxGSR2w_2options)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, redirectPorts__zzwux9ckxHQ68Mrb1zLiNjg)(NU16 tcpPort, NU16 udpPort, NimStringDesc* description_0);
|
|
static N_INLINE(NIM_BOOL, isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self);
|
|
static N_INLINE(tyTuple__LGcBAKu039a0TOc2fpMiDpA, get__Li3Qv9a9bTi85GXZYYieZMeQoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self);
|
|
static N_INLINE(NIM_BOOL, isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self);
|
|
static N_INLINE(tyObject_Option__G4QSZNj619bazerwBIq3ZNg, some__Ise6ZSzfcJyk81uKZka4iAoptions)(NU16 val_0);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_2, "any", 3);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_3, "none", 4);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_4, "upnp", 4);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_5, "pmp", 3);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_6, "extip:", 6);
|
|
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_14, "nor a valid IP address", 22);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_15, "tid", 3);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_16, "address", 7);
|
|
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_18, "not a valid NAT mechanism", 25);
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_19, "value", 5);
|
|
extern TNimType NTI__GntyqsSCwg00S5X6lKEPuQ_;
|
|
extern TNimType NTI__VAWWBGXQQxBx5kHPK2xRMw_;
|
|
STRING_LITERAL(TM__SaiOnI4NH0kZ5tnMqgp4jw_20, "Can\'t obtain a value from a `none`", 34);
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#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 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0;
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
result = memcmp(a, b, ((size_t) (size))); return result;}
|
|
|
|
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0;
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;}
|
|
|
|
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
alen = (a ? a->Sup.len : 0);
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
blen = (b ? b->Sup.len : 0);
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
{
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
if (!(alen == blen)) goto LA3_;
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
{
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
if (!(alen == ((NI) 0))) goto LA7_;
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
result = NIM_TRUE; goto BeforeRet_;
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_;
|
|
}
|
|
LA3_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
(*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = s;}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(tyObject_Option__uF36ME4fpYfnIMScqmC3EA, some__a3k06sPK5i9cVxef0HslXygoptions)(tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg val_0) { tyObject_Option__uF36ME4fpYfnIMScqmC3EA result; nimZeroMem((void*)(&result), sizeof(tyObject_Option__uF36ME4fpYfnIMScqmC3EA));
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result.has = NIM_TRUE;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result.val = val_0; return result;}
|
|
|
|
#line 2429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NimStringDesc*, X5BX5D___ogYTOKbgqbjPfyC123US1gsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x_0) { NimStringDesc* result; NI a; NI L; NI TM__SaiOnI4NH0kZ5tnMqgp4jw_8; NI TM__SaiOnI4NH0kZ5tnMqgp4jw_9; NI TM__SaiOnI4NH0kZ5tnMqgp4jw_10; result = (NimStringDesc*)0;
|
|
#line 2436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
a = x_0.a;
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimSubInt((s ? s->Sup.len : 0), x_0.b, &TM__SaiOnI4NH0kZ5tnMqgp4jw_8)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_8), a, &TM__SaiOnI4NH0kZ5tnMqgp4jw_9)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_9), ((NI) 1), &TM__SaiOnI4NH0kZ5tnMqgp4jw_10)) { raiseOverflow(); }; L = (NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_10);
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 2438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = mnewString(((NI) (L))); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__SaiOnI4NH0kZ5tnMqgp4jw_11; NI TM__SaiOnI4NH0kZ5tnMqgp4jw_12;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < L)) goto LA3;
|
|
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
i = i_2; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2439 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimAddInt(i, a, &TM__SaiOnI4NH0kZ5tnMqgp4jw_11)) { raiseOverflow(); }; if ((NU)((NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_11)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_11),(s ? s->Sup.len : 0)-1); } result->data[i] = s->data[(NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_11)];
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__SaiOnI4NH0kZ5tnMqgp4jw_12)) { raiseOverflow(); }; i_2 = (NI)(TM__SaiOnI4NH0kZ5tnMqgp4jw_12); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result; nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA)); result.a = a; result.b = b; return result;}
|
|
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popSafePoint)(void) {
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev;}
|
|
|
|
#line 2292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 2288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popCurrentException)(void) {
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
asgnRef((void**) (&currException__9bVPeDJlYTi9bQApZpfH8wjg), (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up);}
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(NIM_BOOL, isSome__Ko7CQanwNHnwf7WYxGSR2woptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result = self.has; return result;}
|
|
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(NIM_BOOL, isNone__Ko7CQanwNHnwf7WYxGSR2w_2options)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result = !(self.has); return result;}
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, get__kzEKFZ5iRtYll9bH0fejYJAoptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self) { tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA result; nimZeroMem((void*)(&result), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
{ NIM_BOOL T3_; tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw* T6_; NimStringDesc* T7_;
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isNone__Ko7CQanwNHnwf7WYxGSR2w_2options(self); if (!T3_) goto LA4_;
|
|
T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*)0; T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*) newObj((&NTI__GntyqsSCwg00S5X6lKEPuQ_), sizeof(tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw)); (*T6_).Sup.Sup.Sup.m_type = (&NTI__VAWWBGXQQxBx5kHPK2xRMw_); (*T6_).Sup.Sup.name = "UnpackError"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.message; (*T6_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_20)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.parent), NIM_NIL);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
raiseExceptionEx((Exception*)T6_, "UnpackError", "get", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/options.nim", 185); }
|
|
LA4_: ;
|
|
result = self.val; return result;}
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(NIM_BOOL, isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result = self.has; return result;}
|
|
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(NIM_BOOL, isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result = !(self.has); return result;}
|
|
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(tyTuple__LGcBAKu039a0TOc2fpMiDpA, get__Li3Qv9a9bTi85GXZYYieZMeQoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self) { tyTuple__LGcBAKu039a0TOc2fpMiDpA result; nimZeroMem((void*)(&result), sizeof(tyTuple__LGcBAKu039a0TOc2fpMiDpA));
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
{ NIM_BOOL T3_; tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw* T6_; NimStringDesc* T7_;
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options(self); if (!T3_) goto LA4_;
|
|
T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*)0; T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*) newObj((&NTI__GntyqsSCwg00S5X6lKEPuQ_), sizeof(tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw)); (*T6_).Sup.Sup.Sup.m_type = (&NTI__VAWWBGXQQxBx5kHPK2xRMw_); (*T6_).Sup.Sup.name = "UnpackError"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.message; (*T6_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_20)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.parent), NIM_NIL);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
raiseExceptionEx((Exception*)T6_, "UnpackError", "get", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/options.nim", 185); }
|
|
LA4_: ;
|
|
result = self.val; return result;}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
static N_INLINE(tyObject_Option__G4QSZNj619bazerwBIq3ZNg, some__Ise6ZSzfcJyk81uKZka4iAoptions)(NU16 val_0) { tyObject_Option__G4QSZNj619bazerwBIq3ZNg result; nimZeroMem((void*)(&result), sizeof(tyObject_Option__G4QSZNj619bazerwBIq3ZNg));
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result.has = NIM_TRUE;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
|
|
result.val = val_0; return result;}
|
|
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyTuple__FkTTvqR0qjrSirqw1mlpbQ, setupNat__UP9cfGZeQa8KjvXvbedMvLg)(NimStringDesc* natConf, NimStringDesc* clientId, NU16 tcpPort, NU16 udpPort) { tyTuple__FkTTvqR0qjrSirqw1mlpbQ result; tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA volatile nat; NimStringDesc* T1_; nimZeroMem((void*)(&result), sizeof(tyTuple__FkTTvqR0qjrSirqw1mlpbQ)); nat = (tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA)0;
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T1_ = (NimStringDesc*)0; T1_ = nsuToLowerAsciiStr(natConf); if (eqStrings(T1_, ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_2))) goto LA2_; if (eqStrings(T1_, ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_3))) goto LA3_; if (eqStrings(T1_, ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_4))) goto LA4_; if (eqStrings(T1_, ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_5))) goto LA5_; goto LA6_;
|
|
LA2_: ;
|
|
{
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
nat = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 0); }
|
|
goto LA7_;
|
|
LA3_: ;
|
|
{
|
|
#line 15 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
nat = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 3); }
|
|
goto LA7_;
|
|
LA4_: ;
|
|
{
|
|
#line 17 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
nat = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 1); }
|
|
goto LA7_;
|
|
LA5_: ;
|
|
{
|
|
#line 19 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
nat = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 2); }
|
|
goto LA7_;
|
|
LA6_: ;
|
|
{
|
|
#line 21 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
{ NIM_BOOL T15_; TSafePoint TM__SaiOnI4NH0kZ5tnMqgp4jw_7;
|
|
#line 21 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 21 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T15_ = (NIM_BOOL)0; T15_ = nsuStartsWith(natConf, ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_6)); if (!T15_) goto LA16_;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
pushSafePoint(&TM__SaiOnI4NH0kZ5tnMqgp4jw_7); TM__SaiOnI4NH0kZ5tnMqgp4jw_7.status = setjmp(TM__SaiOnI4NH0kZ5tnMqgp4jw_7.context); if (TM__SaiOnI4NH0kZ5tnMqgp4jw_7.status == 0) { tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T19_; NimStringDesc* T20_; tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg T21_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T19_ = dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem(((NI) 6), ((NI) 1));
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T20_ = (NimStringDesc*)0; T20_ = X5BX5D___ogYTOKbgqbjPfyC123US1gsystem(natConf, T19_);
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T21_ = init__CcnUUdkOpu40jxYIdoeMbg(T20_);
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
result.Field0 = some__a3k06sPK5i9cVxef0HslXygoptions(T21_);
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
nat = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 3); popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__yoNlBGx0D2tRizIdhQuENw_))) { TSafePoint TM__SaiOnI4NH0kZ5tnMqgp4jw_13; TM__SaiOnI4NH0kZ5tnMqgp4jw_7.status = 0;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
pushSafePoint(&TM__SaiOnI4NH0kZ5tnMqgp4jw_13); TM__SaiOnI4NH0kZ5tnMqgp4jw_13.status = setjmp(TM__SaiOnI4NH0kZ5tnMqgp4jw_13.context); if (TM__SaiOnI4NH0kZ5tnMqgp4jw_13.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T26_; tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T27_; NimStringDesc* T28_; nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_14));
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T26_ = (NI)0; T26_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_15), T26_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T27_ = dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem(((NI) 6), ((NI) 1));
|
|
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T28_ = (NimStringDesc*)0; T28_ = X5BX5D___ogYTOKbgqbjPfyC123US1gsystem(natConf, T27_);
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_16), T28_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98890019_; Exception* T31_; Exception* T32_; TM__SaiOnI4NH0kZ5tnMqgp4jw_13.status = 0;
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T31_ = (Exception*)0; T31_ = getCurrentException(); errX60gensym98890019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T31_));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T32_ = (Exception*)0; T32_ = &errX60gensym98890019_->Sup;
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("nor a valid IP address", T32_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__SaiOnI4NH0kZ5tnMqgp4jw_13.status != 0) reraiseException();
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
exit(((NI) 1));
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__SaiOnI4NH0kZ5tnMqgp4jw_7.status != 0) reraiseException(); }
|
|
goto LA13_;
|
|
LA16_: ;
|
|
{ TSafePoint TM__SaiOnI4NH0kZ5tnMqgp4jw_17;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
pushSafePoint(&TM__SaiOnI4NH0kZ5tnMqgp4jw_17); TM__SaiOnI4NH0kZ5tnMqgp4jw_17.status = setjmp(TM__SaiOnI4NH0kZ5tnMqgp4jw_17.context); if (TM__SaiOnI4NH0kZ5tnMqgp4jw_17.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_2; NI T36_; nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
chckNil((void*)(&record_2)); nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_2), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_18));
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T36_ = (NI)0; T36_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_2), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_15), T36_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_2), ((NimStringDesc*) &TM__SaiOnI4NH0kZ5tnMqgp4jw_19), natConf);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_2));
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_2));
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98965019_; Exception* T39_; Exception* T40_; TM__SaiOnI4NH0kZ5tnMqgp4jw_17.status = 0;
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T39_ = (Exception*)0; T39_ = getCurrentException(); errX60gensym98965019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T39_));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T40_ = (Exception*)0; T40_ = &errX60gensym98965019_->Sup;
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("not a valid NAT mechanism", T40_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__SaiOnI4NH0kZ5tnMqgp4jw_17.status != 0) reraiseException();
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
exit(((NI) 1));
|
|
}
|
|
LA13_: ;
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
{ tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ extIp;
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
if (!!((nat == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 3)))) goto LA43_;
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
extIp = getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg(nat, NIM_FALSE);
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
{ NIM_BOOL T47_; tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA T50_; tyObject_ValidIpAddress__CzBTfc62i86oI9cTRbEwpHg T51_; tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg extPorts;
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T47_ = (NIM_BOOL)0; T47_ = isSome__Ko7CQanwNHnwf7WYxGSR2woptions(extIp); if (!T47_) goto LA48_;
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T50_ = get__kzEKFZ5iRtYll9bH0fejYJAoptions(extIp);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T51_ = init__HcqA0SbpwY1ii5w1Am1UXg(T50_);
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
result.Field0 = some__a3k06sPK5i9cVxef0HslXygoptions(T51_);
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
extPorts = redirectPorts__zzwux9ckxHQ68Mrb1zLiNjg(tcpPort, udpPort, clientId);
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
{ NIM_BOOL T54_; tyTuple__LGcBAKu039a0TOc2fpMiDpA T57_; NU16 extTcpPort; NU16 extUdpPort;
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T54_ = (NIM_BOOL)0; T54_ = isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions(extPorts); if (!T54_) goto LA55_;
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
T57_ = get__Li3Qv9a9bTi85GXZYYieZMeQoptions(extPorts); extTcpPort = T57_.Field0; extUdpPort = T57_.Field1;
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
result.Field1 = some__Ise6ZSzfcJyk81uKZka4iAoptions(extTcpPort);
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/waku/common/utils/nat.nim"
|
|
result.Field2 = some__Ise6ZSzfcJyk81uKZka4iAoptions(extUdpPort); }
|
|
LA55_: ;
|
|
}
|
|
LA48_: ;
|
|
}
|
|
LA43_: ;
|
|
return result;}
|