mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
1728 lines
110 KiB
C
1728 lines
110 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v1/node -o nimcache/release/start_network/stdlib_os.nim.c.o nimcache/release/start_network/stdlib_os.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <time.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 tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
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__7q7q3E6Oj24ZNVJb9aonhAg tyTuple__7q7q3E6Oj24ZNVJb9aonhAg;
|
|
typedef struct tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg;
|
|
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
|
|
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
|
|
typedef struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
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;
|
|
};
|
|
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
|
|
struct RootObj {TNimType* m_type;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;NI32 errorCode;
|
|
};
|
|
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__7q7q3E6Oj24ZNVJb9aonhAg {
|
|
NimStringDesc* Field0;
|
|
NimStringDesc* Field1;
|
|
NimStringDesc* Field2;
|
|
};
|
|
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA { Exception Sup;};
|
|
struct tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg { tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;};
|
|
typedef long tyArray__QS4edQct6fXoghbs69aZ9a8w[3];
|
|
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
|
|
NimStringDesc* Field0;
|
|
NimStringDesc* Field1;
|
|
};
|
|
struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tySequence__sM4lkSb7zS6F7OVMvW9cffQ)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__yu6cxgKBBXbNsTkT9cyMd4g_2)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
|
|
N_LIB_PRIVATE N_NOINLINE(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*, newOSError__JXEuze9ctNbkn51HYBflQLg)(NI32 errorCode, NimStringDesc* additionalInfo);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, osErrorMsg__33xViSVWAmDrexoKkLfMhg)(NI32 errorCode);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
|
|
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);
|
|
static N_INLINE(NIM_CHAR, X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem)(NimStringDesc* s, NI i);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
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, addQuoted__45fPtFhY4FavRaYwDhRfuA)(NimStringDesc** s, NimStringDesc* x);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, findEnvVar__4kc4cxzsC7aY1IOKtOGazA)(NimStringDesc* key_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, getEnvVarsC__580467zYn32AEdYj9cD4LLA)(void);
|
|
static N_INLINE(NIM_BOOL, eqeq___aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x_0, NCSTRING y_0);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
|
static N_INLINE(void, appendChar)(NimStringDesc* dest_0, NIM_CHAR c);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s, NI first);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s, NIM_CHAR sub, NI start, NI last);
|
|
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getApplAux__wpMsAlcjbgVsRya70vX0Ug)(NimStringDesc* procPath);
|
|
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getApplHeuristic__9bfzMt7nzg9apH9cE9c5SozLJw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, paramStr__T0ST6UXXTEqaiXY9akIayng)(NI i);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getEnv__hhED57tMl0Iaa5bOg9cJaig)(NimStringDesc* key_0, NimStringDesc* default_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosjoinPath)(NimStringDesc* head_0, NimStringDesc* tail_0);
|
|
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
|
|
N_LIB_PRIVATE N_NIMCALL(void, joinPathImpl__zwiv42T0z9bOei4bjr58A9cA)(NimStringDesc** result, NI* state_0, NimStringDesc* tail_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, normalizePathEnd__gKUeJXj8CrWvxdeNCA2BXg)(NimStringDesc** path, NIM_BOOL trailingSep);
|
|
N_LIB_PRIVATE N_NIMCALL(void, addNormalizePath__bx9csIXjBBeHkYSkIUixO1g)(NimStringDesc* x_0, NimStringDesc** result, NI* state_0, NIM_CHAR dirSep);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsFile)(NimStringDesc* filename_0);
|
|
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(NI, paramCount__LYkRnwMk6UXTCs9c59cPvZsQ)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsOrCreateDir)(NimStringDesc* dir);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, rawCreateDir__GHseAa61lv8Sp9b2kQD9baYQ)(NimStringDesc* dir);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOSError__CWyPYlyH9a6rAuZckFyVxPA)(NI32 errorCode, NimStringDesc* additionalInfo);
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__9bUWNxbcGnToMWA9b79aTXLIw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsDir)(NimStringDesc* dir);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, WIFSIGNALED__o9b5GK70QLj9ahJeczQ2LyRg)(int s);
|
|
N_LIB_PRIVATE N_NIMCALL(int, WTERMSIG__T7ZeAv6ofGPBA29bsuGG1ug)(int s);
|
|
N_LIB_PRIVATE N_NIMCALL(int, WEXITSTATUS__T7ZeAv6ofGPBA29bsuGG1ug_2)(int s);
|
|
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
|
|
N_LIB_PRIVATE TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
|
|
extern TNimType NTI__9clYsYwyjCqe2PFTuCI3Ubg_;
|
|
extern TNimType NTI__BeJgrOdDsczOwEWOZbRfKA_;
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_4, "Additional info: ", 17);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_5, "unknown OS error", 16);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_18, "/proc/self/exe", 14);
|
|
extern TNimType NTI__9bTGS9b5gqA3m1IgV71Csl0Q_;
|
|
extern TNimType NTI__K39aEGuwNdydKn2WFEpUygg_;
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_20, "index out of bounds, the container is empty", 43);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_21, "index ", 6);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_22, " not in 0 .. ", 13);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_24, "PATH", 4);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_33, "/", 1);
|
|
extern TNimType NTI__HMIVdYjdZYWskTmTQVo5BQ_;
|
|
extern TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_43, "Failed to create \'", 18);
|
|
STRING_LITERAL(TM__yu6cxgKBBXbNsTkT9cyMd4g_44, "\'", 1);
|
|
N_LIB_PRIVATE NIM_THREADVAR NIM_BOOL envComputed__LLyFo9bsdu1ZXMDvAe8DhrQ;
|
|
N_LIB_PRIVATE NIM_THREADVAR tySequence__sM4lkSb7zS6F7OVMvW9cffQ* environment__mlhK49b6YMgc9cgrcYkKq9a3g;
|
|
extern TNimType* nimTypeRoot;
|
|
extern NCSTRING* environ;
|
|
extern int cmdCount;
|
|
extern NCSTRING* cmdLine;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
static N_NIMCALL(void, Marker_tySequence__sM4lkSb7zS6F7OVMvW9cffQ)(void* p, NI op) {
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* a;
|
|
NI T1_; a = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_], op); }
|
|
}
|
|
static N_NIMCALL(void, TM__yu6cxgKBBXbNsTkT9cyMd4g_2)(void) {
|
|
nimGCvisit((void*)environment__mlhK49b6YMgc9cgrcYkKq9a3g, 0);}
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__9bUWNxbcGnToMWA9b79aTXLIw)(void) { NI32 result; result = (NI32)0;
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
result = errno; return result;}
|
|
|
|
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, osErrorMsg__33xViSVWAmDrexoKkLfMhg)(NI32 errorCode) { NimStringDesc* result; result = (NimStringDesc*)0;
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
result = ((NimStringDesc*) NIM_NIL);
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
{ NCSTRING T5_;
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
if (!!((errorCode == ((NI32) 0)))) goto LA3_;
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T5_ = (NCSTRING)0; T5_ = strerror(errorCode); result = cstrToNimstr(T5_); }
|
|
LA3_: ;
|
|
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 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_CHAR, X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem)(NimStringDesc* s, NI i) { NIM_CHAR result; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_3; result = (NIM_CHAR)0;
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2519 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimSubInt((s ? s->Sup.len : 0), i, &TM__yu6cxgKBBXbNsTkT9cyMd4g_3)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_3)) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_3),(s ? s->Sup.len : 0)-1); } result = s->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_3)]; return result;}
|
|
|
|
#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 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
N_LIB_PRIVATE N_NOINLINE(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*, newOSError__JXEuze9ctNbkn51HYBflQLg)(NI32 errorCode, NimStringDesc* additionalInfo) { tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA* result; tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA* e;{ result = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*)0; e = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*)0;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
e = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*) newObj((&NTI__9clYsYwyjCqe2PFTuCI3Ubg_), sizeof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA)); (*e).Sup.Sup.Sup.m_type = (&NTI__BeJgrOdDsczOwEWOZbRfKA_); (*e).Sup.Sup.name = "OSError";
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
(*e).errorCode = errorCode;
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
asgnRef((void**) (&(*e).Sup.Sup.message), osErrorMsg__33xViSVWAmDrexoKkLfMhg(errorCode));
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
{
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
if (!(((NI) 0) < (additionalInfo ? additionalInfo->Sup.len : 0))) goto LA3_;
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
{ NIM_BOOL T7_; NIM_CHAR T9_;
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T7_ = (NIM_BOOL)0;
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T7_ = (((NI) 0) < ((*e).Sup.Sup.message ? (*e).Sup.Sup.message->Sup.len : 0)); if (!(T7_)) goto LA8_;
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T9_ = (NIM_CHAR)0; T9_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem((*e).Sup.Sup.message, ((NI) 1)); T7_ = !(((NU8)(T9_) == (NU8)(10))); LA8_: ;
|
|
if (!T7_) goto LA10_;
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
asgnRef((void**) (&(*e).Sup.Sup.message), addChar((*e).Sup.Sup.message, 10)); }
|
|
LA10_: ;
|
|
|
|
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
asgnRef((void**) (&(*e).Sup.Sup.message), resizeString((*e).Sup.Sup.message, 17));appendString((*e).Sup.Sup.message, ((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_4));
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
addQuoted__45fPtFhY4FavRaYwDhRfuA((&(*e).Sup.Sup.message), additionalInfo);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
{ NimStringDesc* T16_;
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
if (!(((*e).Sup.Sup.message ? (*e).Sup.Sup.message->Sup.len : 0) == 0)) goto LA14_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T16_ = (NimStringDesc*)0; T16_ = (*e).Sup.Sup.message; (*e).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_5)); if (T16_) nimGCunrefNoCycle(T16_); }
|
|
LA14_: ;
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
result = e; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOSError__CWyPYlyH9a6rAuZckFyVxPA)(NI32 errorCode, NimStringDesc* additionalInfo) { tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA* T1_;
|
|
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
|
|
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
T1_ = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*)0; T1_ = newOSError__JXEuze9ctNbkn51HYBflQLg(errorCode, additionalInfo);
|
|
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/oserr.nim"
|
|
raiseExceptionEx((Exception*)T1_, "OSError", "raiseOSError", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/includes/oserr.nim", 94);}
|
|
|
|
#line 2860 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, eqeq___aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x_0, NCSTRING y_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
{
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (!(((void*) (x_0)) == ((void*) (y_0)))) goto LA3_;
|
|
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NIM_BOOL T6_;
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (NIM_BOOL)0;
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (x_0 == 0); if (T6_) goto LA7_;
|
|
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (y_0 == 0); LA7_: ;
|
|
if (!T6_) goto LA8_;
|
|
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = NIM_FALSE; }
|
|
goto LA1_;
|
|
LA8_: ;
|
|
{ int T11_;
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T11_ = (int)0; T11_ = strcmp(x_0, y_0); result = (T11_ == ((NI32) 0)); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, getEnvVarsC__580467zYn32AEdYj9cD4LLA)(void) {
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
{ NI i;
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if (!!(envComputed__LLyFo9bsdu1ZXMDvAe8DhrQ)) goto LA3_;
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if (environment__mlhK49b6YMgc9cgrcYkKq9a3g) { nimGCunrefNoCycle(environment__mlhK49b6YMgc9cgrcYkKq9a3g); environment__mlhK49b6YMgc9cgrcYkKq9a3g = NIM_NIL; }
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
i = ((NI) 0); {
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
while (1) { NimStringDesc* T12_; NI T13_; NimStringDesc* T14_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_6;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
{ NIM_BOOL T9_;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T9_ = (NIM_BOOL)0; T9_ = eqeq___aqip9cmQIuefPKdd25wuEEwsystem(environ[i], NIM_NIL); if (!T9_) goto LA10_;
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
goto LA5;
|
|
}
|
|
LA10_: ;
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T12_ = (NimStringDesc*)0; T12_ = cstrToNimstr(environ[i]); asgnRef((void**) (&environment__mlhK49b6YMgc9cgrcYkKq9a3g), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(environment__mlhK49b6YMgc9cgrcYkKq9a3g), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_))); T13_ = environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len++; T14_ = (NimStringDesc*)0; T14_ = environment__mlhK49b6YMgc9cgrcYkKq9a3g->data[T13_]; environment__mlhK49b6YMgc9cgrcYkKq9a3g->data[T13_] = copyStringRC1(T12_); if (T14_) nimGCunrefNoCycle(T14_);
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_6)) { raiseOverflow(); }; i = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_6); }
|
|
} LA5: ;
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
envComputed__LLyFo9bsdu1ZXMDvAe8DhrQ = NIM_TRUE; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendChar)(NimStringDesc* dest_0, NIM_CHAR c) {
|
|
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest_0).data[(*dest_0).Sup.len] = c;
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest_0).data[(NI)((*dest_0).Sup.len + ((NI) 1))] = 0;
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest_0).Sup.len += ((NI) 1);}
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, findEnvVar__4kc4cxzsC7aY1IOKtOGazA)(NimStringDesc* key_0) { NI result; NimStringDesc* temp; NimStringDesc* T1_;{ result = (NI)0;
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
getEnvVarsC__580467zYn32AEdYj9cD4LLA();
|
|
|
|
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T1_ = (NimStringDesc*)0; T1_ = rawNewString((key_0 ? key_0->Sup.len : 0) + 1);appendString(T1_, key_0);appendChar(T1_, 61); temp = T1_; { NI i; NI colontmp_; NI T3_; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T3_ = ((environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)-1); colontmp_ = T3_;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 0); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__yu6cxgKBBXbNsTkT9cyMd4g_7;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA5;
|
|
|
|
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
i = res;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
{ NIM_BOOL T8_;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if ((NU)(i) >= (NU)(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)){ raiseIndexError2(i,(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)-1); }
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = nsuStartsWith(environment__mlhK49b6YMgc9cgrcYkKq9a3g->data[i], temp); if (!T8_) goto LA9_;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
result = i; goto BeforeRet_;
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_7)) { raiseOverflow(); }; res = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_7); } LA5: ;
|
|
}
|
|
}
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
result = ((NI) -1); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#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 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getEnv__hhED57tMl0Iaa5bOg9cJaig)(NimStringDesc* key_0, NimStringDesc* default_0) { NimStringDesc* result; NI i;{ result = (NimStringDesc*)0;
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
i = findEnvVar__4kc4cxzsC7aY1IOKtOGazA(key_0);
|
|
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
{ NI T5_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_8;
|
|
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if (!(((NI) 0) <= i)) goto LA3_;
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if ((NU)(i) >= (NU)(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)){ raiseIndexError2(i,(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)-1); }
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
if ((NU)(i) >= (NU)(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)){ raiseIndexError2(i,(environment__mlhK49b6YMgc9cgrcYkKq9a3g ? environment__mlhK49b6YMgc9cgrcYkKq9a3g->Sup.len : 0)-1); }
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T5_ = (NI)0; T5_ = nsuFindChar(environment__mlhK49b6YMgc9cgrcYkKq9a3g->data[i], 61, ((NI) 0), ((NI) 0)); if (nimAddInt(T5_, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_8)) { raiseOverflow(); };
|
|
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
result = substr__iGg0RIKceRvsmvq8FUHOEw(environment__mlhK49b6YMgc9cgrcYkKq9a3g->data[i], (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_8)); goto BeforeRet_;
|
|
}
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NCSTRING env;
|
|
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
env = getenv(nimToCStringConv(key_0));
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
{ NIM_BOOL T9_;
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
T9_ = (NIM_BOOL)0; T9_ = eqeq___aqip9cmQIuefPKdd25wuEEwsystem(env, NIM_NIL); if (!T9_) goto LA10_;
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
result = copyString(default_0); goto BeforeRet_;
|
|
}
|
|
LA10_: ;
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/includes/osenv.nim"
|
|
result = cstrToNimstr(env); }
|
|
LA1_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 637 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, nossplitFile)(NimStringDesc* path, tyTuple__7q7q3E6Oj24ZNVJb9aonhAg* Result) { NI namePos; NI dotPos; chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).Field0, NIM_NIL); unsureAsgnRef((void**)&(*Result).Field1, NIM_NIL); unsureAsgnRef((void**)&(*Result).Field2, NIM_NIL);
|
|
#line 672 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
namePos = ((NI) 0);
|
|
#line 673 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
dotPos = ((NI) 0); { NI i; NI colontmp_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_9; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt((path ? path->Sup.len : 0), ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_9)) { raiseOverflow(); }; colontmp_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_9);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = colontmp_; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__yu6cxgKBBXbNsTkT9cyMd4g_16;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(((NI) 0) <= res)) goto LA3;
|
|
|
|
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
i = res;
|
|
#line 675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T6_;
|
|
#line 675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T6_ = (NIM_BOOL)0;
|
|
#line 675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(i) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2(i,(path ? path->Sup.len : 0)-1); } T6_ = (((NU8)(path->data[i])) == ((NU8)(47)) || ((NU8)(path->data[i])) == ((NU8)(47))); if (T6_) goto LA7_;
|
|
|
|
#line 675 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T6_ = (i == ((NI) 0)); LA7_: ;
|
|
if (!T6_) goto LA8_;
|
|
|
|
#line 676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI T14_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_11;
|
|
#line 676 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(i) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2(i,(path ? path->Sup.len : 0)-1); } if (!(((NU8)(path->data[i])) == ((NU8)(47)) || ((NU8)(path->data[i])) == ((NU8)(47)))) goto LA12_;
|
|
|
|
#line 677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T14_ = (NI)0;
|
|
#line 677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T17_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_10;
|
|
#line 2018 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2018 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T17_ = (NIM_BOOL)0; T17_ = NIM_LIKELY((((NI) 1) <= i)); if (!T17_) goto LA18_;
|
|
|
|
#line 677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_10)) { raiseOverflow(); }; T14_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_10); }
|
|
goto LA15_;
|
|
LA18_: ;
|
|
{ T14_ = ((NI) 0); }
|
|
LA15_: ;
|
|
|
|
#line 677 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field0), substr__2yh9cer0ymNRHlOOg8P7IuA(path, ((NI) 0), T14_));
|
|
#line 678 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 678 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_11)) { raiseOverflow(); }; namePos = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_11); }
|
|
LA12_: ;
|
|
|
|
#line 679 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI TM__yu6cxgKBBXbNsTkT9cyMd4g_12;
|
|
#line 679 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(i < dotPos)) goto LA23_;
|
|
|
|
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(dotPos, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_12)) { raiseOverflow(); };
|
|
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field1), substr__2yh9cer0ymNRHlOOg8P7IuA(path, namePos, (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_12)));
|
|
#line 681 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 681 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field2), substr__iGg0RIKceRvsmvq8FUHOEw(path, dotPos)); }
|
|
goto LA21_;
|
|
LA23_: ;
|
|
{
|
|
#line 683 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 683 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field1), substr__iGg0RIKceRvsmvq8FUHOEw(path, namePos)); }
|
|
LA21_: ;
|
|
|
|
#line 684 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA1;
|
|
}
|
|
goto LA4_;
|
|
LA8_: ;
|
|
{ NIM_BOOL T27_; NIM_BOOL T28_; NIM_BOOL T29_; NIM_BOOL T30_; NIM_BOOL T31_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_13; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_14; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_15;
|
|
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T27_ = (NIM_BOOL)0;
|
|
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T28_ = (NIM_BOOL)0;
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T29_ = (NIM_BOOL)0;
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T30_ = (NIM_BOOL)0;
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T31_ = (NIM_BOOL)0;
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(i) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2(i,(path ? path->Sup.len : 0)-1); } T31_ = ((NU8)(path->data[i]) == (NU8)(46)); if (!(T31_)) goto LA32_;
|
|
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T31_ = (((NI) 0) < i); LA32_: ;
|
|
T30_ = T31_; if (!(T30_)) goto LA33_;
|
|
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 685 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt((path ? path->Sup.len : 0), ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_13)) { raiseOverflow(); }; T30_ = (i < (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_13)); LA33_: ;
|
|
T29_ = T30_; if (!(T29_)) goto LA34_;
|
|
|
|
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_14)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_14)) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_14),(path ? path->Sup.len : 0)-1); } T29_ = !((((NU8)(path->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_14)])) == ((NU8)(47)) || ((NU8)(path->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_14)])) == ((NU8)(47)))); LA34_: ;
|
|
T28_ = T29_; if (!(T28_)) goto LA35_;
|
|
|
|
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_15)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_15)) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_15),(path ? path->Sup.len : 0)-1); } T28_ = !(((NU8)(path->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_15)]) == (NU8)(46))); LA35_: ;
|
|
T27_ = T28_; if (!(T27_)) goto LA36_;
|
|
|
|
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T27_ = (dotPos == ((NI) 0)); LA36_: ;
|
|
if (!T27_) goto LA37_;
|
|
|
|
#line 688 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
dotPos = i; }
|
|
goto LA4_;
|
|
LA37_: ;
|
|
LA4_: ;
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_16)) { raiseOverflow(); }; res = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_16); } LA3: ;
|
|
}
|
|
} LA1: ;
|
|
}
|
|
|
|
#line 2813 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getApplAux__wpMsAlcjbgVsRya70vX0Ug)(NimStringDesc* procPath) { NimStringDesc* result; NI len_1; result = (NimStringDesc*)0;
|
|
#line 2814 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2814 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2814 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = mnewString(((NI) 256));
|
|
#line 2815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2815 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
len_1 = readlink(nimToCStringConv(procPath), nimToCStringConv(result), ((NI) 256));
|
|
#line 2816 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI TM__yu6cxgKBBXbNsTkT9cyMd4g_17;
|
|
#line 2816 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(((NI) 256) < len_1)) goto LA3_;
|
|
|
|
#line 2817 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2817 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2817 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimAddInt(len_1, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_17)) { raiseOverflow(); }; if (((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_17)) < ((NI) 0) || ((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_17)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_17), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 2817 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = mnewString(((NI) ((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_17))));
|
|
#line 2818 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2818 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
len_1 = readlink(nimToCStringConv(procPath), nimToCStringConv(result), len_1); }
|
|
LA3_: ;
|
|
|
|
#line 2819 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((len_1) < ((NI) 0) || (len_1) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(len_1, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = setLengthStr(result, ((NI) (len_1))); return result;}
|
|
|
|
#line 2735 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, paramStr__T0ST6UXXTEqaiXY9akIayng)(NI i) { NimStringDesc* result; tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg* T7_;{ result = (NimStringDesc*)0;
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (i < ((NI) (cmdCount))); if (!(T3_)) goto LA4_;
|
|
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (((NI) 0) <= i); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2737 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = cstrToNimstr(cmdLine[i]); goto BeforeRet_;
|
|
}
|
|
LA5_: ;
|
|
T7_ = (tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg*)0; T7_ = (tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg*) newObj((&NTI__9bTGS9b5gqA3m1IgV71Csl0Q_), sizeof(tyObject_IndexError__K39aEGuwNdydKn2WFEpUygg)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__K39aEGuwNdydKn2WFEpUygg_); (*T7_).Sup.Sup.name = "IndexError";
|
|
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI TM__yu6cxgKBBXbNsTkT9cyMd4g_19; NimStringDesc* T12_;
|
|
#line 7 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/indexerrors.nim"
|
|
|
|
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(cmdCount, ((NI32) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_19)) { raiseOverflow(); }; if (TM__yu6cxgKBBXbNsTkT9cyMd4g_19 < (-2147483647 -1) || TM__yu6cxgKBBXbNsTkT9cyMd4g_19 > 2147483647){ raiseOverflow(); } if (!((NI32)(TM__yu6cxgKBBXbNsTkT9cyMd4g_19) < ((NI32) 0))) goto LA10_;
|
|
T12_ = (NimStringDesc*)0; T12_ = (*T7_).Sup.Sup.message; (*T7_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_20)); if (T12_) nimGCunrefNoCycle(T12_); }
|
|
goto LA8_;
|
|
LA10_: ;
|
|
{ NimStringDesc* T14_; NimStringDesc* T15_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_23; NimStringDesc* T16_;
|
|
#line 8 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/indexerrors.nim"
|
|
T14_ = (NimStringDesc*)0;
|
|
#line 8 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/indexerrors.nim"
|
|
T15_ = (NimStringDesc*)0; T15_ = nimIntToStr(i);
|
|
#line 8 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/indexerrors.nim"
|
|
|
|
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(cmdCount, ((NI32) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_23)) { raiseOverflow(); }; if (TM__yu6cxgKBBXbNsTkT9cyMd4g_23 < (-2147483647 -1) || TM__yu6cxgKBBXbNsTkT9cyMd4g_23 > 2147483647){ raiseOverflow(); } T16_ = (NimStringDesc*)0; T16_ = nimIntToStr(((NI) ((NI32)(TM__yu6cxgKBBXbNsTkT9cyMd4g_23)))); T14_ = rawNewString((T15_ ? T15_->Sup.len : 0) + (T16_ ? T16_->Sup.len : 0) + 19);appendString(T14_, ((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_21));appendString(T14_, T15_);appendString(T14_, ((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_22));appendString(T14_, T16_); asgnRef((void**) (&(*T7_).Sup.Sup.message), T14_); }
|
|
LA8_: ;
|
|
asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
|
|
#line 2738 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
raiseExceptionEx((Exception*)T7_, "IndexError", "paramStr", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/os.nim", 2738); }BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, normalizePathEnd__gKUeJXj8CrWvxdeNCA2BXg)(NimStringDesc** path, NIM_BOOL trailingSep) { NI i;{
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(((*path) ? (*path)->Sup.len : 0) == ((NI) 0))) goto LA3_;
|
|
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
i = ((*path) ? (*path)->Sup.len : 0); {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
while (1) {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(((NI) 1) <= i)) goto LA6;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI TM__yu6cxgKBBXbNsTkT9cyMd4g_28; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_29;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_28)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_28)) >= (NU)((*path) ? (*path)->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_28),((*path) ? (*path)->Sup.len : 0)-1); } if (!(((NU8)((*path)->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_28)])) == ((NU8)(47)) || ((NU8)((*path)->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_28)])) == ((NU8)(47)))) goto LA9_;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_29)) { raiseOverflow(); }; i = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_29); }
|
|
goto LA7_;
|
|
LA9_: ;
|
|
{ NIM_BOOL T12_; NIM_BOOL T13_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_30; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_31; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_32;
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T12_ = (NIM_BOOL)0;
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T13_ = (NIM_BOOL)0;
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_30)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_30)) >= (NU)((*path) ? (*path)->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_30),((*path) ? (*path)->Sup.len : 0)-1); } T13_ = ((NU8)((*path)->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_30)]) == (NU8)(46)); if (!(T13_)) goto LA14_;
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T13_ = (((NI) 2) <= i); LA14_: ;
|
|
T12_ = T13_; if (!(T12_)) goto LA15_;
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 2), &TM__yu6cxgKBBXbNsTkT9cyMd4g_31)) { raiseOverflow(); }; if ((NU)((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_31)) >= (NU)((*path) ? (*path)->Sup.len : 0)){ raiseIndexError2((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_31),((*path) ? (*path)->Sup.len : 0)-1); } T12_ = (((NU8)((*path)->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_31)])) == ((NU8)(47)) || ((NU8)((*path)->data[(NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_31)])) == ((NU8)(47))); LA15_: ;
|
|
if (!T12_) goto LA16_;
|
|
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_32)) { raiseOverflow(); }; i = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_32); }
|
|
goto LA7_;
|
|
LA16_: ;
|
|
{
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA5;
|
|
}
|
|
LA7_: ;
|
|
} LA6: ;
|
|
} LA5: ;
|
|
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ if (!trailingSep) goto LA21_;
|
|
|
|
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((i) < ((NI) 0) || (i) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*path)), setLengthStr((*path), ((NI) (i))));
|
|
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*path)), addChar((*path), 47)); }
|
|
goto LA19_;
|
|
LA21_: ;
|
|
{
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(((NI) 0) < i)) goto LA24_;
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((i) < ((NI) 0) || (i) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(i, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*path)), setLengthStr((*path), ((NI) (i)))); }
|
|
goto LA19_;
|
|
LA24_: ;
|
|
{
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*path)), copyString(((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_33))); }
|
|
LA19_: ;
|
|
}BeforeRet_: ;
|
|
}
|
|
|
|
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, joinPathImpl__zwiv42T0z9bOei4bjr58A9cA)(NimStringDesc** result, NI* state_0, NimStringDesc* tail_0) { NIM_BOOL trailingSep; NIM_BOOL T1_; NIM_BOOL T2_; NIM_CHAR T4_; NIM_BOOL T6_; NIM_BOOL T8_; NIM_CHAR T10_;
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T2_ = (NIM_BOOL)0;
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T2_ = (((NI) 0) < (tail_0 ? tail_0->Sup.len : 0)); if (!(T2_)) goto LA3_;
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T4_ = (NIM_CHAR)0; T4_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem(tail_0, ((NI) 1)); T2_ = (((NU8)(T4_)) == ((NU8)(47)) || ((NU8)(T4_)) == ((NU8)(47))); LA3_: ;
|
|
T1_ = T2_; if (T1_) goto LA5_;
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T6_ = (NIM_BOOL)0;
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T6_ = ((tail_0 ? tail_0->Sup.len : 0) == ((NI) 0)); if (!(T6_)) goto LA7_;
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T8_ = (NIM_BOOL)0;
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T8_ = (((NI) 0) < ((*result) ? (*result)->Sup.len : 0)); if (!(T8_)) goto LA9_;
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T10_ = (NIM_CHAR)0; T10_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem((*result), ((NI) 1)); T8_ = (((NU8)(T10_)) == ((NU8)(47)) || ((NU8)(T10_)) == ((NU8)(47))); LA9_: ;
|
|
T6_ = T8_; LA7_: ;
|
|
T1_ = T6_; LA5_: ;
|
|
trailingSep = T1_;
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
normalizePathEnd__gKUeJXj8CrWvxdeNCA2BXg(result, NIM_FALSE);
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
addNormalizePath__bx9csIXjBBeHkYSkIUixO1g(tail_0, result, state_0, 47);
|
|
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
normalizePathEnd__gKUeJXj8CrWvxdeNCA2BXg(result, trailingSep);
|
|
}
|
|
|
|
#line 148 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosjoinPath)(NimStringDesc* head_0, NimStringDesc* tail_0) { NimStringDesc* result; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_27; NI state_1; result = (NimStringDesc*)0;
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimAddInt((head_0 ? head_0->Sup.len : 0), (tail_0 ? tail_0->Sup.len : 0), &TM__yu6cxgKBBXbNsTkT9cyMd4g_27)) { raiseOverflow(); }; if (((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_27)) < ((NI) 0) || ((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_27)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_27), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = rawNewString(((NI) ((NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_27))));
|
|
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
state_1 = ((NI) 0);
|
|
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
joinPathImpl__zwiv42T0z9bOei4bjr58A9cA((&result), (&state_1), head_0);
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
joinPathImpl__zwiv42T0z9bOei4bjr58A9cA((&result), (&state_1), tail_0);
|
|
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 1077 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsFile)(NimStringDesc* filename_0) { NIM_BOOL result; struct stat res; NIM_BOOL T1_; int T2_;{ result = (NIM_BOOL)0; nimZeroMem((void*)(&res), sizeof(struct stat));
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T2_ = (int)0; T2_ = stat(nimToCStringConv(filename_0), (&res)); T1_ = (((NI32) 0) <= T2_); if (!(T1_)) goto LA3_;
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = S_ISREG(res.st_mode); LA3_: ;
|
|
result = T1_; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 2863 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getApplHeuristic__9bfzMt7nzg9apH9cE9c5SozLJw)(void) { NimStringDesc* result;{ result = (NimStringDesc*)0;
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = paramStr__T0ST6UXXTEqaiXY9akIayng(((NI) 0));
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (((NI) 0) < (result ? result->Sup.len : 0)); if (!(T3_)) goto LA4_;
|
|
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2868 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(((NI) 0),(result ? result->Sup.len : 0)-1); } T3_ = !(((NU8)(result->data[((NI) 0)]) == (NU8)(47))); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
{ NimStringDesc* p_1; NimStringDesc* colontmp_; NI lastX60gensym14350038_; NI splitsX60gensym14350039_; p_1 = (NimStringDesc*)0; colontmp_ = (NimStringDesc*)0;
|
|
#line 2870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
colontmp_ = getEnv__hhED57tMl0Iaa5bOg9cJaig(((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_24), ((NimStringDesc*) NIM_NIL));
|
|
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
lastX60gensym14350038_ = ((NI) 0);
|
|
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
splitsX60gensym14350039_ = ((NI) -1); {
|
|
#line 492 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
while (1) { NI firstX60gensym14350040_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_26; NimStringDesc* x_1; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_34; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_35;
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (!(lastX60gensym14350038_ <= (colontmp_ ? colontmp_->Sup.len : 0))) goto LA9;
|
|
|
|
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
firstX60gensym14350040_ = lastX60gensym14350038_; {
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
while (1) { NIM_BOOL T12_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_25;
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
T12_ = (NIM_BOOL)0;
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
T12_ = (lastX60gensym14350038_ < (colontmp_ ? colontmp_->Sup.len : 0)); if (!(T12_)) goto LA13_;
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if ((NU)(lastX60gensym14350038_) >= (NU)(colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(lastX60gensym14350038_,(colontmp_ ? colontmp_->Sup.len : 0)-1); } T12_ = !((((NU8)(colontmp_->data[lastX60gensym14350038_])) == ((NU8)(58)))); LA13_: ;
|
|
if (!T12_) goto LA11;
|
|
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (nimAddInt(lastX60gensym14350038_, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_25)) { raiseOverflow(); }; lastX60gensym14350038_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_25); } LA11: ;
|
|
}
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
{
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (!(splitsX60gensym14350039_ == ((NI) 0))) goto LA16_;
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
lastX60gensym14350038_ = (colontmp_ ? colontmp_->Sup.len : 0); }
|
|
LA16_: ;
|
|
|
|
#line 2870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (nimSubInt(lastX60gensym14350038_, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_26)) { raiseOverflow(); };
|
|
#line 2870 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
p_1 = substr__2yh9cer0ymNRHlOOg8P7IuA(colontmp_, firstX60gensym14350040_, (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_26));
|
|
#line 2871 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2871 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
x_1 = nosjoinPath(p_1, result);
|
|
#line 2872 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T20_;
|
|
#line 2872 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2872 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T20_ = (NIM_BOOL)0; T20_ = nosexistsFile(x_1); if (!T20_) goto LA21_;
|
|
|
|
#line 2872 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2872 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = copyString(x_1); goto BeforeRet_;
|
|
}
|
|
LA21_: ;
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
{
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (!(splitsX60gensym14350039_ == ((NI) 0))) goto LA25_;
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
goto LA8;
|
|
}
|
|
LA25_: ;
|
|
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (nimSubInt(splitsX60gensym14350039_, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_34)) { raiseOverflow(); }; splitsX60gensym14350039_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_34);
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/strutils.nim"
|
|
if (nimAddInt(lastX60gensym14350038_, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_35)) { raiseOverflow(); }; lastX60gensym14350038_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_35); } LA9: ;
|
|
} LA8: ;
|
|
}
|
|
}
|
|
LA5_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 2906 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetAppFilename)(void) { NimStringDesc* result; result = (NimStringDesc*)0;
|
|
#line 2956 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2956 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = getApplAux__wpMsAlcjbgVsRya70vX0Ug(((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_18));
|
|
#line 2969 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2969 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2969 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!((result ? result->Sup.len : 0) == ((NI) 0))) goto LA3_;
|
|
|
|
#line 2970 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2970 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = getApplHeuristic__9bfzMt7nzg9apH9cE9c5SozLJw(); }
|
|
LA3_: ;
|
|
return result;}
|
|
|
|
#line 2740 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, paramCount__LYkRnwMk6UXTCs9c59cPvZsQ)(void) { NI result; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_36; result = (NI)0;
|
|
#line 2742 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2742 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(cmdCount, ((NI32) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_36)) { raiseOverflow(); }; if (TM__yu6cxgKBBXbNsTkT9cyMd4g_36 < (-2147483647 -1) || TM__yu6cxgKBBXbNsTkT9cyMd4g_36 > 2147483647){ raiseOverflow(); } result = ((NI) ((NI32)(TM__yu6cxgKBBXbNsTkT9cyMd4g_36))); return result;}
|
|
|
|
#line 2745 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, commandLineParams__K1tl5In8R9bx536wDa4ggRw)(void) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
|
|
#line 2770 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = NIM_NIL; { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 2771 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2771 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
colontmp_ = paramCount__LYkRnwMk6UXTCs9c59cPvZsQ();
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 1); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NimStringDesc* T4_; NI T5_; NimStringDesc* T6_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_37;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA3;
|
|
|
|
#line 2771 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
i = res;
|
|
#line 2772 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2772 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2772 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T4_ = (NimStringDesc*)0; T4_ = paramStr__T0ST6UXXTEqaiXY9akIayng(i); result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_)); T5_ = result->Sup.len++; T6_ = (NimStringDesc*)0; T6_ = result->data[T5_]; result->data[T5_] = copyStringRC1(T4_); if (T6_) nimGCunrefNoCycle(T6_);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_37)) { raiseOverflow(); }; res = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_37); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, nossplitPath)(NimStringDesc* path, tyTuple__UV3llMMYFckfui8YMBuUZA* Result) { NI sepPos; chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).Field0, NIM_NIL); unsureAsgnRef((void**)&(*Result).Field1, NIM_NIL);
|
|
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
sepPos = ((NI) -1); { NI i; NI colontmp_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_38; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt((path ? path->Sup.len : 0), ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_38)) { raiseOverflow(); }; colontmp_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_38);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = colontmp_; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__yu6cxgKBBXbNsTkT9cyMd4g_39;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(((NI) 0) <= res)) goto LA3;
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
i = res;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(i) >= (NU)(path ? path->Sup.len : 0)){ raiseIndexError2(i,(path ? path->Sup.len : 0)-1); } if (!(((NU8)(path->data[i])) == ((NU8)(47)) || ((NU8)(path->data[i])) == ((NU8)(47)))) goto LA6_;
|
|
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
sepPos = i;
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA1;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_39)) { raiseOverflow(); }; res = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_39); } LA3: ;
|
|
}
|
|
} LA1: ;
|
|
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI T12_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_41;
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(((NI) 0) <= sepPos)) goto LA10_;
|
|
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T12_ = (NI)0;
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T15_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_40;
|
|
#line 2018 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2018 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T15_ = (NIM_BOOL)0; T15_ = NIM_LIKELY((((NI) 1) <= sepPos)); if (!T15_) goto LA16_;
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(sepPos, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_40)) { raiseOverflow(); }; T12_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_40); }
|
|
goto LA13_;
|
|
LA16_: ;
|
|
{ T12_ = ((NI) 0); }
|
|
LA13_: ;
|
|
|
|
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field0), substr__2yh9cer0ymNRHlOOg8P7IuA(path, ((NI) 0), T12_));
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimAddInt(sepPos, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_41)) { raiseOverflow(); };
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field1), substr__iGg0RIKceRvsmvq8FUHOEw(path, (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_41))); }
|
|
goto LA8_;
|
|
LA10_: ;
|
|
{
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field0), ((NimStringDesc*) NIM_NIL));
|
|
#line 275 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
unsureAsgnRef((void**) (&(*Result).Field1), copyString(path)); }
|
|
LA8_: ;
|
|
}
|
|
|
|
#line 2221 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, rawCreateDir__GHseAa61lv8Sp9b2kQD9baYQ)(NimStringDesc* dir) { NIM_BOOL result; int res; result = (NIM_BOOL)0;
|
|
#line 2244 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2244 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
res = mkdir(nimToCStringConv(dir), ((mode_t) 511));
|
|
#line 2245 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2245 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(res == ((NI32) 0))) goto LA3_;
|
|
|
|
#line 2246 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{
|
|
#line 2247 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(errno == ((int) 17))) goto LA6_;
|
|
|
|
#line 2248 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = NIM_FALSE; }
|
|
goto LA1_;
|
|
LA6_: ;
|
|
{ NI32 T9_;
|
|
#line 2251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T9_ = (NI32)0; T9_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 2251 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
raiseOSError__CWyPYlyH9a6rAuZckFyVxPA(T9_, dir);
|
|
}
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 1097 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsDir)(NimStringDesc* dir) { NIM_BOOL result; struct stat res; NIM_BOOL T1_; int T2_;{ result = (NIM_BOOL)0; nimZeroMem((void*)(&res), sizeof(struct stat));
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T2_ = (int)0; T2_ = stat(nimToCStringConv(dir), (&res)); T1_ = (((NI32) 0) <= T2_); if (!(T1_)) goto LA3_;
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = S_ISDIR(res.st_mode); LA3_: ;
|
|
result = T1_; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 2265 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsOrCreateDir)(NimStringDesc* dir) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 2279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T1_ = (NIM_BOOL)0; T1_ = rawCreateDir__GHseAa61lv8Sp9b2kQD9baYQ(dir); result = !(T1_);
|
|
#line 2280 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ if (!result) goto LA4_;
|
|
|
|
#line 2282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T8_; tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw* T11_; NimStringDesc* T12_;
|
|
#line 2282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2282 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = nosexistsDir(dir); if (!!(T8_)) goto LA9_;
|
|
T11_ = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*)0; T11_ = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*) newObj((&NTI__HMIVdYjdZYWskTmTQVo5BQ_), sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw)); (*T11_).Sup.Sup.Sup.m_type = (&NTI__iLZrPn9anoh9ad1MmO0RczFw_); (*T11_).Sup.Sup.name = "IOError";
|
|
#line 2283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T12_ = (NimStringDesc*)0; T12_ = rawNewString((dir ? dir->Sup.len : 0) + 19);appendString(T12_, ((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_43));appendString(T12_, dir);appendString(T12_, ((NimStringDesc*) &TM__yu6cxgKBBXbNsTkT9cyMd4g_44)); asgnRef((void**) (&(*T11_).Sup.Sup.message), T12_); asgnRef((void**) (&(*T11_).Sup.Sup.parent), NIM_NIL);
|
|
#line 2283 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
raiseExceptionEx((Exception*)T11_, "IOError", "existsOrCreateDir", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/os.nim", 2283); }
|
|
LA9_: ;
|
|
}
|
|
LA4_: ;
|
|
return result;}
|
|
|
|
#line 2285 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, noscreateDir)(NimStringDesc* dir) { NIM_BOOL omitNext;
|
|
#line 2301 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
omitNext = NIM_FALSE; { NI i; NI colontmp_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_42; NI res; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 2304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt((dir ? dir->Sup.len : 0), ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_42)) { raiseOverflow(); }; colontmp_ = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_42);
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = ((NI) 1); {
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__yu6cxgKBBXbNsTkT9cyMd4g_46;
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(res <= colontmp_)) goto LA3;
|
|
|
|
#line 2304 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
i = res;
|
|
#line 2305 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2305 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if ((NU)(i) >= (NU)(dir ? dir->Sup.len : 0)){ raiseIndexError2(i,(dir ? dir->Sup.len : 0)-1); } if (!(((NU8)(dir->data[i])) == ((NU8)(47)) || ((NU8)(dir->data[i])) == ((NU8)(47)))) goto LA6_;
|
|
|
|
#line 2306 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ if (!omitNext) goto LA10_;
|
|
|
|
#line 2307 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
omitNext = NIM_FALSE; }
|
|
goto LA8_;
|
|
LA10_: ;
|
|
{ NI TM__yu6cxgKBBXbNsTkT9cyMd4g_45; NimStringDesc* T13_; NIM_BOOL T14_;
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (nimSubInt(i, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_45)) { raiseOverflow(); };
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T13_ = (NimStringDesc*)0; T13_ = substr__2yh9cer0ymNRHlOOg8P7IuA(dir, ((NI) 0), (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_45));
|
|
#line 2309 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T14_ = (NIM_BOOL)0; T14_ = nosexistsOrCreateDir(T13_); (void)(T14_);
|
|
}
|
|
LA8_: ;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(res, ((NI) 1), &TM__yu6cxgKBBXbNsTkT9cyMd4g_46)) { raiseOverflow(); }; res = (NI)(TM__yu6cxgKBBXbNsTkT9cyMd4g_46); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T17_; NIM_BOOL T18_; NIM_CHAR T21_; NIM_BOOL T24_;
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T17_ = (NIM_BOOL)0;
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T18_ = (NIM_BOOL)0;
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T18_ = (((NI) 0) < (dir ? dir->Sup.len : 0)); if (!(T18_)) goto LA19_;
|
|
|
|
#line 2312 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T18_ = !(omitNext); LA19_: ;
|
|
T17_ = T18_; if (!(T17_)) goto LA20_;
|
|
|
|
#line 2313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2313 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T21_ = (NIM_CHAR)0; T21_ = X5BX5D___okzHJ6GE9cv0bYG3b4r5KCAsystem(dir, ((NI) 1)); T17_ = !((((NU8)(T21_)) == ((NU8)(47)) || ((NU8)(T21_)) == ((NU8)(47)))); LA20_: ;
|
|
if (!T17_) goto LA22_;
|
|
|
|
#line 2314 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2314 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2314 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T24_ = (NIM_BOOL)0; T24_ = nosexistsOrCreateDir(dir); (void)(T24_);
|
|
}
|
|
LA22_: ;
|
|
}
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, slash___gEyhbzZ1UcxyenWRLJRXNQ)(NimStringDesc* head_0, NimStringDesc* tail_0) { NimStringDesc* result;{ result = (NimStringDesc*)0;
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = nosjoinPath(head_0, tail_0); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 1820 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(int, exitStatusLikeShell__vmXOHpv9cjOB5AHi6OOlhbw)(int status_0) { int result; result = (int)0;
|
|
#line 1821 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1823 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T3_; int T6_; NI TM__yu6cxgKBBXbNsTkT9cyMd4g_47;
|
|
#line 1823 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1823 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = WIFSIGNALED__o9b5GK70QLj9ahJeczQ2LyRg(status_0); if (!T3_) goto LA4_;
|
|
|
|
#line 1825 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1825 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1825 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T6_ = (int)0; T6_ = WTERMSIG__T7ZeAv6ofGPBA29bsuGG1ug(status_0); if (nimAddInt(((NI32) 128), T6_, &TM__yu6cxgKBBXbNsTkT9cyMd4g_47)) { raiseOverflow(); }; if (TM__yu6cxgKBBXbNsTkT9cyMd4g_47 < (-2147483647 -1) || TM__yu6cxgKBBXbNsTkT9cyMd4g_47 > 2147483647){ raiseOverflow(); } result = (NI32)(TM__yu6cxgKBBXbNsTkT9cyMd4g_47); }
|
|
goto LA1_;
|
|
LA4_: ;
|
|
{
|
|
#line 1827 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1827 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = WEXITSTATUS__T7ZeAv6ofGPBA29bsuGG1ug_2(status_0); }
|
|
LA1_: ;
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
{
|
|
nimRegisterThreadLocalMarker(TM__yu6cxgKBBXbNsTkT9cyMd4g_2);}
|
|
}
|
|
|
|
N_LIB_PRIVATE N_NIMCALL(void, stdlib_osDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.size = sizeof(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*);
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.kind = 24;
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.base = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.flags = 2;
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.name = "seq[string]";
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
|
|
NTI__sM4lkSb7zS6F7OVMvW9cffQ_.marker = Marker_tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
|
|
}
|
|
|