mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 09:55:07 +00:00
1302 lines
81 KiB
C
1302 lines
81 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-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/start_network2/@m..@s..@s..@svendor@snim-chronicles@schronicles@slog_output.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-chronicles@schronicles@slog_output.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#include <setjmp.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_BindingsFrame__jJ0xWkRSfs9byDsgkVtUjiA tyObject_BindingsFrame__jJ0xWkRSfs9byDsgkVtUjiA;
|
|
typedef struct tyTuple__qERWGavQjzug69cyzEYP39bQ tyTuple__qERWGavQjzug69cyzEYP39bQ;
|
|
typedef struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg;
|
|
typedef struct tyTuple__yobv8JsmBBRNC1NIieLJzQ tyTuple__yobv8JsmBBRNC1NIieLJzQ;
|
|
typedef struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA;
|
|
typedef struct tyTuple__1sv9cQSEKRFRImWwXwwui7Q tyTuple__1sv9cQSEKRFRImWwXwwui7Q;
|
|
typedef struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw;
|
|
typedef struct Exception Exception;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct TSafePoint TSafePoint;
|
|
typedef struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw;
|
|
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_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct tySequence__pJDjdGjSf3HlAOELaHOmSA tySequence__pJDjdGjSf3HlAOELaHOmSA;
|
|
typedef struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw;
|
|
typedef struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
struct tyTuple__qERWGavQjzug69cyzEYP39bQ {
|
|
char dummy;
|
|
};
|
|
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA {char dummy;
|
|
};
|
|
struct tyTuple__yobv8JsmBBRNC1NIieLJzQ {
|
|
tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA Field0;
|
|
};
|
|
struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg {tyTuple__yobv8JsmBBRNC1NIieLJzQ finalOutputs;
|
|
NimStringDesc* buffer;
|
|
};
|
|
struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA {tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg output;
|
|
tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA level;
|
|
};
|
|
typedef NU8 tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg;
|
|
struct tyTuple__1sv9cQSEKRFRImWwXwwui7Q {
|
|
tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg Field0;
|
|
NIM_BOOL Field1;
|
|
};
|
|
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;};
|
|
typedef NU8 tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw;
|
|
typedef NU8 tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg;
|
|
struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw { RootObj Sup;NI nanosecond;
|
|
NI second;
|
|
NI minute;
|
|
NI hour;
|
|
NI monthday;
|
|
tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw month;
|
|
NI year;
|
|
tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg weekday;
|
|
NI yearday;
|
|
NIM_BOOL isDst;
|
|
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw* timezone;
|
|
NI utcOffset;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
|
|
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;
|
|
};
|
|
typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
|
|
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
|
|
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_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
|
|
NI offset;
|
|
};
|
|
struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw {tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA data;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__pJDjdGjSf3HlAOELaHOmSA { TGenericSeq Sup; tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, ansiForegroundColorCode__aiWNvQSWqGNTUqhMXNZzrQ)(tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg fg, NIM_BOOL bright);
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rfcTimestamp__i2AqQvvKFsZl0RRd5ysaHA)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, format__aitHIMP1zP9cdolKXyTfr6g)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* dt);
|
|
N_LIB_PRIVATE N_NIMCALL(void, now__YmAcAi9bz5G8OQqVFWHN2uA)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* Result);
|
|
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*, nsuRepeatChar)(NIM_CHAR c, NI count_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, ansiStyleCode__9cVIfUEE6Zf6B3dSUGw8cLQ)(NI style);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindCharSet)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars, NI start, NI last);
|
|
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
|
|
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__45fPtFhY4FavRaYwDhRfuA)(NimStringDesc** s, NimStringDesc* x);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
|
|
N_LIB_PRIVATE N_NIMCALL(void, write__PArlm09bKklm2BLsCg6YtaA)(FILE* f, NimStringDesc* s);
|
|
static N_INLINE(void, popSafePoint)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
|
|
static N_INLINE(Exception*, getCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex);
|
|
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x_0, NI x_0Len_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
|
|
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);
|
|
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
|
|
N_LIB_PRIVATE N_NIMCALL(void, flushFile__fU6ZlJAtQ9bre04EDZLdGsA_2)(FILE* f);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___zyVtQ1jWQ4LABVejbvxuNA)(tySequence__pJDjdGjSf3HlAOELaHOmSA* x_0);
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_2 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 37),
|
|
NIM_FALSE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_3 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 30),
|
|
NIM_TRUE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_4 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 36),
|
|
NIM_TRUE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_5 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 35),
|
|
NIM_FALSE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_6 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 33),
|
|
NIM_FALSE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_7 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31),
|
|
NIM_TRUE}
|
|
;
|
|
static NIM_CONST tyTuple__1sv9cQSEKRFRImWwXwwui7Q TM__Pzwg3bav7uuxF9bIXlPxmFQ_8 = {((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31),
|
|
NIM_FALSE}
|
|
;
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_9, "TRC", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_10, "DBG", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_11, "INF", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_12, "NOT", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_13, "WRN", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_14, "ERR", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_15, "FAT", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_16, " ", 3);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_17, "\033[0m", 4);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_18, " ", 1);
|
|
extern TNimType NTI__d9cK9cyKZPJJxFXUmx8dSpPw_;
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_20, "\033[1m", 4);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_21, " topics=\"", 9);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_22, "\"", 1);
|
|
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__Pzwg3bav7uuxF9bIXlPxmFQ_23 = {
|
|
0x00, 0x24, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
;
|
|
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__Pzwg3bav7uuxF9bIXlPxmFQ_24 = {
|
|
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
;
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_27, "=", 1);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_30, "\012", 1);
|
|
extern TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_34, "[Chronicles] Log message not delivered: ", 40);
|
|
STRING_LITERAL(TM__Pzwg3bav7uuxF9bIXlPxmFQ_35, "[Chronicles] Failed to write to stdout. Log message not deliver"
|
|
"ed: ", 67);
|
|
N_LIB_PRIVATE TNimType NTI__EhHqp0aF43SxfS6MTF9b0hA_;
|
|
N_LIB_PRIVATE TNimType NTI__8P9alBgCoSqOy9alEKOH4etg_;
|
|
N_LIB_PRIVATE TNimType NTI__yobv8JsmBBRNC1NIieLJzQ_;
|
|
N_LIB_PRIVATE TNimType NTI__QHttWltDMaZ0hK1JkeyuCA_;
|
|
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
|
|
extern TNimType NTI__9bciZEQ8iC1G2PermjsuXmA_;
|
|
N_LIB_PRIVATE NIM_THREADVAR tyObject_BindingsFrame__jJ0xWkRSfs9byDsgkVtUjiA* defaultChroniclesStreamTlsSlot__61tXtQ6Ec9cEDhyN6FSxpFg;
|
|
N_LIB_PRIVATE tyTuple__qERWGavQjzug69cyzEYP39bQ defaultChroniclesStreamOutputs__lUy5lUWPXVY58pD4OxkA5w = {}
|
|
;
|
|
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;
|
|
extern TNimType* nimTypeRoot;
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
|
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest).Sup.len += (*src).Sup.len; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#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 425 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rfcTimestamp__i2AqQvvKFsZl0RRd5ysaHA)(void) { NimStringDesc* result; tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw T1_; result = (NimStringDesc*)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
nimZeroMem((void*)(&T1_), sizeof(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw)); T1_.Sup.m_type = (&NTI__d9cK9cyKZPJJxFXUmx8dSpPw_); now__YmAcAi9bz5G8OQqVFWHN2uA((&T1_));
|
|
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
result = format__aitHIMP1zP9cdolKXyTfr6g((&T1_)); return result;}
|
|
|
|
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA lvl, NimStringDesc* topics, NimStringDesc* name_0) { tyTuple__1sv9cQSEKRFRImWwXwwui7Q T1_; tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg colorX60gensym68260002_; NIM_BOOL brightX60gensym68260003_; NimStringDesc* T10_; NimStringDesc* T11_; NimStringDesc* T20_;
|
|
#line 548 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
(*r).level = lvl;
|
|
#line 488 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 488 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
switch (lvl) {
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 1):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_3; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 3):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_4; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 4):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_5; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_6; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_7; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_8; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0):
|
|
{ T1_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
}
|
|
colorX60gensym68260002_ = T1_.Field0; brightX60gensym68260003_ = T1_.Field1;
|
|
#line 489 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T10_ = (NimStringDesc*)0; T10_ = ansiForegroundColorCode__aiWNvQSWqGNTUqhMXNZzrQ(colorX60gensym68260002_, brightX60gensym68260003_); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T10_ ? T10_->Sup.len : 0) + 0));appendString((*r).output.buffer, T10_);
|
|
#line 491 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 491 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T11_ = (NimStringDesc*)0; switch (lvl) {
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 1):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_9)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_10)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 3):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_11)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 4):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_12)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_13)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_14)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_15)); }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0):
|
|
{ T11_ = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_16)); }
|
|
break;
|
|
}
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T11_ ? T11_->Sup.len : 0) + 0));appendString((*r).output.buffer, T11_);
|
|
#line 493 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));
|
|
#line 504 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_18));
|
|
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T20_ = (NimStringDesc*)0; T20_ = rfcTimestamp__i2AqQvvKFsZl0RRd5ysaHA(); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T20_ ? T20_->Sup.len : 0) + 0));appendString((*r).output.buffer, T20_);
|
|
#line 507 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NimStringDesc* paddingX60gensym68255210_; NI T25_;
|
|
#line 507 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 507 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (!(((NI) 0) < (name_0 ? name_0->Sup.len : 0))) goto LA23_;
|
|
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T25_ = (NI)0;
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_19; if (!NIM_TRUE) goto LA28_;
|
|
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (nimSubInt(((NI) 42), ((((NI) 42) <= (name_0 ? name_0->Sup.len : 0)) ? ((NI) 42) : (name_0 ? name_0->Sup.len : 0)), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_19)) { raiseOverflow(); }; T25_ = (NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_19); }
|
|
goto LA26_;
|
|
LA28_: ;
|
|
{ T25_ = ((NI) 0); }
|
|
LA26_: ;
|
|
if ((T25_) < ((NI) 0) || (T25_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T25_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
paddingX60gensym68255210_ = nsuRepeatChar(32, ((NI) (T25_)));
|
|
#line 514 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_18));
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_20));
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (name_0 ? name_0->Sup.len : 0) + 0));appendString((*r).output.buffer, name_0);
|
|
#line 517 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (paddingX60gensym68255210_ ? paddingX60gensym68255210_->Sup.len : 0) + 0));appendString((*r).output.buffer, paddingX60gensym68255210_);
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17)); }
|
|
LA23_: ;
|
|
|
|
#line 549 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NimStringDesc* T35_;
|
|
#line 520 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 520 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (!(((NI) 0) < (topics ? topics->Sup.len : 0))) goto LA33_;
|
|
|
|
#line 521 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 9));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_21));
|
|
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T35_ = (NimStringDesc*)0; T35_ = ansiStyleCode__9cVIfUEE6Zf6B3dSUGw8cLQ(((NI) 93)); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T35_ ? T35_->Sup.len : 0) + 0));appendString((*r).output.buffer, T35_);
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (topics ? topics->Sup.len : 0) + 0));appendString((*r).output.buffer, topics);
|
|
#line 524 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));
|
|
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_22)); }
|
|
LA33_: ;
|
|
}
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (a == ((NI) (IL64(-9223372036854775807) - IL64(1)))); if (!(T3_)) goto LA4_;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (b == ((NI) -1)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
(*res) = (NI)(a / b); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 551 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__czv7v33Y9bwyVAHI9b2eiKDw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NI val_0) { NimStringDesc* valText; NimStringDesc* escaped; NimStringDesc** valueToWrite; NIM_BOOL needsEscape; NI T1_; NIM_BOOL needsQuote; NI T2_; tyTuple__1sv9cQSEKRFRImWwXwwui7Q T17_; tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg color; NIM_BOOL bright; NimStringDesc* T26_; NimStringDesc* T27_;
|
|
#line 552 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_18));
|
|
#line 553 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 553 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valText = nimIntToStr(val_0); escaped = (NimStringDesc*)0; valueToWrite = (NimStringDesc**)0;
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T1_ = (NI)0; T1_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_23, ((NI) 0), ((NI) 0)); needsEscape = (((NI) -1) < T1_);
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T2_ = (NI)0; T2_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_24, ((NI) 0), ((NI) 0)); needsQuote = (((NI) -1) < T2_);
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NIM_BOOL T5_; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_25; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_26;
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = needsEscape; if (T5_) goto LA6_;
|
|
T5_ = needsQuote; LA6_: ;
|
|
if (!T5_) goto LA7_;
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimDivInt((valText ? valText->Sup.len : 0), ((NI) 8), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_25)) { raiseOverflow(); }; if (nimAddInt((valText ? valText->Sup.len : 0), (NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_25), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_26)) { raiseOverflow(); }; if (((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_26)) < ((NI) 0) || ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_26)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_26), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = rawNewString(((NI) ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_26))));
|
|
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ if (!needsEscape) goto LA11_;
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
addQuoted__45fPtFhY4FavRaYwDhRfuA((&escaped), valText);
|
|
}
|
|
goto LA9_;
|
|
LA11_: ;
|
|
{ if (!needsQuote) goto LA14_;
|
|
|
|
#line 576 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34);
|
|
#line 577 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = resizeString(escaped, (valText ? valText->Sup.len : 0) + 0);appendString(escaped, valText);
|
|
#line 578 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34); }
|
|
goto LA9_;
|
|
LA14_: ;
|
|
LA9_: ;
|
|
|
|
#line 579 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&escaped); }
|
|
goto LA3_;
|
|
LA7_: ;
|
|
{
|
|
#line 581 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&valText); }
|
|
LA3_: ;
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
switch ((*r).level) {
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 1):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_3; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 3):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_4; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 4):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_5; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_6; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_7; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_8; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
}
|
|
color = T17_.Field0; bright = T17_.Field1;
|
|
#line 585 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T26_ = (NimStringDesc*)0; T26_ = ansiForegroundColorCode__aiWNvQSWqGNTUqhMXNZzrQ(color, bright); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T26_ ? T26_->Sup.len : 0) + 0));appendString((*r).output.buffer, T26_);
|
|
#line 586 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (key_0 ? key_0->Sup.len : 0) + 0));appendString((*r).output.buffer, key_0);
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));
|
|
#line 588 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_27));
|
|
#line 589 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T27_ = (NimStringDesc*)0; T27_ = ansiStyleCode__9cVIfUEE6Zf6B3dSUGw8cLQ(((NI) 94)); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T27_ ? T27_->Sup.len : 0) + 0));appendString((*r).output.buffer, T27_);
|
|
#line 590 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, ((*valueToWrite) ? (*valueToWrite)->Sup.len : 0) + 0));appendString((*r).output.buffer, (*valueToWrite));
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));}
|
|
|
|
#line 551 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__U2vmGWVLHFSD9cvjHnmuu2A)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NimStringDesc* val_0) { NimStringDesc* valText; NimStringDesc* escaped; NimStringDesc** valueToWrite; NIM_BOOL needsEscape; NI T1_; NIM_BOOL needsQuote; NI T2_; tyTuple__1sv9cQSEKRFRImWwXwwui7Q T17_; tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg color; NIM_BOOL bright; NimStringDesc* T26_; NimStringDesc* T27_;
|
|
#line 552 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_18));
|
|
#line 553 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valText = val_0; escaped = (NimStringDesc*)0; valueToWrite = (NimStringDesc**)0;
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T1_ = (NI)0; T1_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_23, ((NI) 0), ((NI) 0)); needsEscape = (((NI) -1) < T1_);
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T2_ = (NI)0; T2_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_24, ((NI) 0), ((NI) 0)); needsQuote = (((NI) -1) < T2_);
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NIM_BOOL T5_; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_28; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_29;
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = needsEscape; if (T5_) goto LA6_;
|
|
T5_ = needsQuote; LA6_: ;
|
|
if (!T5_) goto LA7_;
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimDivInt((valText ? valText->Sup.len : 0), ((NI) 8), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_28)) { raiseOverflow(); }; if (nimAddInt((valText ? valText->Sup.len : 0), (NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_28), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_29)) { raiseOverflow(); }; if (((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_29)) < ((NI) 0) || ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_29)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_29), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = rawNewString(((NI) ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_29))));
|
|
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ if (!needsEscape) goto LA11_;
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
addQuoted__45fPtFhY4FavRaYwDhRfuA((&escaped), valText);
|
|
}
|
|
goto LA9_;
|
|
LA11_: ;
|
|
{ if (!needsQuote) goto LA14_;
|
|
|
|
#line 576 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34);
|
|
#line 577 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = resizeString(escaped, (valText ? valText->Sup.len : 0) + 0);appendString(escaped, valText);
|
|
#line 578 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34); }
|
|
goto LA9_;
|
|
LA14_: ;
|
|
LA9_: ;
|
|
|
|
#line 579 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&escaped); }
|
|
goto LA3_;
|
|
LA7_: ;
|
|
{
|
|
#line 581 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&valText); }
|
|
LA3_: ;
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
switch ((*r).level) {
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 1):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_3; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 3):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_4; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 4):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_5; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_6; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_7; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_8; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
}
|
|
color = T17_.Field0; bright = T17_.Field1;
|
|
#line 585 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T26_ = (NimStringDesc*)0; T26_ = ansiForegroundColorCode__aiWNvQSWqGNTUqhMXNZzrQ(color, bright); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T26_ ? T26_->Sup.len : 0) + 0));appendString((*r).output.buffer, T26_);
|
|
#line 586 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (key_0 ? key_0->Sup.len : 0) + 0));appendString((*r).output.buffer, key_0);
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));
|
|
#line 588 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_27));
|
|
#line 589 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T27_ = (NimStringDesc*)0; T27_ = ansiStyleCode__9cVIfUEE6Zf6B3dSUGw8cLQ(((NI) 94)); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T27_ ? T27_->Sup.len : 0) + 0));appendString((*r).output.buffer, T27_);
|
|
#line 590 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, ((*valueToWrite) ? (*valueToWrite)->Sup.len : 0) + 0));appendString((*r).output.buffer, (*valueToWrite));
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));}
|
|
|
|
#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 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 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x_0, NI x_0Len_0) { { NimStringDesc* i; NI i_2; i = (NimStringDesc*)0;
|
|
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_33;
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < x_0Len_0)) goto LA3;
|
|
|
|
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
if ((NU)(i_2) >= (NU)(x_0Len_0)){ raiseIndexError2(i_2,x_0Len_0-1); } i = x_0[i_2];
|
|
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
write__PArlm09bKklm2BLsCg6YtaA(f, i);
|
|
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_33)) { raiseOverflow(); }; i_2 = (NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_33); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
write__PArlm09bKklm2BLsCg6YtaA(f, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_30));
|
|
}
|
|
|
|
#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 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex) { TSafePoint TM__Pzwg3bav7uuxF9bIXlPxmFQ_32;
|
|
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
pushSafePoint(&TM__Pzwg3bav7uuxF9bIXlPxmFQ_32); TM__Pzwg3bav7uuxF9bIXlPxmFQ_32.status = setjmp(TM__Pzwg3bav7uuxF9bIXlPxmFQ_32.context); if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_32.status == 0) { tyArray__Re75IspeoxXy2oCZHwcRrA T2_;
|
|
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
nimZeroMem((void*)T2_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA)); T2_[0] = copyString(((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_34));
|
|
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T2_[1] = cstrToNimstr(msg);
|
|
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T2_, 2);
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ tyArray__nHXaesL0DJZHyVS07ARPRA T7_;
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (!!((ex == NIM_NIL))) goto LA5_;
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
nimZeroMem((void*)T7_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA)); T7_[0] = copyString((*ex).message);
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T7_, 1);
|
|
}
|
|
LA5_: ;
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) { TM__Pzwg3bav7uuxF9bIXlPxmFQ_32.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_32.status != 0) reraiseException();}
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) { NCSTRING result; result = (NCSTRING)0;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = (s == NIM_NIL); if (T3_) goto LA4_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = ((*s).Sup.len == ((NI) 0)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
result = ""; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
result = ((NCSTRING) ((*s).data)); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 596 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, flushRecord__2TFyTWhDxeU5kGr2yqnA6w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r) { TSafePoint TM__Pzwg3bav7uuxF9bIXlPxmFQ_31; TSafePoint TM__Pzwg3bav7uuxF9bIXlPxmFQ_36;
|
|
#line 597 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_30));
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
pushSafePoint(&TM__Pzwg3bav7uuxF9bIXlPxmFQ_31); TM__Pzwg3bav7uuxF9bIXlPxmFQ_31.status = setjmp(TM__Pzwg3bav7uuxF9bIXlPxmFQ_31.context); if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_31.status == 0) {
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
write__PArlm09bKklm2BLsCg6YtaA(stdout, (*r).output.buffer);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) { tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw* errX60gensym68570005_; Exception* T4_; NimStringDesc* T5_; Exception* T6_; TM__Pzwg3bav7uuxF9bIXlPxmFQ_31.status = 0;
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T4_ = (Exception*)0; T4_ = getCurrentException(); errX60gensym68570005_ = ((tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*) (T4_));
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T5_ = (NimStringDesc*)0; T5_ = rawNewString(((*r).output.buffer ? (*r).output.buffer->Sup.len : 0) + 67);appendString(T5_, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_35));appendString(T5_, (*r).output.buffer); T6_ = (Exception*)0; T6_ = &errX60gensym68570005_->Sup.Sup;
|
|
#line 347 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg(nimToCStringConv(T5_), T6_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_31.status != 0) reraiseException();
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
pushSafePoint(&TM__Pzwg3bav7uuxF9bIXlPxmFQ_36); TM__Pzwg3bav7uuxF9bIXlPxmFQ_36.status = setjmp(TM__Pzwg3bav7uuxF9bIXlPxmFQ_36.context); if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_36.status == 0) {
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushFile__fU6ZlJAtQ9bre04EDZLdGsA_2(stdout);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) { TM__Pzwg3bav7uuxF9bIXlPxmFQ_36.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__Pzwg3bav7uuxF9bIXlPxmFQ_36.status != 0) reraiseException();}
|
|
|
|
#line 551 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__ifXYT2q5B1Fmt8iQTNM3KA)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, tySequence__pJDjdGjSf3HlAOELaHOmSA* val_0) { NimStringDesc* valText; NimStringDesc* escaped; NimStringDesc** valueToWrite; NIM_BOOL needsEscape; NI T1_; NIM_BOOL needsQuote; NI T2_; tyTuple__1sv9cQSEKRFRImWwXwwui7Q T17_; tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg color; NIM_BOOL bright; NimStringDesc* T26_; NimStringDesc* T27_;
|
|
#line 552 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_18));
|
|
#line 553 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 553 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valText = dollar___zyVtQ1jWQ4LABVejbvxuNA(val_0); escaped = (NimStringDesc*)0; valueToWrite = (NimStringDesc**)0;
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T1_ = (NI)0; T1_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_23, ((NI) 0), ((NI) 0)); needsEscape = (((NI) -1) < T1_);
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 566 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T2_ = (NI)0; T2_ = nsuFindCharSet(valText, TM__Pzwg3bav7uuxF9bIXlPxmFQ_24, ((NI) 0), ((NI) 0)); needsQuote = (((NI) -1) < T2_);
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ NIM_BOOL T5_; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_37; NI TM__Pzwg3bav7uuxF9bIXlPxmFQ_38;
|
|
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = needsEscape; if (T5_) goto LA6_;
|
|
T5_ = needsQuote; LA6_: ;
|
|
if (!T5_) goto LA7_;
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimDivInt((valText ? valText->Sup.len : 0), ((NI) 8), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_37)) { raiseOverflow(); }; if (nimAddInt((valText ? valText->Sup.len : 0), (NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_37), &TM__Pzwg3bav7uuxF9bIXlPxmFQ_38)) { raiseOverflow(); }; if (((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_38)) < ((NI) 0) || ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_38)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_38), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = rawNewString(((NI) ((NI)(TM__Pzwg3bav7uuxF9bIXlPxmFQ_38))));
|
|
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
{ if (!needsEscape) goto LA11_;
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 574 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
addQuoted__45fPtFhY4FavRaYwDhRfuA((&escaped), valText);
|
|
}
|
|
goto LA9_;
|
|
LA11_: ;
|
|
{ if (!needsQuote) goto LA14_;
|
|
|
|
#line 576 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34);
|
|
#line 577 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = resizeString(escaped, (valText ? valText->Sup.len : 0) + 0);appendString(escaped, valText);
|
|
#line 578 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
escaped = addChar(escaped, 34); }
|
|
goto LA9_;
|
|
LA14_: ;
|
|
LA9_: ;
|
|
|
|
#line 579 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&escaped); }
|
|
goto LA3_;
|
|
LA7_: ;
|
|
{
|
|
#line 581 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
valueToWrite = (&valText); }
|
|
LA3_: ;
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 584 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
switch ((*r).level) {
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 1):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_3; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 3):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_4; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 4):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_5; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_6; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_7; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 7):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_8; }
|
|
break;
|
|
case ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 0):
|
|
{ T17_ = TM__Pzwg3bav7uuxF9bIXlPxmFQ_2; }
|
|
break;
|
|
}
|
|
color = T17_.Field0; bright = T17_.Field1;
|
|
#line 585 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T26_ = (NimStringDesc*)0; T26_ = ansiForegroundColorCode__aiWNvQSWqGNTUqhMXNZzrQ(color, bright); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T26_ ? T26_->Sup.len : 0) + 0));appendString((*r).output.buffer, T26_);
|
|
#line 586 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (key_0 ? key_0->Sup.len : 0) + 0));appendString((*r).output.buffer, key_0);
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));
|
|
#line 588 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 1));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_27));
|
|
#line 589 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
T27_ = (NimStringDesc*)0; T27_ = ansiStyleCode__9cVIfUEE6Zf6B3dSUGw8cLQ(((NI) 94)); unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, (T27_ ? T27_->Sup.len : 0) + 0));appendString((*r).output.buffer, T27_);
|
|
#line 590 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, ((*valueToWrite) ? (*valueToWrite)->Sup.len : 0) + 0));appendString((*r).output.buffer, (*valueToWrite));
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
unsureAsgnRef((void**) (&(*r).output.buffer), resizeString((*r).output.buffer, 4));appendString((*r).output.buffer, ((NimStringDesc*) &TM__Pzwg3bav7uuxF9bIXlPxmFQ_17));}
|
|
N_LIB_PRIVATE N_NIMCALL(void, chronicles_log_outputDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__Pzwg3bav7uuxF9bIXlPxmFQ_39_2[2];
|
|
static TNimNode* TM__Pzwg3bav7uuxF9bIXlPxmFQ_40_2[2];
|
|
static TNimNode* TM__Pzwg3bav7uuxF9bIXlPxmFQ_41_1[1];
|
|
static TNimNode TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[9];NTI__EhHqp0aF43SxfS6MTF9b0hA_.size = sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA);
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.kind = 18;
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.base = 0;
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.flags = 2;
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.name = "defaultChroniclesStreamLogRecord";
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__EhHqp0aF43SxfS6MTF9b0hA_;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_39_2[0] = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[1];
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.size = sizeof(tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg);
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.kind = 18;
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.base = 0;
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.flags = 2;
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.name = "BufferedOutput[tuple of (StdOutOutput)]";
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__8P9alBgCoSqOy9alEKOH4etg_;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_40_2[0] = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[3];
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.size = sizeof(tyTuple__yobv8JsmBBRNC1NIieLJzQ);
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.kind = 18;
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.base = 0;
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.flags = 3;
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.name = "tuple of (StdOutOutput)";
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__yobv8JsmBBRNC1NIieLJzQ_;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_41_1[0] = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[5];
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.size = sizeof(tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA);
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.kind = 18;
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.base = 0;
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.flags = 3;
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.name = "StdOutOutput";
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__QHttWltDMaZ0hK1JkeyuCA_;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[6].len = 0; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[6].kind = 2;
|
|
NTI__QHttWltDMaZ0hK1JkeyuCA_.node = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[6];
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[5].kind = 1;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[5].offset = offsetof(tyTuple__yobv8JsmBBRNC1NIieLJzQ, Field0);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[5].typ = (&NTI__QHttWltDMaZ0hK1JkeyuCA_);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[5].name = "Field0";
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[4].len = 1; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[4].kind = 2; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[4].sons = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_41_1[0];
|
|
NTI__yobv8JsmBBRNC1NIieLJzQ_.node = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[4];
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[3].kind = 1;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[3].offset = offsetof(tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg, finalOutputs);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[3].typ = (&NTI__yobv8JsmBBRNC1NIieLJzQ_);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[3].name = "finalOutputs";
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_40_2[1] = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[7];
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[7].kind = 1;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[7].offset = offsetof(tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg, buffer);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[7].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[7].name = "buffer";
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[2].len = 2; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[2].kind = 2; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[2].sons = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_40_2[0];
|
|
NTI__8P9alBgCoSqOy9alEKOH4etg_.node = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[2];
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[1].kind = 1;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[1].offset = offsetof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA, output);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[1].typ = (&NTI__8P9alBgCoSqOy9alEKOH4etg_);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[1].name = "output";
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_39_2[1] = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[8];
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[8].kind = 1;
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[8].offset = offsetof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA, level);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[8].typ = (&NTI__9bciZEQ8iC1G2PermjsuXmA_);
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[8].name = "level";
|
|
TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[0].len = 2; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[0].kind = 2; TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[0].sons = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_39_2[0];
|
|
NTI__EhHqp0aF43SxfS6MTF9b0hA_.node = &TM__Pzwg3bav7uuxF9bIXlPxmFQ_0[0];
|
|
}
|
|
|