mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-30 16:47:48 +00:00
638 lines
39 KiB
C
638 lines
39 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/v2/node -o nimcache/release/quicksim2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@sprotocols@spubsub@stimedcache.nim.c.o nimcache/release/quicksim2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@sprotocols@spubsub@stimedcache.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <sys/types.h>
|
|
#include <pthread.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 TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA;
|
|
typedef struct tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA;
|
|
typedef struct tySequence__RHVAHq4hk7ajRY6ChL6jQg tySequence__RHVAHq4hk7ajRY6ChL6jQg;
|
|
typedef struct tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct tyObject_Moment__p19adwOigsIe5d3NlfPJOEw tyObject_Moment__p19adwOigsIe5d3NlfPJOEw;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
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 tyTuple__GJ2zXV257gwBkpQeeINxTA tyTuple__GJ2zXV257gwBkpQeeINxTA;
|
|
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 tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA {tySequence__RHVAHq4hk7ajRY6ChL6jQg* data;
|
|
NI counter;
|
|
};
|
|
struct tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw {NI64 value;
|
|
};
|
|
struct tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA { RootObj Sup;tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* head;
|
|
tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* tail;
|
|
tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA entries;
|
|
tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw timeout;
|
|
};
|
|
struct tyObject_Moment__p19adwOigsIe5d3NlfPJOEw {NI64 value;
|
|
};
|
|
struct tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA { RootObj Sup;tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key;
|
|
tyObject_Moment__p19adwOigsIe5d3NlfPJOEw expiresAt;
|
|
tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* next;
|
|
tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* prev;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
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 tyTuple__GJ2zXV257gwBkpQeeINxTA {
|
|
NI Field0;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* Field1;
|
|
tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* Field2;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__RHVAHq4hk7ajRY6ChL6jQg { TGenericSeq Sup; tyTuple__GJ2zXV257gwBkpQeeINxTA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__ySEsyL3qiVsEYtOYlLpUoQ)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void, expire__Ld1XHR4itkhlpqdKtKUm9cg)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tyObject_Moment__p19adwOigsIe5d3NlfPJOEw now);
|
|
static N_INLINE(NIM_BOOL, lt___QNBMwDJVuJUeFFKiVHrUsgtimer)(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw a, tyObject_Moment__p19adwOigsIe5d3NlfPJOEw b);
|
|
N_LIB_PRIVATE N_NIMCALL(void, del__AAYdmjZgHDavEtYOkE3y8A)(tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
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, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, del__Xm4uY9aGkarNA7kOJ9cBEHrg)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, pop__CCqFZwYE5ZtpJq1qxo66ag)(tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0, tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA** val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt);
|
|
static N_INLINE(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw, plus___IN6zcqOUsAnWHxO4kl3boAtimer)(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw a, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw b);
|
|
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, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___qhOB9b7heK9cMZ75ekYppnFw)(tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0, tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* val_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__YgksjWNRlXmqTsYrKiDhyA)(tyObject_Table__pnmPCe7tCYTM7iCHSlEfQA t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0);
|
|
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
|
|
N_LIB_PRIVATE TNimType NTI__X2AFnum3sLBIGtKVvkqLcA_;
|
|
N_LIB_PRIVATE TNimType NTI__BB1YhQeQa9b4F1jd0o88EoA_;
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
extern TNimType NTI__p19adwOigsIe5d3NlfPJOEw_;
|
|
N_LIB_PRIVATE TNimType NTI__ySEsyL3qiVsEYtOYlLpUoQ_;
|
|
extern TNimType NTI__pnmPCe7tCYTM7iCHSlEfQA_;
|
|
extern TNimType NTI__Rk1eeZ5K9cdVRk5l7BwOXGw_;
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
static N_NIMCALL(void, Marker_tyRef__ySEsyL3qiVsEYtOYlLpUoQ)(void* p, NI op) {
|
|
tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* a;
|
|
a = (tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA*)p;
|
|
nimGCvisit((void*)(*a).key, op); nimGCvisit((void*)(*a).next, op); nimGCvisit((void*)(*a).prev, op);}
|
|
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
static N_INLINE(NIM_BOOL, lt___QNBMwDJVuJUeFFKiVHrUsgtimer)(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw a, tyObject_Moment__p19adwOigsIe5d3NlfPJOEw b) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
result = (a.value < b.value); 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 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, expire__Ld1XHR4itkhlpqdKtKUm9cg)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tyObject_Moment__p19adwOigsIe5d3NlfPJOEw now) { {
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
while (1) { NIM_BOOL T3_;
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T3_ = !(((*t).head == NIM_NIL)); if (!(T3_)) goto LA4_;
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T3_ = lt___QNBMwDJVuJUeFFKiVHrUsgtimer((*(*t).head).expiresAt, now); LA4_: ;
|
|
if (!T3_) goto LA2;
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
del__AAYdmjZgHDavEtYOkE3y8A((&(*t).entries), (*(*t).head).key);
|
|
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*(*t).head).prev), NIM_NIL);
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).head), (*(*t).head).next);
|
|
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!((*t).head == NIM_NIL)) goto LA7_;
|
|
|
|
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).tail), NIM_NIL); }
|
|
LA7_: ;
|
|
} LA2: ;
|
|
}
|
|
}
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, del__Xm4uY9aGkarNA7kOJ9cBEHrg)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* key_0) { NIM_BOOL result; tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* item; result = (NIM_BOOL)0;
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
item = (tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA*)0;
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = pop__CCqFZwYE5ZtpJq1qxo66ag((&(*t).entries), key_0, &item); if (!T3_) goto LA4_;
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!((*t).head == item)) goto LA8_;
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).head), (*item).next); }
|
|
LA8_: ;
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!((*t).tail == item)) goto LA12_;
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).tail), (*item).prev); }
|
|
LA12_: ;
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!!(((*item).next == NIM_NIL))) goto LA16_;
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*(*item).next).prev), (*item).prev); }
|
|
LA16_: ;
|
|
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!!(((*item).prev == NIM_NIL))) goto LA20_;
|
|
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*(*item).prev).next), (*item).next); }
|
|
LA20_: ;
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{ result = NIM_FALSE; }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#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 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
static N_INLINE(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw, plus___IN6zcqOUsAnWHxO4kl3boAtimer)(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw a, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw b) { tyObject_Moment__p19adwOigsIe5d3NlfPJOEw result; NI64 TM__J4KImYxvtpZ1GY81m9agzdg_4; nimZeroMem((void*)(&result), sizeof(tyObject_Moment__p19adwOigsIe5d3NlfPJOEw));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/timer.nim"
|
|
if (nimAddInt64(a.value, b.value, &TM__J4KImYxvtpZ1GY81m9agzdg_4)) { raiseOverflow(); }; result.value = (NI64)(TM__J4KImYxvtpZ1GY81m9agzdg_4); return result;}
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, put__g37enKoyzBM8cf8JwFLEww)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* k, tyObject_Moment__p19adwOigsIe5d3NlfPJOEw now) { NIM_BOOL result; NIM_BOOL res; tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* node; tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* T1_; result = (NIM_BOOL)0;
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
expire__Ld1XHR4itkhlpqdKtKUm9cg(t, now);
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
res = del__Xm4uY9aGkarNA7kOJ9cBEHrg(t, k);
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T1_ = (tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA*)0; T1_ = (tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA*) newObj((&NTI__ySEsyL3qiVsEYtOYlLpUoQ_), sizeof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA)); (*T1_).Sup.m_type = (&NTI__BB1YhQeQa9b4F1jd0o88EoA_); genericSeqAssign((&(*T1_).key), k, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_));
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
(*T1_).expiresAt = plus___IN6zcqOUsAnWHxO4kl3boAtimer(now, (*t).timeout); node = T1_;
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!((*t).head == NIM_NIL)) goto LA4_;
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).tail), node);
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).head), (*t).tail); }
|
|
goto LA2_;
|
|
LA4_: ;
|
|
{ tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA* cur;
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
cur = (*t).tail; {
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
while (1) { NIM_BOOL T9_;
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T9_ = (NIM_BOOL)0;
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T9_ = !((cur == NIM_NIL)); if (!(T9_)) goto LA10_;
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
T9_ = lt___QNBMwDJVuJUeFFKiVHrUsgtimer((*node).expiresAt, (*cur).expiresAt); LA10_: ;
|
|
if (!T9_) goto LA8;
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
cur = (*cur).prev; } LA8: ;
|
|
}
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!(cur == NIM_NIL)) goto LA13_;
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*node).next), (*t).head);
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*(*t).head).prev), node);
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).head), node); }
|
|
goto LA11_;
|
|
LA13_: ;
|
|
{
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*node).prev), cur);
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*node).next), (*cur).next);
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
asgnRef((void**) (&(*cur).next), node);
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
{
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
if (!(cur == (*t).tail)) goto LA18_;
|
|
|
|
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
unsureAsgnRef((void**) (&(*t).tail), node); }
|
|
LA18_: ;
|
|
}
|
|
LA11_: ;
|
|
}
|
|
LA2_: ;
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
X5BX5Deq___qhOB9b7heK9cMZ75ekYppnFw((&(*t).entries), k, node);
|
|
result = res; return result;}
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, init__4jrDnHmo4FeBk9aZiYQykSA)(tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw timeout, tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* Result) {
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).head, NIM_NIL); unsureAsgnRef((void**)&(*Result).tail, NIM_NIL); unsureAsgnRef((void**)&(*Result).entries.data, NIM_NIL); (*Result).entries.counter = 0; (*Result).timeout.value = 0; (*Result).Sup.m_type = (&NTI__X2AFnum3sLBIGtKVvkqLcA_); (*Result).timeout = timeout;}
|
|
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__WUexWOYqVvHJ8oQOp9aSFxA)(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA* t, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* k) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/protocols/pubsub/timedcache.nim"
|
|
result = contains__YgksjWNRlXmqTsYrKiDhyA((*t).entries, k); return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, libp2p_timedcacheDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__J4KImYxvtpZ1GY81m9agzdg_2_4[4];
|
|
static TNimNode* TM__J4KImYxvtpZ1GY81m9agzdg_3_4[4];
|
|
static TNimNode TM__J4KImYxvtpZ1GY81m9agzdg_0[10];NTI__X2AFnum3sLBIGtKVvkqLcA_.size = sizeof(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA);
|
|
NTI__X2AFnum3sLBIGtKVvkqLcA_.kind = 17;
|
|
NTI__X2AFnum3sLBIGtKVvkqLcA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__X2AFnum3sLBIGtKVvkqLcA_.name = "TimedCache[MessageID]";
|
|
NTI__X2AFnum3sLBIGtKVvkqLcA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__X2AFnum3sLBIGtKVvkqLcA_;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_2_4[0] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[1];
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.size = sizeof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA);
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.kind = 17;
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.name = "TimedEntry[MessageID]";
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__BB1YhQeQa9b4F1jd0o88EoA_;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_3_4[0] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[3];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[3].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[3].offset = offsetof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA, key);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[3].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[3].name = "key";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_3_4[1] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[4];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[4].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[4].offset = offsetof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA, expiresAt);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[4].typ = (&NTI__p19adwOigsIe5d3NlfPJOEw_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[4].name = "expiresAt";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_3_4[2] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[5];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[5].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[5].offset = offsetof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA, next);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[5].typ = (&NTI__ySEsyL3qiVsEYtOYlLpUoQ_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[5].name = "next";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_3_4[3] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[6];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[6].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[6].offset = offsetof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA, prev);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[6].typ = (&NTI__ySEsyL3qiVsEYtOYlLpUoQ_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[6].name = "prev";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[2].len = 4; TM__J4KImYxvtpZ1GY81m9agzdg_0[2].kind = 2; TM__J4KImYxvtpZ1GY81m9agzdg_0[2].sons = &TM__J4KImYxvtpZ1GY81m9agzdg_3_4[0];
|
|
NTI__BB1YhQeQa9b4F1jd0o88EoA_.node = &TM__J4KImYxvtpZ1GY81m9agzdg_0[2];
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.size = sizeof(tyObject_TimedEntrycolonObjectType___BB1YhQeQa9b4F1jd0o88EoA*);
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.kind = 22;
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.base = (&NTI__BB1YhQeQa9b4F1jd0o88EoA_);
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.name = "TimedEntry[MessageID]";
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__ySEsyL3qiVsEYtOYlLpUoQ_;
|
|
NTI__ySEsyL3qiVsEYtOYlLpUoQ_.marker = Marker_tyRef__ySEsyL3qiVsEYtOYlLpUoQ;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[1].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[1].offset = offsetof(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA, head);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[1].typ = (&NTI__ySEsyL3qiVsEYtOYlLpUoQ_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[1].name = "head";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_2_4[1] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[7];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[7].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[7].offset = offsetof(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA, tail);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[7].typ = (&NTI__ySEsyL3qiVsEYtOYlLpUoQ_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[7].name = "tail";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_2_4[2] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[8];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[8].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[8].offset = offsetof(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA, entries);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[8].typ = (&NTI__pnmPCe7tCYTM7iCHSlEfQA_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[8].name = "entries";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_2_4[3] = &TM__J4KImYxvtpZ1GY81m9agzdg_0[9];
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[9].kind = 1;
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[9].offset = offsetof(tyObject_TimedCache__X2AFnum3sLBIGtKVvkqLcA, timeout);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[9].typ = (&NTI__Rk1eeZ5K9cdVRk5l7BwOXGw_);
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[9].name = "timeout";
|
|
TM__J4KImYxvtpZ1GY81m9agzdg_0[0].len = 4; TM__J4KImYxvtpZ1GY81m9agzdg_0[0].kind = 2; TM__J4KImYxvtpZ1GY81m9agzdg_0[0].sons = &TM__J4KImYxvtpZ1GY81m9agzdg_2_4[0];
|
|
NTI__X2AFnum3sLBIGtKVvkqLcA_.node = &TM__J4KImYxvtpZ1GY81m9agzdg_0[0];
|
|
}
|
|
|