2022-12-25 14:07:15 +02:00
/* Generated by Nim Compiler v1.6.11 */
2022-09-19 09:55:15 +03:00
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#include <setjmp.h>
#include <stdio.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.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_(proc, file) \
TFrame FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_);
# define nimfrs_(proc, file, slots, length) \
struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \
FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_);
# define nimln_(n, file) \
FR_.line = n; FR_.filename = file;
typedef struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w ;
typedef struct NimStringDesc NimStringDesc ;
typedef struct TGenericSeq TGenericSeq ;
typedef struct tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw ;
typedef struct tyObject_HashSet__bGAilYs5sUICRbD13gZaFg tyObject_HashSet__bGAilYs5sUICRbD13gZaFg ;
typedef struct tySequence__8Np6tlClE5az1CyqZdN19bQ tySequence__8Np6tlClE5az1CyqZdN19bQ ;
typedef struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ ;
typedef struct tyTuple__XOVT24GHXwqiEj5GCsEGCA tyTuple__XOVT24GHXwqiEj5GCsEGCA ;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ ;
typedef struct tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ ;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA ;
typedef struct Exception Exception ;
typedef struct RootObj RootObj ;
typedef struct TNimType TNimType ;
typedef struct TNimNode TNimNode ;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA ;
typedef struct tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg ;
typedef struct tyTuple__BjxoJYFE5BulbiU15SM6nQ tyTuple__BjxoJYFE5BulbiU15SM6nQ ;
typedef struct tyTuple__7q7q3E6Oj24ZNVJb9aonhAg tyTuple__7q7q3E6Oj24ZNVJb9aonhAg ;
typedef struct tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA ;
typedef struct tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw ;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA ;
typedef struct TSafePoint TSafePoint ;
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_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w ;
typedef struct tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ ;
typedef struct tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ ;
typedef struct tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ ;
typedef struct tyObject_NonTerminalObj__VMn2tGRm8B9a9cqMEec3KPEA tyObject_NonTerminalObj__VMn2tGRm8B9a9cqMEec3KPEA ;
typedef struct tySequence__5DSB9bTgCQCsIApS5TVlG8g tySequence__5DSB9bTgCQCsIApS5TVlG8g ;
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg ;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw ;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw ;
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ ;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA ;
typedef struct tyObject_Action__Axd3qAbppa2kHdtxRGykNw tyObject_Action__Axd3qAbppa2kHdtxRGykNw ;
typedef struct tySequence__kLwf9aGQcuduFr4gekUDa2w tySequence__kLwf9aGQcuduFr4gekUDa2w ;
typedef struct tySequence__K2J9a59aomOCxv7VVeiHZfug tySequence__K2J9a59aomOCxv7VVeiHZfug ;
typedef struct tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A ;
typedef struct tyObject_Config__4CDaXnHluuDhjlvHrDG8RA tyObject_Config__4CDaXnHluuDhjlvHrDG8RA ;
typedef struct tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ ;
typedef struct tySequence__sQx7tKsP6HE09cszRIkxbdg tySequence__sQx7tKsP6HE09cszRIkxbdg ;
typedef struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q ;
typedef struct tyObject_Table__861JQ0xhLIYW2jzxkMweLQ tyObject_Table__861JQ0xhLIYW2jzxkMweLQ ;
typedef struct tySequence__v6NVljHM6giAeuZKHEoQNA tySequence__v6NVljHM6giAeuZKHEoQNA ;
typedef struct tyTuple__gDWaEqPfhOauJWKMBm8bzg tyTuple__gDWaEqPfhOauJWKMBm8bzg ;
typedef struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA tyTuple__7OnuWIzW3xYXy9bIUIvuRmA ;
typedef struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ tyTuple__vQEyvUeZmB7ODgnsZ5BScQ ;
typedef struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg tyObject_PackageList__00UcE13159cf20wGpsHwwMg ;
typedef struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw tyTuple__rLNSKSsDc19cDzAtjOZs9cSw ;
typedef NU8 tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg ;
struct TGenericSeq {
NI len ;
NI reserved ;
};
struct NimStringDesc {
TGenericSeq Sup ;
NIM_CHAR data [ SEQ_DECL_SIZE ];
};
typedef NU8 tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ;
typedef NU8 tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ;
struct tyObject_HashSet__bGAilYs5sUICRbD13gZaFg {
tySequence__8Np6tlClE5az1CyqZdN19bQ * data ;
NI counter ;
};
struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w {
tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw * context ;
tyObject_HashSet__bGAilYs5sUICRbD13gZaFg referencedData ;
tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ * extraInternal ;
};
typedef NU8 tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw ;
typedef NimStringDesc * tyArray__nHXaesL0DJZHyVS07ARPRA [ 1 ];
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 ;
NI align ;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind ;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags ;
TNimType * base ;
TNimNode * node ;
void * finalizer ;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker ;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy ;
};
struct RootObj {
TNimType * m_type ;
};
struct Exception {
RootObj Sup ;
Exception * parent ;
NCSTRING name ;
NimStringDesc * message ;
tySequence__uB9b75OUPRENsBAu4AnoePA * trace ;
Exception * up ;
};
struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
NimStringDesc * Field0 ;
NI Field1 ;
};
typedef NU8 tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA ;
typedef NimStringDesc * tyArray__Re75IspeoxXy2oCZHwcRrA [ 2 ];
struct tyTuple__7q7q3E6Oj24ZNVJb9aonhAg {
NimStringDesc * Field0 ;
NimStringDesc * Field1 ;
NimStringDesc * Field2 ;
};
struct tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA {
NimStringDesc * version ;
};
struct tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw {
NimStringDesc * hashValue ;
};
struct tyTuple__BjxoJYFE5BulbiU15SM6nQ {
NimStringDesc * Field0 ;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA Field1 ;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw Field2 ;
};
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc * Field0 ;
NimStringDesc * Field1 ;
};
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ [ 25 ];
struct TSafePoint {
TSafePoint * prev ;
NI status ;
jmp_buf context ;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind ;
NI offset ;
TNimType * typ ;
NCSTRING name ;
NI len ;
TNimNode ** sons ;
};
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__SPr7N6UKfuF549bNPiUvSRw [ 256 ];
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__SPr7N6UKfuF549bNPiUvSRw 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 ;
};
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 ;
};
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 ;
NI gcThreadId ;
};
struct tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ {
NimStringDesc * scheme ;
NimStringDesc * username ;
NimStringDesc * password ;
NimStringDesc * hostname ;
NimStringDesc * port ;
NimStringDesc * path ;
NimStringDesc * query ;
NimStringDesc * anchor ;
NIM_BOOL opaque ;
NIM_BOOL isIpv6 ;
};
typedef NimStringDesc * tyArray__7q5RSNd682Lso5UEcQZR9cQ [ 21 ];
typedef NU8 tyEnum_PegKind__r9a6rAhGclsLWkBysfmtr6Q ;
struct tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ {
tyEnum_PegKind__r9a6rAhGclsLWkBysfmtr6Q kind ;
union {
NimStringDesc * term ;
NIM_CHAR ch ;
NU8 * charChoice ;
tyObject_NonTerminalObj__VMn2tGRm8B9a9cqMEec3KPEA * nt ;
NI index ;
tySequence__5DSB9bTgCQCsIApS5TVlG8g * sons ;
};
};
typedef NimStringDesc * tyArray__24KAM9afIUgUaqBaEBB6r9bg [ 3 ];
typedef NU8 tySet_tyEnum_CopyFlag__pdzel23GjJ9cPFw8c5ldeRA ;
typedef NU8 tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ;
typedef char tyArray__XKk9bNZbVEtY3RuROG9aRBgw [ 256 ];
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
tySequence__4eRCaZmrYLLw2k30GPTiMw * data ;
NI counter ;
};
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
NI Field0 ;
NimStringDesc * Field1 ;
};
struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
NI Field0 ;
NI Field1 ;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname ;
NI line ;
NCSTRING filename ;
};
typedef NU8 tyEnum_ForcePrompt__djMIU0KJ4yj4ST3o49caOhA ;
typedef NU8 tyEnum_ActionType__w1V3R82mpkCDejycxLFPdg ;
struct tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A {
NimStringDesc * val ;
NIM_BOOL has ;
};
struct tyObject_Action__Axd3qAbppa2kHdtxRGykNw {
tyEnum_ActionType__w1V3R82mpkCDejycxLFPdg typ ;
union {
struct { NIM_BOOL listOnly ;
} _typ_2 ;
struct { NimStringDesc * optionalURL ;
} _typ_3 ;
struct { tySequence__kLwf9aGQcuduFr4gekUDa2w * packages ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * passNimFlags ;
tySequence__K2J9a59aomOCxv7VVeiHZfug * devActions ;
NimStringDesc * path ;
NIM_BOOL noRebuild ;
NIM_BOOL withDependencies ;
NimStringDesc * developFile ;
NIM_BOOL global ;
} _typ_4 ;
struct { tySequence__sM4lkSb7zS6F7OVMvW9cffQ * search ;
} _typ_5 ;
struct { NimStringDesc * projName ;
NimStringDesc * vcsOption ;
} _typ_6 ;
struct { NimStringDesc * file ;
NimStringDesc * backend ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * additionalArguments ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * compileOptions ;
} _typ_7 ;
struct { tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A runFile ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * compileFlags ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * runFlags ;
} _typ_8 ;
struct { NimStringDesc * command ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * arguments ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * custCompileFlags ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * custRunFlags ;
} _typ_9 ;
struct { NimStringDesc * format ;
} _typ_10 ;
};
};
struct tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ {
tySequence__sQx7tKsP6HE09cszRIkxbdg * data ;
NI counter ;
};
struct tyObject_Config__4CDaXnHluuDhjlvHrDG8RA {
NimStringDesc * nimbleDir ;
NIM_BOOL chcp ;
tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ packageLists ;
NIM_BOOL cloneUsingHttps ;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ httpProxy ;
};
typedef NU8 tyEnum_DumpMode__lrp4056pVLtFZp9cfnP5HtA ;
struct tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ {
tyEnum_ForcePrompt__djMIU0KJ4yj4ST3o49caOhA forcePrompts ;
NIM_BOOL depsOnly ;
NIM_BOOL uninstallRevDeps ;
NIM_BOOL queryVersions ;
NIM_BOOL queryInstalled ;
NimStringDesc * nimbleDir ;
tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ verbosity ;
tyObject_Action__Axd3qAbppa2kHdtxRGykNw action ;
tyObject_Config__4CDaXnHluuDhjlvHrDG8RA config ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * nimbleData ;
tyObject_Table__861JQ0xhLIYW2jzxkMweLQ * pkgInfoCache ;
NIM_BOOL showHelp ;
NimStringDesc * lockFileName ;
NIM_BOOL showVersion ;
NIM_BOOL offline ;
NIM_BOOL noColor ;
NIM_BOOL disableValidation ;
NIM_BOOL continueTestsOnFailure ;
NIM_BOOL forceFullClone ;
tySequence__v6NVljHM6giAeuZKHEoQNA * unknownFlags ;
tyEnum_DumpMode__lrp4056pVLtFZp9cfnP5HtA dumpMode ;
NimStringDesc * startDir ;
NimStringDesc * nim ;
NIM_BOOL localdeps ;
NIM_BOOL developLocaldeps ;
NIM_BOOL disableSslCertCheck ;
NIM_BOOL enableTarballs ;
2022-12-25 14:07:15 +02:00
NimStringDesc * task ;
2022-09-19 09:55:15 +03:00
NimStringDesc * package ;
};
struct tyTuple__gDWaEqPfhOauJWKMBm8bzg {
NimStringDesc * Field0 ;
tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w * Field1 ;
};
typedef NU8 tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ ;
struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA {
tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ Field0 ;
NimStringDesc * Field1 ;
};
struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg {
NimStringDesc * name ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * urls ;
NimStringDesc * path ;
};
struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ {
NI Field0 ;
NimStringDesc * Field1 ;
tyObject_PackageList__00UcE13159cf20wGpsHwwMg Field2 ;
};
typedef NU8 tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA ;
struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw {
tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA Field0 ;
NimStringDesc * Field1 ;
NimStringDesc * Field2 ;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
TGenericSeq Sup ;
NimStringDesc * data [ SEQ_DECL_SIZE ];
};
struct tySequence__8Np6tlClE5az1CyqZdN19bQ {
TGenericSeq Sup ;
tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ data [ SEQ_DECL_SIZE ];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
TGenericSeq Sup ;
tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data [ SEQ_DECL_SIZE ];
};
struct tySequence__5DSB9bTgCQCsIApS5TVlG8g {
TGenericSeq Sup ;
tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ data [ SEQ_DECL_SIZE ];
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
TGenericSeq Sup ;
tyTuple__QeWl6B6ffS4pU6WWrtcrDw data [ SEQ_DECL_SIZE ];
};
struct tySequence__kLwf9aGQcuduFr4gekUDa2w {
TGenericSeq Sup ;
tyTuple__gDWaEqPfhOauJWKMBm8bzg data [ SEQ_DECL_SIZE ];
};
struct tySequence__K2J9a59aomOCxv7VVeiHZfug {
TGenericSeq Sup ;
tyTuple__7OnuWIzW3xYXy9bIUIvuRmA data [ SEQ_DECL_SIZE ];
};
struct tySequence__sQx7tKsP6HE09cszRIkxbdg {
TGenericSeq Sup ;
tyTuple__vQEyvUeZmB7ODgnsZ5BScQ data [ SEQ_DECL_SIZE ];
};
struct tySequence__v6NVljHM6giAeuZKHEoQNA {
TGenericSeq Sup ;
tyTuple__rLNSKSsDc19cDzAtjOZs9cSw data [ SEQ_DECL_SIZE ];
};
N_LIB_PRIVATE N_NIMCALL ( void , display__nimblepkgZcli_156 )( NimStringDesc * category , NimStringDesc * msg , tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA displayType , tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * , newContext__pureZnet_1034 )( tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw protVersion , tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg verifyMode , NimStringDesc * certFile , NimStringDesc * keyFile , NimStringDesc * cipherList , NimStringDesc * caDir , NimStringDesc * caFile );
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , nimFrame )( TFrame * s );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NOINLINE ( void , callDepthLimitReached__system_2997 )( void );
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , popFrame )( void );
static N_INLINE ( NimStringDesc * , slash___pureZos_121 )( NimStringDesc * head , NimStringDesc * tail );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nosjoinPath )( NimStringDesc * head , NimStringDesc * tail );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nosgetTempDir )( void );
static N_INLINE ( void , appendString )( NimStringDesc * dest , NimStringDesc * src );
static N_INLINE ( void , copyMem__system_1727 )( void * dest , void * source , NI size );
static N_INLINE ( void , nimCopyMem )( void * dest , void * source , NI size );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , dollar___systemZdollars_3 )( NI x );
N_LIB_PRIVATE N_NIMCALL ( NI , getCurrentProcessId__pureZos_1745 )( void );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , rawNewString )( NI space );
N_LIB_PRIVATE N_NIMCALL ( void , doCmdEx__nimblepkgZtools_29 )( NimStringDesc * cmd , tyTuple__XOVT24GHXwqiEj5GCsEGCA * Result );
N_LIB_PRIVATE N_NIMCALL ( void , displayDebug__nimblepkgZcli_694 )( NimStringDesc * category , NimStringDesc * msg );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , extractBin__nimblepkgZtools_19 )( NimStringDesc * cmd );
N_LIB_PRIVATE N_NOINLINE ( void , raiseIndexError2 )( NI i , NI n );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , captureBetween__pureZparseutils_241 )( NimStringDesc * s , NIM_CHAR first , NIM_CHAR second , NI start );
N_LIB_PRIVATE N_NIMCALL ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * , nsuSplitChar )( NimStringDesc * s , NIM_CHAR sep , NI maxsplit );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , copyString )( NimStringDesc * src );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , findExe__pureZos_646 )( NimStringDesc * exe , NIM_BOOL followSymlinks , NimStringDesc ** extensions , NI extensionsLen_0 );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * , nimbleError__nimblepkgZcommon_26 )( NimStringDesc * msg , NimStringDesc * hint , tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * details );
N_LIB_PRIVATE N_NIMCALL ( void , raiseExceptionEx )( Exception * e , NCSTRING ename , NCSTRING procname , NCSTRING filename , NI line );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , execCmdEx__pureZosproc_1218 )( NimStringDesc * command , tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA options , tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg * env , NimStringDesc * workingDir , NimStringDesc * input , tyTuple__XOVT24GHXwqiEj5GCsEGCA * Result );
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , nimZeroMem )( void * p , NI size );
static N_INLINE ( void , nimSetMem__systemZmemory_7 )( void * a , int v , NI size );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , tryDoCmdExErrorMessage__nimblepkgZtools_33 )( NimStringDesc * cmd , NimStringDesc * output , NI exitCode );
N_NIMCALL ( NimStringDesc * , rawNewString )( NI cap );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , resizeString )( NimStringDesc * dest , NI addlen );
N_LIB_PRIVATE N_NIMCALL ( void , formatValue__pureZstrformat_162 )( NimStringDesc ** result , NimStringDesc * value , NimStringDesc * specifier );
N_LIB_PRIVATE N_NIMCALL ( void , formatValue__pureZterminal_155 )( NimStringDesc ** result , NI value , NimStringDesc * specifier );
2022-12-25 14:07:15 +02:00
static N_INLINE ( NIM_BOOL , contains__stdZenumutils_43 )( NimStringDesc ** a , NI aLen_0 , NimStringDesc * item );
static N_INLINE ( NI , find__stdZenumutils_48 )( NimStringDesc ** a , NI aLen_0 , NimStringDesc * item );
2022-09-19 09:55:15 +03:00
static N_INLINE ( NIM_BOOL , eqStrings )( NimStringDesc * a , NimStringDesc * b );
static N_INLINE ( NIM_BOOL , equalMem__system_1735 )( void * a , void * b , NI size );
static N_INLINE ( int , nimCmpMem )( void * a , void * b , NI size );
N_LIB_PRIVATE N_NOINLINE ( void , raiseOverflow )( void );
N_LIB_PRIVATE N_NIMCALL ( void , nossplitFile )( NimStringDesc * path , tyTuple__7q7q3E6Oj24ZNVJb9aonhAg * Result );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , getNameVersionChecksum__nimblepkgZtools_146 )( NimStringDesc * pkgpath , tyTuple__BjxoJYFE5BulbiU15SM6nQ * Result );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( void , nossplitPath )( NimStringDesc * path , tyTuple__UV3llMMYFckfui8YMBuUZA * Result );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , getPathVersionChecksum__OOZOOZOOZOOZOchoosenimZtoolchainsZnim4535version45494554ZcompilerZnimblecmd_171 )( NimStringDesc * p , tyTuple__7q7q3E6Oj24ZNVJb9aonhAg * Result );
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , pushSafePoint )( TSafePoint * s );
N_LIB_PRIVATE N_NIMCALL ( void , initSha1Hash__nimblepkgZsha49hashes_66 )( NimStringDesc * value , tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw * Result );
static N_INLINE ( void , popSafePoint )( void );
static N_INLINE ( TFrame * , getFrame )( void );
static N_INLINE ( void , setFrame )( TFrame * s );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , isObj )( TNimType * obj , TNimType * subclass );
static N_INLINE ( Exception * , nimBorrowCurrentException )( void );
static N_INLINE ( void , popCurrentException )( void );
static N_INLINE ( void , asgnRef )( void ** dest , void * src );
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , incRef__system_5337 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c );
2022-09-19 09:55:15 +03:00
static N_INLINE ( NI , pluspercent___system_696 )( NI x , NI y );
2022-12-25 14:07:15 +02:00
static N_INLINE ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * , usrToCell__system_5299 )( void * usr );
2022-09-19 09:55:15 +03:00
static N_INLINE ( NI , minuspercent___system_716 )( NI x , NI y );
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , decRef__system_5344 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c );
2022-09-19 09:55:15 +03:00
static N_INLINE ( NIM_BOOL , ltpercent___system_1005 )( NI x , NI y );
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , rtlAddZCT__system_5342 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c );
N_LIB_PRIVATE N_NOINLINE ( void , addZCT__system_5293 )( tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w * s , tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( void , reraiseException )( void );
N_LIB_PRIVATE N_NIMCALL ( void , newVersion__nimblepkgZversion_81 )( NimStringDesc * ver , tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA * Result );
N_LIB_PRIVATE N_NIMCALL ( void , unsureAsgnRef )( void ** dest , void * src );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nsuEndsWith )( NimStringDesc * s , NimStringDesc * suffix );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nsuReplaceChar )( NimStringDesc * s , NIM_CHAR sub , NIM_CHAR by );
N_LIB_PRIVATE N_NIMCALL ( NI , noscmpPaths )( NimStringDesc * pathA , NimStringDesc * pathB );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nsuStartsWith )( NimStringDesc * s , NimStringDesc * prefix );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , samePaths__nimblepkgZtools_66 )( NimStringDesc * p1 , NimStringDesc * p2 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , substr__system_7790 )( NimStringDesc * s , NI first , NI last );
N_LIB_PRIVATE N_NIMCALL ( void , parseUri__pureZuri_207 )( NimStringDesc * uri , tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ * Result );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , addChar )( NimStringDesc * s , NIM_CHAR c );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , failedAssertImpl__systemZassertions_56 )( NimStringDesc * msg );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getSimpleString__nimblepkgZversion_653 )( tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w * verRange );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nospquoteShell )( NimStringDesc * s );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getNimBin__nimblepkgZoptions_272 )( tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * options );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NI , npegsfindCapture )( NimStringDesc * s , tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ pattern , NimStringDesc ** matches , NI matchesLen_0 , NI start );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , peg__pureZpegs_3927 )( NimStringDesc * pattern , tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ * Result );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nosextractFilename )( NimStringDesc * path );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , flushFile__systemZio_226 )( FILE * f );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NI , nospexecCmd )( NimStringDesc * command );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nsuFormatOpenArray )( NimStringDesc * formatstr , NimStringDesc ** a , NI aLen_0 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , copyFileWithPermissions__pureZos_1450 )( NimStringDesc * source , NimStringDesc * dest , NIM_BOOL ignorePermissionErrors , tySet_tyEnum_CopyFlag__pdzel23GjJ9cPFw8c5ldeRA options );
N_LIB_PRIVATE N_NIMCALL ( void , incl__OOZOOZOOZOOZOchoosenimZtoolchainsZnim4535version45494554ZcompilerZoptions_2527 )( tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg * s , NimStringDesc * key );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( void , nosremoveFile )( NimStringDesc * file );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , isEmptyDir__nimblepkgZtools_125 )( NimStringDesc * dir );
N_LIB_PRIVATE N_NIMCALL ( void * , newSeq )( TNimType * typ , NI len );
2022-12-25 14:07:15 +02:00
static N_INLINE ( NimStringDesc * , pop__pureZos_1366 )( tySequence__sM4lkSb7zS6F7OVMvW9cffQ ** s );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NOINLINE ( void , raiseRangeErrorI )( NI64 i , NI64 a , NI64 b );
N_LIB_PRIVATE N_NIMCALL ( TGenericSeq * , setLengthSeqV2 )( TGenericSeq * s , TNimType * typ , NI newLen );
static N_INLINE ( NCSTRING , nimToCStringConv )( NimStringDesc * s );
N_LIB_PRIVATE N_NOINLINE ( void , raiseOSError__pureZos_405 )( NI32 errorCode , NimStringDesc * additionalInfo );
N_LIB_PRIVATE N_NIMCALL ( NI32 , osLastError__pureZos_408 )( void );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , cstrToNimstr )( NCSTRING str );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nosdirExists )( NimStringDesc * dir );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg , getSymlinkFileKind__pureZos_1220 )( NimStringDesc * path );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( TGenericSeq * , incrSeqV3 )( TGenericSeq * s , TNimType * typ );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , copyStringRC1 )( NimStringDesc * src );
static N_INLINE ( void , nimGCunrefNoCycle )( void * p );
N_LIB_PRIVATE N_NIMCALL ( void , nimLeaveFinally )( void );
N_LIB_PRIVATE N_NIMCALL ( void , nosremoveDir )( NimStringDesc * dir , NIM_BOOL checkDir );
N_LIB_PRIVATE N_NIMCALL ( void , displaySuccess__nimblepkgZcli_638 )( NimStringDesc * message , tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority );
N_LIB_PRIVATE N_NIMCALL ( void , displayWarning__nimblepkgZcli_629 )( NimStringDesc * message , tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nsuFormatSingleElem )( NimStringDesc * formatstr , NimStringDesc * a );
N_LIB_PRIVATE N_NIMCALL ( void , noscreateDir )( NimStringDesc * dir );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , existsEnv__pureZos_423 )( NimStringDesc * key );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getEnv__pureZos_418 )( NimStringDesc * key , NimStringDesc * default_0 );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NI , len__nimblepkgZvcstools_2068 )( tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg s );
static N_INLINE ( NIM_BOOL , isFilled__pureZcollectionsZsets_38 )( NI hcode );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_2 , "Warning:" , 8 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_3 , "disabling SSL certificate checking" , 34 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_4 , "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" , 300 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_5 , "nimble_" , 7 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_6 , "Executing" , 9 );
2022-12-25 14:07:15 +02:00
extern NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA ExeExts__pureZos_645 ;
2022-09-19 09:55:15 +03:00
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_7 , " \' " , 1 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_8 , " \' not in PATH." , 14 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_9 , "Execution of \' " , 14 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_10 , " \' failed with an exit code " , 27 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_11 , ". \012 " , 2 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_12 , "Details: " , 9 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_16 , ".nimble" , 7 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_17 , ".babel" , 6 );
static NIM_CONST tyArray__Re75IspeoxXy2oCZHwcRrA TM__dtZt7zrLZEmJT7YiTNTw9cA_15 = {(( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_16 ),
(( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_17 )}
;
extern TNimType NTIinvalidsha49hasherror__uhtJgqO1lMlGCXqvHwueZA_ ;
extern NIM_CONST tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw notSetSha1Hash__nimblepkgZsha49hashes_10 ;
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_19 , "/" , 1 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_21 , "Cannot change root of path: Path does not begin with original root." , 67 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_23 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim(258, 11) `len(a) == L` the length of the string changed while iterating over it" , 157 );
2022-09-19 09:55:15 +03:00
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_24 , "_" , 1 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_26 , " -v" , 3 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_27 , " \' Version \'\\ s{( \\ d+ \\ .)+ \\ d+}" , 24 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_28 , "Couldn \' t find Nim version." , 26 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_29 , "nim" , 3 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_30 , "Execution failed with exit code $1 \012 Command: $2" , 46 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_31 , "Output" , 6 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_32 , "Execution failed with exit code $1 \012 Command: $2 \012 Output: $3" , 57 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_33 , "Copying" , 7 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_34 , "file $# to $#" , 13 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_36 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim(240, 11) `len(a) == L` the length of the seq changed while iterating over it" , 154 );
2022-09-19 09:55:15 +03:00
extern TNimType NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_ ;
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_40 , "." , 1 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_41 , ".." , 2 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_42 , "The directory \" " , 15 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_43 , " \" has been removed." , 19 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_44 , "Cannot completely remove the directory \" " , 40 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_45 , " \" . \012 " , 3 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_46 , "Files not installed by Nimble are present." , 42 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_47 , "Creating" , 8 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_48 , "directory $#" , 12 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_49 , "TMPDIR" , 6 );
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_50 , "USER" , 4 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__dtZt7zrLZEmJT7YiTNTw9cA_51 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim(266, 13) `len(s) == length` the length of the HashSet changed while iterating over it" , 168 );
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern TSafePoint * excHandler__system_2565 ;
extern TSafePoint * excHandler__system_2565 ;
extern TSafePoint * excHandler__system_2565 ;
extern TSafePoint * excHandler__system_2565 ;
extern TFrame * framePtr__system_2564 ;
extern TFrame * framePtr__system_2564 ;
extern Exception * currException__system_2566 ;
extern Exception * currException__system_2566 ;
extern Exception * currException__system_2566 ;
extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__system_5246 ;
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , nimFrame )( TFrame * s ) {
{
2022-12-25 14:07:15 +02:00
if ( ! ( framePtr__system_2564 == (( TFrame * ) NIM_NIL ))) goto LA3_ ;
2022-09-19 09:55:15 +03:00
( * s ). calldepth = (( NI16 ) 0 );
}
goto LA1_ ;
LA3_ : ;
{
2022-12-25 14:07:15 +02:00
( * s ). calldepth = ( NI16 )(( * framePtr__system_2564 ). calldepth + (( NI16 ) 1 ));
2022-09-19 09:55:15 +03:00
}
LA1_ : ;
2022-12-25 14:07:15 +02:00
( * s ). prev = framePtr__system_2564 ;
framePtr__system_2564 = s ;
2022-09-19 09:55:15 +03:00
{
if ( ! (( * s ). calldepth == (( NI16 ) 2000 ))) goto LA8_ ;
2022-12-25 14:07:15 +02:00
callDepthLimitReached__system_2997 ();
2022-09-19 09:55:15 +03:00
}
LA8_ : ;
}
static N_INLINE ( void , popFrame )( void ) {
2022-12-25 14:07:15 +02:00
framePtr__system_2564 = ( * framePtr__system_2564 ). prev ;
2022-09-19 09:55:15 +03:00
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * , newSSLContext__nimblepkgZtools_189 )( NIM_BOOL disabled ) {
2022-09-19 09:55:15 +03:00
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * result ;
tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg sslVerifyMode ;
nimfr_ ( "newSSLContext" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = NIM_NIL ;
nimln_ ( 223 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
sslVerifyMode = (( tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg ) 1 );
nimln_ ( 224 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
if ( ! disabled ) goto LA3_ ;
nimln_ ( 225 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_2 ), (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_3 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 1 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 2 ));
nimln_ ( 226 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
sslVerifyMode = (( tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg ) 0 );
}
LA3_ : ;
nimln_ ( 227 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
result = newContext__pureZnet_1034 ((( tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw ) 3 ), sslVerifyMode , (( NimStringDesc * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ), (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_4 ), (( NimStringDesc * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
static N_INLINE ( NimStringDesc * , slash___pureZos_121 )( NimStringDesc * head , NimStringDesc * tail ) {
NimStringDesc * result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "/" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 234 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
result = nosjoinPath ( head , tail );
popFrame ();
return result ;
}
static N_INLINE ( void , nimCopyMem )( void * dest , void * source , NI size ) {
void * T1_ ;
T1_ = ( void * ) 0 ;
T1_ = memcpy ( dest , source , (( size_t ) ( size )));
}
static N_INLINE ( void , copyMem__system_1727 )( void * dest , void * source , NI size ) {
nimCopyMem ( dest , source , size );
}
static N_INLINE ( void , appendString )( NimStringDesc * dest , NimStringDesc * src ) {
{
if ( !! (( src == (( NimStringDesc * ) NIM_NIL )))) goto LA3_ ;
copyMem__system_1727 ((( void * ) (( & ( * dest ). data [( * dest ). Sup . len ]))), (( void * ) (( * src ). data )), (( NI ) (( NI )(( * src ). Sup . len + (( NI ) 1 )))));
( * dest ). Sup . len += ( * src ). Sup . len ;
}
LA3_ : ;
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getNimbleTempDir__nimblepkgZtools_120 )( void ) {
NimStringDesc * result ;
NimStringDesc * T1_ ;
NimStringDesc * T2_ ;
NimStringDesc * T3_ ;
NI T4_ ;
NimStringDesc * T5_ ;
nimfr_ ( "getNimbleTempDir" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = NIM_NIL ;
nimln_ ( 169 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T1_ = NIM_NIL ;
T2_ = NIM_NIL ;
T2_ = nosgetTempDir ();
T3_ = NIM_NIL ;
T3_ = slash___pureZos_121 ( T2_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_5 ));
T4_ = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
T4_ = getCurrentProcessId__pureZos_1745 ();
2022-09-19 09:55:15 +03:00
T5_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T5_ = dollar___systemZdollars_3 ( T4_ );
2022-09-19 09:55:15 +03:00
T1_ = rawNewString (( T3_ ? T3_ -> Sup . len : 0 ) + ( T5_ ? T5_ -> Sup . len : 0 ) + 0 );
appendString ( T1_ , T3_ );
appendString ( T1_ , T5_ );
result = T1_ ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , extractBin__nimblepkgZtools_19 )( NimStringDesc * cmd ) {
NimStringDesc * result ;
nimfr_ ( "extractBin" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = NIM_NIL ;
nimln_ ( 14 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
if ((( NI ) 0 ) < 0 || (( NI ) 0 ) >= ( cmd ? cmd -> Sup . len : 0 )){ raiseIndexError2 ((( NI ) 0 ),( cmd ? cmd -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( cmd -> data [(( NI ) 0 )]) == ( NU8 )( 34 ))) goto LA3_ ;
nimln_ ( 15 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = captureBetween__pureZparseutils_241 ( cmd , 34 , 0 , (( NI ) 0 ));
goto BeforeRet_ ;
}
goto LA1_ ;
LA3_ : ;
{
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * T6_ ;
nimln_ ( 17 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T6_ = NIM_NIL ;
T6_ = nsuSplitChar ( cmd , 32 , (( NI ) - 1 ));
if ((( NI ) 0 ) < 0 || (( NI ) 0 ) >= ( T6_ ? T6_ -> Sup . len : 0 )){ raiseIndexError2 ((( NI ) 0 ),( T6_ ? T6_ -> Sup . len : 0 ) - 1 ); }
result = copyString ( T6_ -> data [(( NI ) 0 )]);
goto BeforeRet_ ;
}
LA1_ : ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( void , doCmdEx__nimblepkgZtools_29 )( NimStringDesc * cmd , tyTuple__XOVT24GHXwqiEj5GCsEGCA * Result ) {
NimStringDesc * bin ;
nimfr_ ( "doCmdEx" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ nimln_ ( 49 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
displayDebug__nimblepkgZcli_694 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_6 ), cmd );
nimln_ ( 50 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
bin = extractBin__nimblepkgZtools_19 ( cmd );
nimln_ ( 51 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc * T3_ ;
NimStringDesc * T6_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T7_ ;
T3_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T3_ = findExe__pureZos_646 ( bin , NIM_TRUE , ExeExts__pureZos_645 , 1 );
2022-09-19 09:55:15 +03:00
if ( ! (( T3_ ? T3_ -> Sup . len : 0 ) == 0 )) goto LA4_ ;
nimln_ ( 52 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T6_ = NIM_NIL ;
T6_ = rawNewString (( bin ? bin -> Sup . len : 0 ) + 15 );
appendString ( T6_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_7 ));
appendString ( T6_ , bin );
appendString ( T6_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_8 ));
T7_ = NIM_NIL ;
T7_ = nimbleError__nimblepkgZcommon_26 ( T6_ , (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T7_ , "NimbleError" , "doCmdEx" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 52 );
}
LA4_ : ;
nimln_ ( 53 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
execCmdEx__pureZosproc_1218 ( cmd , 10 , (( tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ), Result );
2022-09-19 09:55:15 +03:00
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
}
static N_INLINE ( void , nimSetMem__systemZmemory_7 )( void * a , int v , NI size ) {
void * T1_ ;
T1_ = ( void * ) 0 ;
T1_ = memset ( a , v , (( size_t ) ( size )));
}
static N_INLINE ( void , nimZeroMem )( void * p , NI size ) {
nimSetMem__systemZmemory_7 ( p , (( int ) 0 ), size );
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , tryDoCmdExErrorMessage__nimblepkgZtools_33 )( NimStringDesc * cmd , NimStringDesc * output , NI exitCode ) {
NimStringDesc * result ;
NimStringDesc * T1_ ;
NimStringDesc * fmtRes ;
NimStringDesc * fmtRes_2 ;
nimfr_ ( "tryDoCmdExErrorMessage" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = NIM_NIL ;
nimln_ ( 56 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T1_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
2022-09-19 09:55:15 +03:00
nimln_ ( 56 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
fmtRes = rawNewString ((( NI ) 78 ));
fmtRes = resizeString ( fmtRes , 14 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_9 ));
formatValue__pureZstrformat_162 (( & fmtRes ), cmd , (( NimStringDesc * ) NIM_NIL ));
fmtRes = resizeString ( fmtRes , 27 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_10 ));
formatValue__pureZterminal_155 (( & fmtRes ), exitCode , (( NimStringDesc * ) NIM_NIL ));
fmtRes = resizeString ( fmtRes , 2 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_11 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
2022-09-19 09:55:15 +03:00
nimln_ ( 57 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
fmtRes_2 = rawNewString ((( NI ) 27 ));
fmtRes_2 = resizeString ( fmtRes_2 , 9 );
appendString ( fmtRes_2 , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_12 ));
formatValue__pureZstrformat_162 (( & fmtRes_2 ), output , (( NimStringDesc * ) NIM_NIL ));
T1_ = rawNewString (( fmtRes ? fmtRes -> Sup . len : 0 ) + ( fmtRes_2 ? fmtRes_2 -> Sup . len : 0 ) + 0 );
appendString ( T1_ , fmtRes );
appendString ( T1_ , fmtRes_2 );
result = T1_ ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , tryDoCmdEx__nimblepkgZtools_45 )( NimStringDesc * cmd ) {
NimStringDesc * result ;
tyTuple__XOVT24GHXwqiEj5GCsEGCA T1_ ;
NimStringDesc * output ;
NI exitCode ;
nimfr_ ( "tryDoCmdEx" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = NIM_NIL ;
nimln_ ( 60 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * )( & T1_ ), sizeof ( tyTuple__XOVT24GHXwqiEj5GCsEGCA ));
doCmdEx__nimblepkgZtools_29 ( cmd , ( & T1_ ));
output = NIM_NIL ;
output = T1_ . Field0 ;
exitCode = ( NI ) 0 ;
exitCode = T1_ . Field1 ;
nimln_ ( 61 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc * T6_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T7_ ;
if ( !! (( exitCode == (( NI ) 0 )))) goto LA4_ ;
nimln_ ( 62 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T6_ = NIM_NIL ;
T6_ = tryDoCmdExErrorMessage__nimblepkgZtools_33 ( cmd , output , exitCode );
T7_ = NIM_NIL ;
T7_ = nimbleError__nimblepkgZcommon_26 ( T6_ , (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T7_ , "NimbleError" , "tryDoCmdEx" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 62 );
}
LA4_ : ;
nimln_ ( 63 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = copyString ( output );
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
static N_INLINE ( int , nimCmpMem )( void * a , void * b , NI size ) {
int result ;
result = ( int ) 0 ;
result = memcmp ( a , b , (( size_t ) ( size )));
return result ;
}
static N_INLINE ( NIM_BOOL , equalMem__system_1735 )( void * a , void * b , NI size ) {
NIM_BOOL result ;
int T1_ ;
result = ( NIM_BOOL ) 0 ;
T1_ = ( int ) 0 ;
T1_ = nimCmpMem ( a , b , size );
result = ( T1_ == (( NI32 ) 0 ));
return result ;
}
static N_INLINE ( NIM_BOOL , eqStrings )( NimStringDesc * a , NimStringDesc * b ) {
NIM_BOOL result ;
NI alen ;
NI blen ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "eqStrings" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
{ result = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 27 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
alen = ( a ? a -> Sup . len : 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 28 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
blen = ( b ? b -> Sup . len : 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 29 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! ( alen == blen )) goto LA3_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 30 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! ( alen == (( NI ) 0 ))) goto LA7_ ;
result = NIM_TRUE ;
goto BeforeRet_ ;
}
LA7_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 31 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim" );
2022-09-19 09:55:15 +03:00
result = equalMem__system_1735 ((( void * ) (( & a -> data [(( NI ) 0 )]))), (( void * ) (( & b -> data [(( NI ) 0 )]))), (( NI ) ( alen )));
goto BeforeRet_ ;
}
LA3_ : ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( NI , find__stdZenumutils_48 )( NimStringDesc ** a , NI aLen_0 , NimStringDesc * item ) {
2022-09-19 09:55:15 +03:00
NI result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "find" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
{ result = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 1837 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
result = (( NI ) 0 );
{
NimStringDesc ** i ;
NI i_2 ;
i = ( NimStringDesc ** ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 8 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
i_2 = (( NI ) 0 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 9 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_13 ;
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_14 ;
if ( ! ( i_2 < aLen_0 )) goto LA3 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 1838 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if ( i_2 < 0 || i_2 >= aLen_0 ){ raiseIndexError2 ( i_2 , aLen_0 - 1 ); }
i = ( & a [ i_2 ]);
{
2022-12-25 14:07:15 +02:00
nimln_ ( 1839 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if ( ! eqStrings (( * i ), item )) goto LA6_ ;
goto BeforeRet_ ;
}
LA6_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 1838 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( result , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_13 )) { raiseOverflow (); };
result = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_13 );
2022-12-25 14:07:15 +02:00
nimln_ ( 11 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i_2 , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_14 )) { raiseOverflow (); };
i_2 = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_14 );
} LA3 : ;
}
}
2022-12-25 14:07:15 +02:00
nimln_ ( 1841 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
result = (( NI ) - 1 );
} BeforeRet_ : ;
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( NIM_BOOL , contains__stdZenumutils_43 )( NimStringDesc ** a , NI aLen_0 , NimStringDesc * item ) {
2022-09-19 09:55:15 +03:00
NIM_BOOL result ;
NI T1_ ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "contains" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
{ result = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 1855 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
T1_ = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
T1_ = find__stdZenumutils_48 ( a , aLen_0 , item );
2022-09-19 09:55:15 +03:00
result = ((( NI ) 0 ) <= T1_ );
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
static N_INLINE ( void , pushSafePoint )( TSafePoint * s ) {
2022-12-25 14:07:15 +02:00
( * s ). prev = excHandler__system_2565 ;
excHandler__system_2565 = s ;
2022-09-19 09:55:15 +03:00
}
static N_INLINE ( void , popSafePoint )( void ) {
2022-12-25 14:07:15 +02:00
excHandler__system_2565 = ( * excHandler__system_2565 ). prev ;
2022-09-19 09:55:15 +03:00
}
static N_INLINE ( TFrame * , getFrame )( void ) {
TFrame * result ;
result = ( TFrame * ) 0 ;
2022-12-25 14:07:15 +02:00
result = framePtr__system_2564 ;
2022-09-19 09:55:15 +03:00
return result ;
}
static N_INLINE ( void , setFrame )( TFrame * s ) {
2022-12-25 14:07:15 +02:00
framePtr__system_2564 = s ;
2022-09-19 09:55:15 +03:00
}
static N_INLINE ( Exception * , nimBorrowCurrentException )( void ) {
Exception * result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "nimBorrowCurrentException" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2417 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
result = currException__system_2566 ;
2022-09-19 09:55:15 +03:00
popFrame ();
return result ;
}
static N_INLINE ( NI , pluspercent___system_696 )( NI x , NI y ) {
NI result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "+%" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
2022-09-19 09:55:15 +03:00
result = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 403 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
nimln_ ( 407 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
2022-09-19 09:55:15 +03:00
result = (( NI ) (( NU )(( NU64 )((( NU ) ( x ))) + ( NU64 )((( NU ) ( y ))))));
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , incRef__system_5337 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c ) {
nimfr_ ( "incRef" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
nimln_ ( 231 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
( * c ). refcount = pluspercent___system_696 (( * c ). refcount , (( NI ) 8 ));
popFrame ();
}
static N_INLINE ( NI , minuspercent___system_716 )( NI x , NI y ) {
NI result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "-%" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
2022-09-19 09:55:15 +03:00
result = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 414 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
nimln_ ( 418 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/arithmetics.nim" );
2022-09-19 09:55:15 +03:00
result = (( NI ) (( NU )(( NU64 )((( NU ) ( x ))) - ( NU64 )((( NU ) ( y ))))));
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * , usrToCell__system_5299 )( void * usr ) {
2022-09-19 09:55:15 +03:00
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * result ;
NI T1_ ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "usrToCell" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
result = ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 177 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
T1_ = ( NI ) 0 ;
T1_ = minuspercent___system_716 ((( NI ) ( ptrdiff_t ) ( usr )), (( NI ) 16 ));
result = (( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * ) ( T1_ ));
popFrame ();
return result ;
}
static N_INLINE ( NIM_BOOL , ltpercent___system_1005 )( NI x , NI y ) {
NIM_BOOL result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "<%" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/comparisons.nim" );
2022-09-19 09:55:15 +03:00
result = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 186 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/comparisons.nim" );
nimln_ ( 188 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/comparisons.nim" );
2022-09-19 09:55:15 +03:00
result = (( NU64 )((( NU ) ( x ))) < ( NU64 )((( NU ) ( y ))));
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , rtlAddZCT__system_5342 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c ) {
nimfr_ ( "rtlAddZCT" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
nimln_ ( 243 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
addZCT__system_5293 (( & gch__system_5246 . zct ), c );
2022-09-19 09:55:15 +03:00
popFrame ();
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , decRef__system_5344 )( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * c ) {
nimfr_ ( "decRef" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
nimln_ ( 248 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
( * c ). refcount = minuspercent___system_716 (( * c ). refcount , (( NI ) 8 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 249 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T3_ ;
T3_ = ( NIM_BOOL ) 0 ;
T3_ = ltpercent___system_1005 (( * c ). refcount , (( NI ) 8 ));
if ( ! T3_ ) goto LA4_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 250 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
rtlAddZCT__system_5342 ( c );
2022-09-19 09:55:15 +03:00
}
LA4_ : ;
popFrame ();
}
static N_INLINE ( void , asgnRef )( void ** dest , void * src ) {
2022-12-25 14:07:15 +02:00
nimfr_ ( "asgnRef" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
nimln_ ( 286 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * T5_ ;
if ( !! (( src == NIM_NIL ))) goto LA3_ ;
T5_ = ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * ) 0 ;
2022-12-25 14:07:15 +02:00
T5_ = usrToCell__system_5299 ( src );
incRef__system_5337 ( T5_ );
2022-09-19 09:55:15 +03:00
}
LA3_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 287 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
{
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * T10_ ;
if ( !! ((( * dest ) == NIM_NIL ))) goto LA8_ ;
T10_ = ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * ) 0 ;
2022-12-25 14:07:15 +02:00
T10_ = usrToCell__system_5299 (( * dest ));
decRef__system_5344 ( T10_ );
2022-09-19 09:55:15 +03:00
}
LA8_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 288 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
( * dest ) = src ;
popFrame ();
}
static N_INLINE ( void , popCurrentException )( void ) {
2022-12-25 14:07:15 +02:00
asgnRef (( void ** ) ( & currException__system_2566 ), ( * currException__system_2566 ). up );
2022-09-19 09:55:15 +03:00
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , getNameVersionChecksum__nimblepkgZtools_146 )( NimStringDesc * pkgpath , tyTuple__BjxoJYFE5BulbiU15SM6nQ * Result ) {
2022-09-19 09:55:15 +03:00
tyTuple__UV3llMMYFckfui8YMBuUZA T8_ ;
tyTuple__7q7q3E6Oj24ZNVJb9aonhAg T9_ ;
NimStringDesc * name ;
NimStringDesc * version ;
NimStringDesc * checksum ;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw sha1Checksum ;
TSafePoint TM__dtZt7zrLZEmJT7YiTNTw9cA_18 ;
TFrame * _nimCurFrame ;
NimStringDesc * colontmp_ ;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA colontmp__2 ;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw colontmp__3 ;
nimfr_ ( "getNameVersionChecksum" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ _nimCurFrame = getFrame ();
nimln_ ( 196 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
tyTuple__7q7q3E6Oj24ZNVJb9aonhAg T3_ ;
NIM_BOOL T4_ ;
tyTuple__UV3llMMYFckfui8YMBuUZA T7_ ;
nimZeroMem (( void * )( & T3_ ), sizeof ( tyTuple__7q7q3E6Oj24ZNVJb9aonhAg ));
nossplitFile ( pkgpath , ( & T3_ ));
T4_ = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
T4_ = contains__stdZenumutils_43 ( TM__dtZt7zrLZEmJT7YiTNTw9cA_15 , 2 , T3_ . Field2 );
2022-09-19 09:55:15 +03:00
if ( ! T4_ ) goto LA5_ ;
nimln_ ( 197 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * )( & T7_ ), sizeof ( tyTuple__UV3llMMYFckfui8YMBuUZA ));
nossplitPath ( pkgpath , ( & T7_ ));
2022-12-25 14:07:15 +02:00
getNameVersionChecksum__nimblepkgZtools_146 ( T7_ . Field0 , Result );
2022-09-19 09:55:15 +03:00
goto BeforeRet_ ;
}
LA5_ : ;
nimln_ ( 199 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * )( & T8_ ), sizeof ( tyTuple__UV3llMMYFckfui8YMBuUZA ));
nossplitPath ( pkgpath , ( & T8_ ));
nimZeroMem (( void * )( & T9_ ), sizeof ( tyTuple__7q7q3E6Oj24ZNVJb9aonhAg ));
2022-12-25 14:07:15 +02:00
getPathVersionChecksum__OOZOOZOOZOOZOchoosenimZtoolchainsZnim4535version45494554ZcompilerZnimblecmd_171 ( T8_ . Field1 , ( & T9_ ));
2022-09-19 09:55:15 +03:00
name = NIM_NIL ;
name = T9_ . Field0 ;
version = NIM_NIL ;
version = T9_ . Field1 ;
checksum = NIM_NIL ;
checksum = T9_ . Field2 ;
nimZeroMem (( void * )( & sha1Checksum ), sizeof ( tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw ));
nimln_ ( 200 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 201 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
pushSafePoint ( & TM__dtZt7zrLZEmJT7YiTNTw9cA_18 );
TM__dtZt7zrLZEmJT7YiTNTw9cA_18 . status = setjmp ( TM__dtZt7zrLZEmJT7YiTNTw9cA_18 . context );
if ( TM__dtZt7zrLZEmJT7YiTNTw9cA_18 . status == 0 ) {
nimln_ ( 202 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
initSha1Hash__nimblepkgZsha49hashes_66 ( checksum , ( & sha1Checksum ));
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
if ( isObj ( nimBorrowCurrentException () -> Sup . m_type , ( & NTIinvalidsha49hasherror__uhtJgqO1lMlGCXqvHwueZA_ ))) {
TM__dtZt7zrLZEmJT7YiTNTw9cA_18 . status = 0 ;
sha1Checksum . hashValue = copyString ( notSetSha1Hash__nimblepkgZsha49hashes_10 . hashValue );
popCurrentException ();
}
}
if ( TM__dtZt7zrLZEmJT7YiTNTw9cA_18 . status != 0 ) reraiseException ();
nimln_ ( 206 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
colontmp_ = copyString ( name );
nimZeroMem (( void * )( & colontmp__2 ), sizeof ( tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA ));
newVersion__nimblepkgZversion_81 ( version , ( & colontmp__2 ));
nimZeroMem (( void * )( & colontmp__3 ), sizeof ( tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw ));
colontmp__3 . hashValue = copyString ( sha1Checksum . hashValue );
unsureAsgnRef (( void ** ) ( & ( * Result ). Field0 ), copyString ( colontmp_ ));
unsureAsgnRef (( void ** ) ( & ( * Result ). Field1 . version ), copyString ( colontmp__2 . version ));
unsureAsgnRef (( void ** ) ( & ( * Result ). Field2 . hashValue ), copyString ( colontmp__3 . hashValue ));
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , samePaths__nimblepkgZtools_66 )( NimStringDesc * p1 , NimStringDesc * p2 ) {
NIM_BOOL result ;
NimStringDesc * cp1 ;
NimStringDesc * cp2 ;
NimStringDesc * T15_ ;
NimStringDesc * T16_ ;
NI T17_ ;
nimfr_ ( "samePaths" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = ( NIM_BOOL ) 0 ;
nimln_ ( 79 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NIM_BOOL T3_ ;
NimStringDesc * T6_ ;
T3_ = ( NIM_BOOL ) 0 ;
T3_ = nsuEndsWith ( p1 , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_19 ));
if ( !! ( T3_ )) goto LA4_ ;
T6_ = NIM_NIL ;
T6_ = rawNewString (( p1 ? p1 -> Sup . len : 0 ) + 1 );
appendString ( T6_ , p1 );
appendString ( T6_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_19 ));
cp1 = T6_ ;
}
goto LA1_ ;
LA4_ : ;
{
cp1 = copyString ( p1 );
}
LA1_ : ;
nimln_ ( 80 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NIM_BOOL T10_ ;
NimStringDesc * T13_ ;
T10_ = ( NIM_BOOL ) 0 ;
T10_ = nsuEndsWith ( p2 , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_19 ));
if ( !! ( T10_ )) goto LA11_ ;
T13_ = NIM_NIL ;
T13_ = rawNewString (( p2 ? p2 -> Sup . len : 0 ) + 1 );
appendString ( T13_ , p2 );
appendString ( T13_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_19 ));
cp2 = T13_ ;
}
goto LA8_ ;
LA11_ : ;
{
cp2 = copyString ( p2 );
}
LA8_ : ;
nimln_ ( 81 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T15_ = NIM_NIL ;
T15_ = nsuReplaceChar ( cp1 , 47 , 47 );
cp1 = nsuReplaceChar ( T15_ , 92 , 47 );
nimln_ ( 82 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T16_ = NIM_NIL ;
T16_ = nsuReplaceChar ( cp2 , 47 , 47 );
cp2 = nsuReplaceChar ( T16_ , 92 , 47 );
nimln_ ( 84 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T17_ = ( NI ) 0 ;
T17_ = noscmpPaths ( cp1 , cp2 );
result = ( T17_ == (( NI ) 0 ));
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , changeRoot__nimblepkgZtools_72 )( NimStringDesc * origRoot , NimStringDesc * newRoot , NimStringDesc * path ) {
NimStringDesc * result ;
nimfr_ ( "changeRoot" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = NIM_NIL ;
nimln_ ( 98 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NIM_BOOL T3_ ;
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_20 ;
NimStringDesc * T7_ ;
T3_ = ( NIM_BOOL ) 0 ;
T3_ = nsuStartsWith ( path , origRoot );
if ( T3_ ) goto LA4_ ;
T3_ = samePaths__nimblepkgZtools_66 ( path , origRoot );
LA4_ : ;
if ( ! T3_ ) goto LA5_ ;
nimln_ ( 99 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( nimSubInt (( path ? path -> Sup . len : 0 ), (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_20 )) { raiseOverflow (); };
T7_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T7_ = substr__system_7790 ( path , ( origRoot ? origRoot -> Sup . len : 0 ), ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_20 ));
2022-09-19 09:55:15 +03:00
result = slash___pureZos_121 ( newRoot , T7_ );
goto BeforeRet_ ;
}
goto LA1_ ;
LA5_ : ;
{
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T9_ ;
nimln_ ( 101 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T9_ = NIM_NIL ;
T9_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_21 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T9_ , "NimbleError" , "changeRoot" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 101 );
}
LA1_ : ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getDownloadDirName__nimblepkgZtools_96 )( NimStringDesc * uri , tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w * verRange , tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw vcsRevision ) {
NimStringDesc * result ;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ puri ;
NimStringDesc * verSimple ;
nimfr_ ( "getDownloadDirName" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = NIM_NIL ;
nimZeroMem (( void * )( & puri ), sizeof ( tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ ));
nimln_ ( 125 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
parseUri__pureZuri_207 ( uri , ( & puri ));
2022-09-19 09:55:15 +03:00
{
NIM_CHAR i ;
NI i_2 ;
NI L ;
i = ( NIM_CHAR ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 253 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
i_2 = (( NI ) 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 254 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
L = ( puri . hostname ? puri . hostname -> Sup . len : 0 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 255 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_22 ;
if ( ! ( i_2 < L )) goto LA3 ;
nimln_ ( 126 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( i_2 < 0 || i_2 >= ( puri . hostname ? puri . hostname -> Sup . len : 0 )){ raiseIndexError2 ( i_2 ,( puri . hostname ? puri . hostname -> Sup . len : 0 ) - 1 ); }
i = puri . hostname -> data [ i_2 ];
switch ((( NU8 )( i ))) {
case 65 ... 90 :
case 48 ... 57 :
case 97 ... 122 :
{
nimln_ ( 129 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = addChar ( result , i );
}
break ;
default :
{
}
break ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 257 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i_2 , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_22 )) { raiseOverflow (); };
i_2 = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_22 );
2022-12-25 14:07:15 +02:00
nimln_ ( 258 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
{
if ( !! ((( puri . hostname ? puri . hostname -> Sup . len : 0 ) == L ))) goto LA8_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_23 ));
2022-09-19 09:55:15 +03:00
}
LA8_ : ;
} LA3 : ;
}
}
nimln_ ( 131 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = resizeString ( result , 1 );
appendString ( result , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_24 ));
{
NIM_CHAR i_3 ;
NI i_4 ;
NI L_2 ;
i_3 = ( NIM_CHAR ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 253 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
i_4 = (( NI ) 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 254 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
L_2 = ( puri . path ? puri . path -> Sup . len : 0 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 255 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_25 ;
if ( ! ( i_4 < L_2 )) goto LA12 ;
nimln_ ( 132 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( i_4 < 0 || i_4 >= ( puri . path ? puri . path -> Sup . len : 0 )){ raiseIndexError2 ( i_4 ,( puri . path ? puri . path -> Sup . len : 0 ) - 1 ); }
i_3 = puri . path -> data [ i_4 ];
switch ((( NU8 )( i_3 ))) {
case 65 ... 90 :
case 48 ... 57 :
case 97 ... 122 :
{
nimln_ ( 135 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = addChar ( result , i_3 );
}
break ;
default :
{
}
break ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 257 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i_4 , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_25 )) { raiseOverflow (); };
i_4 = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_25 );
2022-12-25 14:07:15 +02:00
nimln_ ( 258 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
{
if ( !! ((( puri . path ? puri . path -> Sup . len : 0 ) == L_2 ))) goto LA17_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_23 ));
2022-09-19 09:55:15 +03:00
}
LA17_ : ;
} LA12 : ;
}
}
nimln_ ( 138 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
verSimple = getSimpleString__nimblepkgZversion_653 ( verRange );
2022-09-19 09:55:15 +03:00
nimln_ ( 139 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
if ( !! ((( verSimple ? verSimple -> Sup . len : 0 ) == 0 ))) goto LA21_ ;
nimln_ ( 140 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = resizeString ( result , 1 );
appendString ( result , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_24 ));
nimln_ ( 141 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = resizeString ( result , ( verSimple ? verSimple -> Sup . len : 0 ) + 0 );
appendString ( result , verSimple );
}
LA21_ : ;
nimln_ ( 143 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
if ( !! ((( vcsRevision . hashValue ? vcsRevision . hashValue -> Sup . len : 0 ) == 0 ))) goto LA25_ ;
nimln_ ( 144 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = resizeString ( result , 1 );
appendString ( result , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_24 ));
nimln_ ( 145 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = resizeString ( result , ( vcsRevision . hashValue ? vcsRevision . hashValue -> Sup . len : 0 ) + 0 );
appendString ( result , vcsRevision . hashValue );
}
LA25_ : ;
popFrame ();
return result ;
}
N_LIB_PRIVATE N_NIMCALL ( void , getNimrodVersion__nimblepkgZtools_52 )( tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * options , tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA * Result ) {
NimStringDesc * vOutput ;
NimStringDesc * T1_ ;
NimStringDesc * T2_ ;
NimStringDesc * T3_ ;
tyTuple__XOVT24GHXwqiEj5GCsEGCA T4_ ;
tyArray__7q5RSNd682Lso5UEcQZR9cQ matches ;
nimfr_ ( "getNimrodVersion" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 71 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T1_ = NIM_NIL ;
T2_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T2_ = getNimBin__nimblepkgZoptions_272 ( options );
2022-09-19 09:55:15 +03:00
T3_ = NIM_NIL ;
T3_ = nospquoteShell ( T2_ );
T1_ = rawNewString (( T3_ ? T3_ -> Sup . len : 0 ) + 3 );
appendString ( T1_ , T3_ );
appendString ( T1_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_26 ));
nimZeroMem (( void * )( & T4_ ), sizeof ( tyTuple__XOVT24GHXwqiEj5GCsEGCA ));
doCmdEx__nimblepkgZtools_29 ( T1_ , ( & T4_ ));
vOutput = T4_ . Field0 ;
nimZeroMem (( void * ) matches , sizeof ( tyArray__7q5RSNd682Lso5UEcQZR9cQ ));
nimln_ ( 73 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ T7_ ;
NI T8_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T11_ ;
nimZeroMem (( void * )( & T7_ ), sizeof ( tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ ));
2022-12-25 14:07:15 +02:00
peg__pureZpegs_3927 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_27 ), ( & T7_ ));
2022-09-19 09:55:15 +03:00
T8_ = ( NI ) 0 ;
T8_ = npegsfindCapture ( vOutput , T7_ , matches , 21 , (( NI ) 0 ));
if ( ! ( T8_ == (( NI ) - 1 ))) goto LA9_ ;
nimln_ ( 74 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T11_ = NIM_NIL ;
T11_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_28 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T11_ , "NimbleError" , "getNimrodVersion" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 74 );
}
LA9_ : ;
nimln_ ( 75 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
newVersion__nimblepkgZversion_81 ( matches [((( NI ) 0 )) - 0 ], Result );
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( void , doCmd__nimblepkgZtools_22 )( NimStringDesc * cmd ) {
NimStringDesc * bin ;
NIM_BOOL isNim ;
NimStringDesc * T1_ ;
nimfr_ ( "doCmd" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 21 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
bin = extractBin__nimblepkgZtools_19 ( cmd );
nimln_ ( 22 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T1_ = NIM_NIL ;
T1_ = nosextractFilename ( bin );
isNim = nsuStartsWith ( T1_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_29 ));
nimln_ ( 23 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc * T4_ ;
NimStringDesc * T7_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T8_ ;
T4_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T4_ = findExe__pureZos_646 ( bin , NIM_TRUE , ExeExts__pureZos_645 , 1 );
2022-09-19 09:55:15 +03:00
if ( ! (( T4_ ? T4_ -> Sup . len : 0 ) == 0 )) goto LA5_ ;
nimln_ ( 24 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T7_ = NIM_NIL ;
T7_ = rawNewString (( bin ? bin -> Sup . len : 0 ) + 15 );
appendString ( T7_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_7 ));
appendString ( T7_ , bin );
appendString ( T7_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_8 ));
T8_ = NIM_NIL ;
T8_ = nimbleError__nimblepkgZcommon_26 ( T7_ , (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T8_ , "NimbleError" , "doCmd" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 24 );
}
LA5_ : ;
nimln_ ( 27 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
flushFile__systemZio_226 ( stdout );
2022-09-19 09:55:15 +03:00
nimln_ ( 28 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
flushFile__systemZio_226 ( stderr );
2022-09-19 09:55:15 +03:00
nimln_ ( 30 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NI exitCode ;
if ( ! isNim ) goto LA11_ ;
nimln_ ( 33 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_6 ), cmd , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 2 ));
nimln_ ( 34 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
exitCode = nospexecCmd ( cmd );
nimln_ ( 35 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
tyArray__Re75IspeoxXy2oCZHwcRrA T17_ ;
NimStringDesc * T18_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T19_ ;
if ( !! (( exitCode == (( NI ) 0 )))) goto LA15_ ;
nimln_ ( 36 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 37 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * ) T17_ , sizeof ( tyArray__Re75IspeoxXy2oCZHwcRrA ));
nimln_ ( 38 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
T17_ [ 0 ] = dollar___systemZdollars_3 ( exitCode );
2022-09-19 09:55:15 +03:00
T17_ [ 1 ] = copyString ( cmd );
nimln_ ( 37 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T18_ = NIM_NIL ;
T18_ = nsuFormatOpenArray ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_30 ), T17_ , 2 );
nimln_ ( 36 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T19_ = NIM_NIL ;
T19_ = nimbleError__nimblepkgZcommon_26 ( T18_ , (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T19_ , "NimbleError" , "doCmd" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 36 );
}
LA15_ : ;
}
goto LA9_ ;
LA11_ : ;
{
tyTuple__XOVT24GHXwqiEj5GCsEGCA T21_ ;
NimStringDesc * output ;
NI exitCode_2 ;
nimln_ ( 40 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
displayDebug__nimblepkgZcli_694 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_6 ), cmd );
nimln_ ( 41 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * )( & T21_ ), sizeof ( tyTuple__XOVT24GHXwqiEj5GCsEGCA ));
2022-12-25 14:07:15 +02:00
execCmdEx__pureZosproc_1218 ( cmd , 10 , (( tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ), (( NimStringDesc * ) NIM_NIL ), ( & T21_ ));
2022-09-19 09:55:15 +03:00
output = NIM_NIL ;
output = T21_ . Field0 ;
exitCode_2 = ( NI ) 0 ;
exitCode_2 = T21_ . Field1 ;
nimln_ ( 42 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
displayDebug__nimblepkgZcli_694 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_31 ), output );
nimln_ ( 43 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
tyArray__24KAM9afIUgUaqBaEBB6r9bg T26_ ;
NimStringDesc * T27_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T28_ ;
if ( !! (( exitCode_2 == (( NI ) 0 )))) goto LA24_ ;
nimln_ ( 44 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 45 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * ) T26_ , sizeof ( tyArray__24KAM9afIUgUaqBaEBB6r9bg ));
nimln_ ( 46 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
T26_ [ 0 ] = dollar___systemZdollars_3 ( exitCode_2 );
2022-09-19 09:55:15 +03:00
T26_ [ 1 ] = copyString ( cmd );
T26_ [ 2 ] = copyString ( output );
nimln_ ( 45 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T27_ = NIM_NIL ;
T27_ = nsuFormatOpenArray ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_32 ), T26_ , 3 );
nimln_ ( 44 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T28_ = NIM_NIL ;
T28_ = nimbleError__nimblepkgZcommon_26 ( T27_ , (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
raiseExceptionEx (( Exception * ) T28_ , "NimbleError" , "doCmd" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" , 44 );
}
LA24_ : ;
}
LA9_ : ;
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , copyFileD__nimblepkgZtools_77 )( NimStringDesc * fro , NimStringDesc * to ) {
NimStringDesc * result ;
tyArray__Re75IspeoxXy2oCZHwcRrA T1_ ;
NimStringDesc * T2_ ;
nimfr_ ( "copyFileD" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = NIM_NIL ;
nimln_ ( 106 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimZeroMem (( void * ) T1_ , sizeof ( tyArray__Re75IspeoxXy2oCZHwcRrA ));
T1_ [ 0 ] = copyString ( fro );
T1_ [ 1 ] = copyString ( to );
T2_ = NIM_NIL ;
T2_ = nsuFormatOpenArray ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_34 ), T1_ , 2 );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_33 ), T2_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 1 ));
nimln_ ( 107 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
copyFileWithPermissions__pureZos_1450 ( fro , to , NIM_TRUE , 2 );
2022-09-19 09:55:15 +03:00
nimln_ ( 108 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = copyString ( to );
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , incl__nimble_12325 )( tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg * s , tySequence__sM4lkSb7zS6F7OVMvW9cffQ * v ) {
2022-09-19 09:55:15 +03:00
nimfr_ ( "incl" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc ** i ;
NI i_2 ;
NI L ;
NI T2_ ;
i = ( NimStringDesc ** ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 235 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
i_2 = (( NI ) 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 236 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
T2_ = ( v ? v -> Sup . len : 0 );
L = T2_ ;
{
2022-12-25 14:07:15 +02:00
nimln_ ( 237 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_35 ;
if ( ! ( i_2 < L )) goto LA4 ;
nimln_ ( 148 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( i_2 < 0 || i_2 >= ( v ? v -> Sup . len : 0 )){ raiseIndexError2 ( i_2 ,( v ? v -> Sup . len : 0 ) - 1 ); }
i = ( & v -> data [ i_2 ]);
2022-12-25 14:07:15 +02:00
incl__OOZOOZOOZOOZOchoosenimZtoolchainsZnim4535version45494554ZcompilerZoptions_2527 ( s , ( * i ));
nimln_ ( 239 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i_2 , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_35 )) { raiseOverflow (); };
i_2 = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_35 );
2022-12-25 14:07:15 +02:00
nimln_ ( 240 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
{
NI T7_ ;
T7_ = ( v ? v -> Sup . len : 0 );
if ( !! (( T7_ == L ))) goto LA8_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_36 ));
2022-09-19 09:55:15 +03:00
}
LA8_ : ;
} LA4 : ;
}
}
popFrame ();
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( NimStringDesc * , pop__pureZos_1366 )( tySequence__sM4lkSb7zS6F7OVMvW9cffQ ** s ) {
2022-09-19 09:55:15 +03:00
NimStringDesc * result ;
NI L ;
NI T1_ ;
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_38 ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "pop" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 1866 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
T1_ = (( * s ) ? ( * s ) -> Sup . len : 0 );
if ( nimSubInt ( T1_ , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_38 )) { raiseOverflow (); };
L = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_38 );
2022-12-25 14:07:15 +02:00
nimln_ ( 1871 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if ( L < 0 || L >= (( * s ) ? ( * s ) -> Sup . len : 0 )){ raiseIndexError2 ( L ,(( * s ) ? ( * s ) -> Sup . len : 0 ) - 1 ); }
result = copyString (( * s ) -> data [ L ]);
2022-12-25 14:07:15 +02:00
nimln_ ( 1872 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if (( L ) < (( NI ) 0 ) || ( L ) > (( NI ) IL64 ( 9223372036854775807 ))){ raiseRangeErrorI ( L , (( NI ) 0 ), (( NI ) IL64 ( 9223372036854775807 ))); }
unsureAsgnRef (( void ** ) ( & ( * s )), ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * ) setLengthSeqV2 ( & (( * s )) -> Sup , ( & NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_ ), (( NI ) ( L ))));
popFrame ();
return result ;
}
static N_INLINE ( NCSTRING , nimToCStringConv )( NimStringDesc * s ) {
NCSTRING result ;
result = ( NCSTRING ) 0 ;
{
NIM_BOOL T3_ ;
T3_ = ( NIM_BOOL ) 0 ;
T3_ = ( s == (( NimStringDesc * ) NIM_NIL ));
if ( T3_ ) goto LA4_ ;
T3_ = (( * s ). Sup . len == (( NI ) 0 ));
LA4_ : ;
if ( ! T3_ ) goto LA5_ ;
result = "" ;
}
goto LA1_ ;
LA5_ : ;
{
result = (( NCSTRING ) (( * s ). data ));
}
LA1_ : ;
return result ;
}
static N_INLINE ( void , nimGCunrefNoCycle )( void * p ) {
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * T1_ ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "nimGCunrefNoCycle" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
nimln_ ( 276 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/gc.nim" );
2022-09-19 09:55:15 +03:00
T1_ = ( tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g * ) 0 ;
2022-12-25 14:07:15 +02:00
T1_ = usrToCell__system_5299 ( p );
decRef__system_5344 ( T1_ );
2022-09-19 09:55:15 +03:00
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , isEmptyDir__nimblepkgZtools_125 )( NimStringDesc * dir ) {
NIM_BOOL result ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * resultX60gensym9_ ;
TFrame * _nimCurFrame ;
NI T78_ ;
nimfr_ ( "isEmptyDir" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
_nimCurFrame = getFrame ();
result = ( NIM_BOOL ) 0 ;
nimln_ ( 186 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 851 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sequtils.nim" );
2022-09-19 09:55:15 +03:00
resultX60gensym9_ = NIM_NIL ;
{
NimStringDesc * xX60gensym9_ ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * stack ;
NIM_BOOL checkDir ;
xX60gensym9_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2411 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
stack = ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * ) newSeq (( & NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_ ), 1 );
asgnRef (( void ** ) ( & stack -> data [ 0 ]), (( NimStringDesc * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
nimln_ ( 2412 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
checkDir = NIM_FALSE ;
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2413 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI T4_ ;
NimStringDesc * d ;
T4_ = ( stack ? stack -> Sup . len : 0 );
if ( ! ((( NI ) 0 ) < T4_ )) goto LA3 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2414 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
d = pop__pureZos_1366 (( & stack ));
2022-09-19 09:55:15 +03:00
{
tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg k ;
NimStringDesc * p ;
NimStringDesc * colontmp_ ;
DIR * d_2 ;
k = ( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 0 ;
p = NIM_NIL ;
colontmp_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2415 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
colontmp_ = slash___pureZos_121 ( dir , d );
2022-12-25 14:07:15 +02:00
nimln_ ( 2331 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
d_2 = opendir ( nimToCStringConv ( colontmp_ ));
2022-12-25 14:07:15 +02:00
nimln_ ( 2332 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! ( d_2 == (( DIR * ) NIM_NIL ))) goto LA8_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2333 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
NI32 T14_ ;
if ( ! checkDir ) goto LA12_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2334 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T14_ = ( NI32 ) 0 ;
T14_ = osLastError__pureZos_408 ();
raiseOSError__pureZos_405 ( T14_ , colontmp_ );
}
LA12_ : ;
}
goto LA6_ ;
LA8_ : ;
{
TSafePoint TM__dtZt7zrLZEmJT7YiTNTw9cA_39 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2336 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
pushSafePoint ( & TM__dtZt7zrLZEmJT7YiTNTw9cA_39 );
TM__dtZt7zrLZEmJT7YiTNTw9cA_39 . status = setjmp ( TM__dtZt7zrLZEmJT7YiTNTw9cA_39 . context );
if ( TM__dtZt7zrLZEmJT7YiTNTw9cA_39 . status == 0 ) {
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2337 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
{
struct dirent * x ;
NimStringDesc * y ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2338 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
x = readdir ( d_2 );
2022-12-25 14:07:15 +02:00
nimln_ ( 2339 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! ( x == (( struct dirent * ) NIM_NIL ))) goto LA21_ ;
goto LA16 ;
}
LA21_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2340 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
y = cstrToNimstr ((( NCSTRING ) (( * x ). d_name )));
2022-12-25 14:07:15 +02:00
nimln_ ( 2341 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T25_ ;
struct stat s ;
NimStringDesc * path ;
tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg k_2 ;
NimStringDesc * rel ;
T25_ = ( NIM_BOOL ) 0 ;
T25_ = ! ( eqStrings ( y , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_40 )));
if ( ! ( T25_ )) goto LA26_ ;
T25_ = ! ( eqStrings ( y , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_41 )));
LA26_ : ;
if ( ! T25_ ) goto LA27_ ;
nimZeroMem (( void * )( & s ), sizeof ( struct stat ));
2022-12-25 14:07:15 +02:00
nimln_ ( 2343 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
path = slash___pureZos_121 ( colontmp_ , y );
2022-12-25 14:07:15 +02:00
nimln_ ( 2344 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! NIM_FALSE ) goto LA31_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2345 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
y = copyString ( path );
}
LA31_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2346 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
k_2 = (( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 2357 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
switch (( * x ). d_type ) {
case (( NI ) 4 ) :
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2358 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
k_2 = (( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 2 );
}
break ;
case (( NI ) 10 ) :
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2360 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T37_ ;
T37_ = ( NIM_BOOL ) 0 ;
T37_ = nosdirExists ( path );
if ( ! T37_ ) goto LA38_ ;
k_2 = (( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 3 );
}
goto LA35_ ;
LA38_ : ;
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2361 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
k_2 = (( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 1 );
}
LA35_ : ;
}
break ;
case (( NI ) 0 ) :
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2363 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
int T44_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2349 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T44_ = ( int ) 0 ;
T44_ = lstat ( nimToCStringConv ( path ), ( & s ));
if ( ! ( T44_ < (( NI32 ) 0 ))) goto LA45_ ;
goto LA18 ;
}
goto LA42_ ;
LA45_ : ;
{
NIM_BOOL T48_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2350 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T48_ = ( NIM_BOOL ) 0 ;
T48_ = S_ISDIR ( s . st_mode );
if ( ! T48_ ) goto LA49_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2351 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
k_2 = (( tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg ) 2 );
}
goto LA42_ ;
LA49_ : ;
{
NIM_BOOL T52_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2352 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T52_ = ( NIM_BOOL ) 0 ;
T52_ = S_ISLNK ( s . st_mode );
if ( ! T52_ ) goto LA53_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2353 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
k_2 = getSymlinkFileKind__pureZos_1220 ( path );
2022-09-19 09:55:15 +03:00
}
goto LA42_ ;
LA53_ : ;
LA42_ : ;
}
break ;
default :
{
}
break ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 2415 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
k = k_2 ;
p = y ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2416 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
rel = slash___pureZos_121 ( d , p );
2022-12-25 14:07:15 +02:00
nimln_ ( 2415 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T58_ ;
NI T62_ ;
NimStringDesc * T63_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2417 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T58_ = ( NIM_BOOL ) 0 ;
T58_ = (( 12 & (( NU8 ) 1 << (( NU )( k ) & 7U ))) != 0 );
if ( ! ( T58_ )) goto LA59_ ;
T58_ = (( 4 & (( NU8 ) 1 << (( NU )( k ) & 7U ))) != 0 );
LA59_ : ;
if ( ! T58_ ) goto LA60_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2418 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
stack = ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * ) incrSeqV3 (( TGenericSeq * )( stack ), ( & NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_ ));
T62_ = stack -> Sup . len ++ ;
T63_ = NIM_NIL ;
T63_ = stack -> data [ T62_ ]; stack -> data [ T62_ ] = copyStringRC1 ( rel );
if ( T63_ ) nimGCunrefNoCycle ( T63_ );
}
LA60_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2415 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
NI T73_ ;
NimStringDesc * T74_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2419 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
if ( ! (( 1 & (( NU8 ) 1 << (( NU )( k ) & 7U ))) != 0 )) goto LA66_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 852 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sequtils.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! NIM_FALSE ) goto LA70_ ;
xX60gensym9_ = rel ;
}
goto LA68_ ;
LA70_ : ;
{
2022-12-25 14:07:15 +02:00
nimln_ ( 2420 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
xX60gensym9_ = slash___pureZos_121 ( dir , rel );
}
LA68_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 852 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sequtils.nim" );
2022-09-19 09:55:15 +03:00
resultX60gensym9_ = ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * ) incrSeqV3 (( TGenericSeq * )( resultX60gensym9_ ), ( & NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_ ));
T73_ = resultX60gensym9_ -> Sup . len ++ ;
T74_ = NIM_NIL ;
T74_ = resultX60gensym9_ -> data [ T73_ ]; resultX60gensym9_ -> data [ T73_ ] = copyStringRC1 ( xX60gensym9_ );
if ( T74_ ) nimGCunrefNoCycle ( T74_ );
}
LA66_ : ;
}
LA27_ : ;
} LA18 : ;
}
} LA16 : ;
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
}
{
int T77_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2336 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
T77_ = ( int ) 0 ;
T77_ = closedir ( d_2 );
( void )( T77_ );
if ( TM__dtZt7zrLZEmJT7YiTNTw9cA_39 . status != 0 ) nimLeaveFinally ();
}
if ( TM__dtZt7zrLZEmJT7YiTNTw9cA_39 . status != 0 ) reraiseException ();
}
LA6_ : ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 2421 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
checkDir = NIM_FALSE ;
} LA3 : ;
}
}
T78_ = ( resultX60gensym9_ ? resultX60gensym9_ -> Sup . len : 0 );
result = ( T78_ == (( NI ) 0 ));
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , removePackageDir__nimblepkgZtools_179 )( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * files , NimStringDesc * dir , NIM_BOOL reportSuccess ) {
2022-09-19 09:55:15 +03:00
nimfr_ ( "removePackageDir" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc ** file ;
NI i ;
NI L ;
NI T2_ ;
file = ( NimStringDesc ** ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 235 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
i = (( NI ) 0 );
2022-12-25 14:07:15 +02:00
nimln_ ( 236 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
T2_ = ( files ? files -> Sup . len : 0 );
L = T2_ ;
{
2022-12-25 14:07:15 +02:00
nimln_ ( 237 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NimStringDesc * T5_ ;
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_37 ;
if ( ! ( i < L )) goto LA4 ;
nimln_ ( 209 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( i < 0 || i >= ( files ? files -> Sup . len : 0 )){ raiseIndexError2 ( i ,( files ? files -> Sup . len : 0 ) - 1 ); }
file = ( & files -> data [ i ]);
T5_ = NIM_NIL ;
T5_ = slash___pureZos_121 ( dir , ( * file ));
nosremoveFile ( T5_ );
2022-12-25 14:07:15 +02:00
nimln_ ( 239 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_37 )) { raiseOverflow (); };
i = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_37 );
2022-12-25 14:07:15 +02:00
nimln_ ( 240 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators.nim" );
2022-09-19 09:55:15 +03:00
{
NI T8_ ;
T8_ = ( files ? files -> Sup . len : 0 );
if ( !! (( T8_ == L ))) goto LA9_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_36 ));
2022-09-19 09:55:15 +03:00
}
LA9_ : ;
} LA4 : ;
}
}
nimln_ ( 212 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NIM_BOOL T13_ ;
T13_ = ( NIM_BOOL ) 0 ;
T13_ = isEmptyDir__nimblepkgZtools_125 ( dir );
if ( ! T13_ ) goto LA14_ ;
nimln_ ( 213 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nosremoveDir ( dir , NIM_FALSE );
nimln_ ( 214 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc * fmtRes ;
if ( ! reportSuccess ) goto LA18_ ;
nimln_ ( 215 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
2022-09-19 09:55:15 +03:00
nimln_ ( 215 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
fmtRes = rawNewString ((( NI ) 49 ));
fmtRes = resizeString ( fmtRes , 15 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_42 ));
formatValue__pureZstrformat_162 (( & fmtRes ), dir , (( NimStringDesc * ) NIM_NIL ));
fmtRes = resizeString ( fmtRes , 19 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_43 ));
displaySuccess__nimblepkgZcli_638 ( fmtRes , (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 2 ));
}
LA18_ : ;
}
goto LA11_ ;
LA14_ : ;
{
NimStringDesc * T21_ ;
NimStringDesc * fmtRes_2 ;
nimln_ ( 218 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 219 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T21_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
2022-09-19 09:55:15 +03:00
nimln_ ( 219 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
fmtRes_2 = rawNewString ((( NI ) 58 ));
fmtRes_2 = resizeString ( fmtRes_2 , 40 );
appendString ( fmtRes_2 , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_44 ));
formatValue__pureZstrformat_162 (( & fmtRes_2 ), dir , (( NimStringDesc * ) NIM_NIL ));
fmtRes_2 = resizeString ( fmtRes_2 , 3 );
appendString ( fmtRes_2 , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_45 ));
T21_ = rawNewString (( fmtRes_2 ? fmtRes_2 -> Sup . len : 0 ) + 42 );
appendString ( T21_ , fmtRes_2 );
appendString ( T21_ , (( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_46 ));
nimln_ ( 218 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
displayWarning__nimblepkgZcli_629 ( T21_ , (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
}
LA11_ : ;
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( void , createDirD__nimblepkgZtools_94 )( NimStringDesc * dir ) {
NimStringDesc * T1_ ;
nimfr_ ( "createDirD" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
nimln_ ( 119 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T1_ = NIM_NIL ;
T1_ = nsuFormatSingleElem ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_48 ), dir );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_47 ), T1_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 1 ));
nimln_ ( 120 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
noscreateDir ( dir );
popFrame ();
}
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getNimbleUserTempDir__nimblepkgZtools_122 )( void ) {
NimStringDesc * result ;
NimStringDesc * tmpdir ;
nimfr_ ( "getNimbleUserTempDir" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{ result = NIM_NIL ;
tmpdir = NIM_NIL ;
nimln_ ( 179 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NIM_BOOL T3_ ;
NimStringDesc * T7_ ;
NimStringDesc * T8_ ;
T3_ = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
T3_ = existsEnv__pureZos_423 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_49 ));
2022-09-19 09:55:15 +03:00
if ( ! ( T3_ )) goto LA4_ ;
2022-12-25 14:07:15 +02:00
T3_ = existsEnv__pureZos_423 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_50 ));
2022-09-19 09:55:15 +03:00
LA4_ : ;
if ( ! T3_ ) goto LA5_ ;
nimln_ ( 180 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
T7_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T7_ = getEnv__pureZos_418 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_49 ), (( NimStringDesc * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
T8_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T8_ = getEnv__pureZos_418 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_50 ), (( NimStringDesc * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
tmpdir = nosjoinPath ( T7_ , T8_ );
}
goto LA1_ ;
LA5_ : ;
{
nimln_ ( 182 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
tmpdir = nosgetTempDir ();
}
LA1_ : ;
nimln_ ( 183 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
result = copyString ( tmpdir );
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
static N_INLINE ( NIM_BOOL , isFilled__pureZcollectionsZsets_38 )( NI hcode ) {
NIM_BOOL result ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "isFilled" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/hashcommon.nim" );
2022-09-19 09:55:15 +03:00
result = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 22 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/hashcommon.nim" );
2022-09-19 09:55:15 +03:00
result = ! (( hcode == (( NI ) 0 )));
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , incl__nimble_25664 )( tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg * s , tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg v ) {
2022-09-19 09:55:15 +03:00
nimfr_ ( "incl" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
{
NimStringDesc * i ;
NI length ;
i = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 262 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim" );
2022-09-19 09:55:15 +03:00
length = len__nimblepkgZvcstools_2068 ( v );
{
NI h ;
NI colontmp_ ;
NI T3_ ;
NI res ;
h = ( NI ) 0 ;
colontmp_ = ( NI ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 263 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim" );
2022-09-19 09:55:15 +03:00
T3_ = (( v . data ? v . data -> Sup . len : 0 ) - 1 );
colontmp_ = T3_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 90 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators_1.nim" );
2022-09-19 09:55:15 +03:00
res = (( NI ) 0 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 91 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators_1.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__dtZt7zrLZEmJT7YiTNTw9cA_52 ;
if ( ! ( res <= colontmp_ )) goto LA5 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 263 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim" );
2022-09-19 09:55:15 +03:00
h = res ;
{
NIM_BOOL T8_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 264 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim" );
2022-09-19 09:55:15 +03:00
if ( h < 0 || h >= ( v . data ? v . data -> Sup . len : 0 )){ raiseIndexError2 ( h ,( v . data ? v . data -> Sup . len : 0 ) - 1 ); }
T8_ = ( NIM_BOOL ) 0 ;
T8_ = isFilled__pureZcollectionsZsets_38 ( v . data -> data [ h ]. Field0 );
if ( ! T8_ ) goto LA9_ ;
nimln_ ( 148 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/tools.nim" );
if ( h < 0 || h >= ( v . data ? v . data -> Sup . len : 0 )){ raiseIndexError2 ( h ,( v . data ? v . data -> Sup . len : 0 ) - 1 ); }
i = v . data -> data [ h ]. Field1 ;
2022-12-25 14:07:15 +02:00
incl__OOZOOZOOZOOZOchoosenimZtoolchainsZnim4535version45494554ZcompilerZoptions_2527 ( s , i );
nimln_ ( 266 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/collections/sets.nim" );
2022-09-19 09:55:15 +03:00
{
NI T13_ ;
T13_ = ( NI ) 0 ;
T13_ = len__nimblepkgZvcstools_2068 ( v );
if ( !! (( T13_ == length ))) goto LA14_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__dtZt7zrLZEmJT7YiTNTw9cA_51 ));
2022-09-19 09:55:15 +03:00
}
LA14_ : ;
}
LA9_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 93 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/iterators_1.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( res , (( NI ) 1 ), & TM__dtZt7zrLZEmJT7YiTNTw9cA_52 )) { raiseOverflow (); };
res = ( NI )( TM__dtZt7zrLZEmJT7YiTNTw9cA_52 );
} LA5 : ;
}
}
}
popFrame ();
}