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 <unistd.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_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw ;
typedef struct tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ ;
typedef struct tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q ;
typedef struct NimStringDesc NimStringDesc ;
typedef struct TGenericSeq TGenericSeq ;
typedef struct tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA ;
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_Uri__j49bukNPrq747O1GRd4Ng9bQ tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ ;
typedef struct tyObject_Action__Axd3qAbppa2kHdtxRGykNw tyObject_Action__Axd3qAbppa2kHdtxRGykNw ;
typedef struct tySequence__kLwf9aGQcuduFr4gekUDa2w tySequence__kLwf9aGQcuduFr4gekUDa2w ;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ ;
typedef struct tySequence__K2J9a59aomOCxv7VVeiHZfug tySequence__K2J9a59aomOCxv7VVeiHZfug ;
typedef struct tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A tyObject_Option__vK1KzfYf1DGLiUIpLm9cS0A ;
typedef struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q ;
typedef struct tyObject_Table__861JQ0xhLIYW2jzxkMweLQ tyObject_Table__861JQ0xhLIYW2jzxkMweLQ ;
typedef struct tySequence__v6NVljHM6giAeuZKHEoQNA tySequence__v6NVljHM6giAeuZKHEoQNA ;
typedef struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w ;
typedef struct tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ ;
typedef struct tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA ;
typedef struct tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ ;
typedef struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w ;
typedef struct tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ ;
typedef struct Exception Exception ;
typedef struct RootObj RootObj ;
typedef struct TNimType TNimType ;
typedef struct TNimNode TNimNode ;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA ;
typedef struct TSafePoint TSafePoint ;
typedef struct tyObject_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_Table__qagh2zcXAhSb9aRfetCb26g tyObject_Table__qagh2zcXAhSb9aRfetCb26g ;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA ;
typedef struct tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg ;
typedef struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g tySequence__MlAD6nAPq9bHKla9cWiIZP0g ;
typedef struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ tySequence__oLpBKXzW3hF9aCVMo5EymfQ ;
typedef struct tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g ;
typedef struct tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ ;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA ;
typedef struct tyTuple__XOVT24GHXwqiEj5GCsEGCA tyTuple__XOVT24GHXwqiEj5GCsEGCA ;
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg ;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw ;
2022-12-25 14:07:15 +02:00
typedef struct tyObject_Table__dvABR7uXuaUlR5eyC6g6TQ tyObject_Table__dvABR7uXuaUlR5eyC6g6TQ ;
typedef struct tySequence__KUaTZL89cHr0hcMlN8NjHAg tySequence__KUaTZL89cHr0hcMlN8NjHAg ;
2022-09-19 09:55:15 +03:00
typedef struct tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug ;
typedef struct tySequence__SFipDZIkFtPcrLs0AGBBjQ tySequence__SFipDZIkFtPcrLs0AGBBjQ ;
typedef struct tyTuple__BjxoJYFE5BulbiU15SM6nQ tyTuple__BjxoJYFE5BulbiU15SM6nQ ;
typedef struct tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA ;
typedef struct tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw ;
2022-12-25 14:07:15 +02:00
typedef struct tyObject_Table__iakiVCWUfIuiHQqyxQaX8A tyObject_Table__iakiVCWUfIuiHQqyxQaX8A ;
typedef struct tySequence__GuNIUy7Gsew6nZ4VQBHfFg tySequence__GuNIUy7Gsew6nZ4VQBHfFg ;
2022-09-19 09:55:15 +03:00
typedef struct tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w ;
typedef struct tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg ;
typedef struct tySequence__72hOjuY2LKiowAwLCg19a9bA tySequence__72hOjuY2LKiowAwLCg19a9bA ;
typedef struct tyTuple__jq7X5k7hWG0tdTZTDkiyGQ tyTuple__jq7X5k7hWG0tdTZTDkiyGQ ;
typedef struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw ;
typedef struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q ;
typedef struct tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw ;
typedef struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ tyTuple__vQEyvUeZmB7ODgnsZ5BScQ ;
typedef struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg tyObject_PackageList__00UcE13159cf20wGpsHwwMg ;
typedef struct tyTuple__gDWaEqPfhOauJWKMBm8bzg tyTuple__gDWaEqPfhOauJWKMBm8bzg ;
typedef struct tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w ;
typedef struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA tyTuple__7OnuWIzW3xYXy9bIUIvuRmA ;
typedef struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw tyTuple__rLNSKSsDc19cDzAtjOZs9cSw ;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA ;
typedef struct tyTuple__awOivLjlO76sGdHY7nQUjQ tyTuple__awOivLjlO76sGdHY7nQUjQ ;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw ;
2022-12-25 14:07:15 +02:00
typedef struct tyTuple__BRPf9bXMt29aEMlIrLh5CZWQ tyTuple__BRPf9bXMt29aEMlIrLh5CZWQ ;
2022-09-19 09:55:15 +03:00
typedef struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg tyTuple__8ZxhPt1NwfElsJs8zUSV9bg ;
2022-12-25 14:07:15 +02:00
typedef struct tyTuple__UBKv1ckqvKAfuS0TS0t23Q tyTuple__UBKv1ckqvKAfuS0TS0t23Q ;
typedef struct tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ ;
typedef struct tySequence__ZkxkVxJvB9aqet9cfVQmFTZw tySequence__ZkxkVxJvB9aqet9cfVQmFTZw ;
typedef struct tyTuple__r1NtfsBxxsYs1cV48P1DyA tyTuple__r1NtfsBxxsYs1cV48P1DyA ;
2022-09-19 09:55:15 +03:00
typedef struct tyTuple__m8l9a4rYFktlUTIniXgnvog tyTuple__m8l9a4rYFktlUTIniXgnvog ;
typedef struct tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg ;
typedef struct tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA ;
struct TGenericSeq {
NI len ;
NI reserved ;
};
struct NimStringDesc {
TGenericSeq Sup ;
NIM_CHAR data [ SEQ_DECL_SIZE ];
};
struct tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q {
NimStringDesc * user ;
NimStringDesc * token ;
tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA * http ;
};
struct tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ {
tySequence__sQx7tKsP6HE09cszRIkxbdg * data ;
NI counter ;
};
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 ;
};
struct tyObject_Config__4CDaXnHluuDhjlvHrDG8RA {
NimStringDesc * nimbleDir ;
NIM_BOOL chcp ;
tyObject_Table__9cUbBDOJGZJU2domnRMqAHQ packageLists ;
NIM_BOOL cloneUsingHttps ;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ httpProxy ;
};
typedef NU8 tyEnum_ForcePrompt__djMIU0KJ4yj4ST3o49caOhA ;
typedef NU8 tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ;
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 ;
};
};
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 ;
};
typedef struct {
N_NIMCALL_PTR ( void , ClP_0 ) ( NI64 total , NI64 progress , NI64 speed , void * ClE_0 );
void * ClE_0 ;
} tyProc__TSOsjF4c9aXotPerq9cEE56A ;
struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w {
NI64 ticks ;
};
struct tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA {
tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ * socket ;
NIM_BOOL connected ;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ currentURL ;
tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA * headers ;
NI maxRedirects ;
NimStringDesc * userAgent ;
NI timeout ;
tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ * proxy ;
tyProc__TSOsjF4c9aXotPerq9cEE56A onProgressChanged ;
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * sslContext ;
NI64 contentTotal ;
NI64 contentProgress ;
NI64 oneSecondProgress ;
tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w lastProgressReport ;
tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ * bodyStream ;
NIM_BOOL getBody ;
};
typedef NU8 tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ;
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 ;
};
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ [ 25 ];
struct TSafePoint {
TSafePoint * prev ;
NI status ;
jmp_buf context ;
};
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw [ 32 ];
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_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA {
tyObject_Table__qagh2zcXAhSb9aRfetCb26g * table ;
NIM_BOOL isTitleCase ;
};
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc * Field0 ;
NimStringDesc * Field1 ;
};
typedef tyTuple__UV3llMMYFckfui8YMBuUZA tyArray__0ipey9aZuUA8jy4OAHzODQg [ 3 ];
typedef NU8 tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg ;
struct tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg {
tySequence__MlAD6nAPq9bHKla9cWiIZP0g * data ;
NI counter ;
NI first ;
NI last ;
};
struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q {
NIM_BOOL isUnquoted ;
tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg kind ;
union {
struct { NimStringDesc * str ;
} _kind_1 ;
struct { NI64 num ;
} _kind_2 ;
struct { NF fnum ;
} _kind_3 ;
struct { NIM_BOOL bval ;
} _kind_4 ;
struct { tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg fields ;
} _kind_6 ;
struct { tySequence__oLpBKXzW3hF9aCVMo5EymfQ * elems ;
} _kind_7 ;
};
};
struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
NimStringDesc * Field0 ;
NI Field1 ;
};
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
tySequence__4eRCaZmrYLLw2k30GPTiMw * data ;
NI counter ;
};
2022-12-25 14:07:15 +02:00
struct tyObject_Table__dvABR7uXuaUlR5eyC6g6TQ {
tySequence__KUaTZL89cHr0hcMlN8NjHAg * data ;
NI counter ;
};
2022-09-19 09:55:15 +03:00
struct tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug {
tySequence__SFipDZIkFtPcrLs0AGBBjQ * data ;
NI counter ;
};
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 ;
};
2022-12-25 14:07:15 +02:00
struct tyObject_Table__iakiVCWUfIuiHQqyxQaX8A {
tySequence__GuNIUy7Gsew6nZ4VQBHfFg * data ;
2022-09-19 09:55:15 +03:00
NI counter ;
};
typedef NU8 tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w ;
struct tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg {
tySequence__72hOjuY2LKiowAwLCg19a9bA * data ;
NI counter ;
};
struct tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w {
NimStringDesc * url ;
tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w downloadMethod ;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw vcsRevision ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * files ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * binaries ;
tyObject_HashSet__aCgx9aJWOlGNhL9b41LIC4Wg specialVersions ;
};
struct tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw {
NimStringDesc * myPath ;
NIM_BOOL isNimScript ;
NIM_BOOL isMinimal ;
NIM_BOOL isInstalled ;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg nimbleTasks ;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg postHooks ;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg preHooks ;
NimStringDesc * author ;
NimStringDesc * description ;
NimStringDesc * license ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * skipDirs ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * skipFiles ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * skipExt ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * installDirs ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * installFiles ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * installExt ;
tySequence__kLwf9aGQcuduFr4gekUDa2w * requires ;
2022-12-25 14:07:15 +02:00
tyObject_Table__dvABR7uXuaUlR5eyC6g6TQ taskRequires ;
2022-09-19 09:55:15 +03:00
tyObject_Table__Ji6x6JQ0gVMaFr8AIk18Ug bin ;
NimStringDesc * binDir ;
NimStringDesc * srcDir ;
NimStringDesc * backend ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * foreignDeps ;
tyTuple__BjxoJYFE5BulbiU15SM6nQ basicInfo ;
2022-12-25 14:07:15 +02:00
tyObject_Table__iakiVCWUfIuiHQqyxQaX8A lockedDeps ;
2022-09-19 09:55:15 +03:00
tyObject_PackageMetaData__EO1rPizWROcibmAlVzA30w metaData ;
NIM_BOOL isLink ;
};
struct tyTuple__jq7X5k7hWG0tdTZTDkiyGQ {
NimStringDesc * Field0 ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * Field1 ;
};
typedef tyTuple__jq7X5k7hWG0tdTZTDkiyGQ tyArray__Xkn9cR0g9aWIRwE2cFDfN3nQ [ 7 ];
struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q {
NI64 seconds ;
NI nanosecond ;
};
typedef NU8 tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg ;
struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw {
RootObj Sup ;
NI nanosecond ;
NI second ;
NI minute ;
NI hour ;
NI monthdayZero ;
NI monthZero ;
NI year ;
tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg weekday ;
NI yearday ;
NIM_BOOL isDst ;
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw * timezone ;
NI utcOffset ;
};
2022-12-25 14:07:15 +02:00
typedef tyTuple__jq7X5k7hWG0tdTZTDkiyGQ tyArray__rhtWm6uYOU6da9bZDT6ryDA [ 4 ];
2022-09-19 09:55:15 +03:00
struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg {
NimStringDesc * name ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * urls ;
NimStringDesc * path ;
};
struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ {
NI Field0 ;
NimStringDesc * Field1 ;
tyObject_PackageList__00UcE13159cf20wGpsHwwMg Field2 ;
};
struct tyTuple__gDWaEqPfhOauJWKMBm8bzg {
NimStringDesc * Field0 ;
tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w * Field1 ;
};
typedef NU8 tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ ;
struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA {
tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ Field0 ;
NimStringDesc * Field1 ;
};
typedef NU8 tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA ;
struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw {
tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA Field0 ;
NimStringDesc * Field1 ;
NimStringDesc * Field2 ;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname ;
NI line ;
NCSTRING filename ;
};
struct tyTuple__awOivLjlO76sGdHY7nQUjQ {
NI Field0 ;
NI Field1 ;
NimStringDesc * Field2 ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * Field3 ;
};
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
NI Field0 ;
NimStringDesc * Field1 ;
};
2022-12-25 14:07:15 +02:00
struct tyTuple__BRPf9bXMt29aEMlIrLh5CZWQ {
NI Field0 ;
NimStringDesc * Field1 ;
tySequence__kLwf9aGQcuduFr4gekUDa2w * Field2 ;
};
2022-09-19 09:55:15 +03:00
struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg {
NI Field0 ;
NimStringDesc * Field1 ;
NimStringDesc * Field2 ;
};
2022-12-25 14:07:15 +02:00
struct tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ {
tySequence__ZkxkVxJvB9aqet9cfVQmFTZw * data ;
NI counter ;
NI first ;
NI last ;
};
struct tyTuple__UBKv1ckqvKAfuS0TS0t23Q {
NI Field0 ;
NimStringDesc * Field1 ;
tyObject_OrderedTable__b2SAayIK9c6IoZnFt9cutJhQ Field2 ;
};
struct tyTuple__r1NtfsBxxsYs1cV48P1DyA {
NI Field0 ;
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA Field1 ;
};
2022-09-19 09:55:15 +03:00
struct tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA {
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw sha1 ;
};
struct tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg {
tyObject_Version__9bU0a4Oqtl9aJmGyzYi8ZnBA version ;
tyObject_Sha1Hash__zQwLVDNef3gJr9bhL9bRloJw vcsRevision ;
NimStringDesc * url ;
tyEnum_DownloadMethod__IqkMKe5PGkzDG0ayIWPJ6w downloadMethod ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * dependencies ;
tyObject_Checksums__aZcxVfkZCt9bd29bg29aMe9aaA checksums ;
};
struct tyTuple__m8l9a4rYFktlUTIniXgnvog {
NI Field0 ;
NI Field1 ;
NimStringDesc * Field2 ;
tyObject_LockFileDep__PkUOL8vzIvRRmF9bLOPRlhg Field3 ;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
TGenericSeq Sup ;
NimStringDesc * data [ SEQ_DECL_SIZE ];
};
struct tySequence__sQx7tKsP6HE09cszRIkxbdg {
TGenericSeq Sup ;
tyTuple__vQEyvUeZmB7ODgnsZ5BScQ 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__v6NVljHM6giAeuZKHEoQNA {
TGenericSeq Sup ;
tyTuple__rLNSKSsDc19cDzAtjOZs9cSw data [ SEQ_DECL_SIZE ];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
TGenericSeq Sup ;
tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data [ SEQ_DECL_SIZE ];
};
struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g {
TGenericSeq Sup ;
tyTuple__awOivLjlO76sGdHY7nQUjQ data [ SEQ_DECL_SIZE ];
};
struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ {
TGenericSeq Sup ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * data [ SEQ_DECL_SIZE ];
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
TGenericSeq Sup ;
tyTuple__QeWl6B6ffS4pU6WWrtcrDw data [ SEQ_DECL_SIZE ];
};
2022-12-25 14:07:15 +02:00
struct tySequence__KUaTZL89cHr0hcMlN8NjHAg {
TGenericSeq Sup ;
tyTuple__BRPf9bXMt29aEMlIrLh5CZWQ data [ SEQ_DECL_SIZE ];
};
2022-09-19 09:55:15 +03:00
struct tySequence__SFipDZIkFtPcrLs0AGBBjQ {
TGenericSeq Sup ;
tyTuple__8ZxhPt1NwfElsJs8zUSV9bg data [ SEQ_DECL_SIZE ];
};
2022-12-25 14:07:15 +02:00
struct tySequence__GuNIUy7Gsew6nZ4VQBHfFg {
2022-09-19 09:55:15 +03:00
TGenericSeq Sup ;
2022-12-25 14:07:15 +02:00
tyTuple__UBKv1ckqvKAfuS0TS0t23Q data [ SEQ_DECL_SIZE ];
2022-09-19 09:55:15 +03:00
};
struct tySequence__72hOjuY2LKiowAwLCg19a9bA {
TGenericSeq Sup ;
tyTuple__r1NtfsBxxsYs1cV48P1DyA data [ SEQ_DECL_SIZE ];
};
2022-12-25 14:07:15 +02:00
struct tySequence__ZkxkVxJvB9aqet9cfVQmFTZw {
TGenericSeq Sup ;
tyTuple__m8l9a4rYFktlUTIniXgnvog data [ SEQ_DECL_SIZE ];
};
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 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , getGithubAuth__nimblepkgZpublish_42 )( tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * o , tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q * Result );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( void , unsureAsgnRef )( void ** dest , void * src );
static N_INLINE ( void , nimCopyMem )( void * dest , void * source , NI size );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * , newSSLContext__nimblepkgZtools_189 )( NIM_BOOL disabled );
N_LIB_PRIVATE N_NIMCALL ( tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA * , newHttpClient__pureZhttpclient_755 )( NimStringDesc * userAgent , NI maxRedirects , tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * sslContext , tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ * proxy , NI timeout , tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA * headers );
N_LIB_PRIVATE N_NIMCALL ( tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ * , getProxy__nimblepkgZoptions_2223 )( tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * options );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA * , newHttpHeaders__pureZhttpcore_114 )( NIM_BOOL titleCase );
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 ( void , display__nimblepkgZcli_156 )( NimStringDesc * category , NimStringDesc * msg , tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA displayType , tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority );
static N_INLINE ( void , pushSafePoint )( TSafePoint * s );
static N_INLINE ( NimStringDesc * , slash___pureZos_121 )( NimStringDesc * head , NimStringDesc * tail );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nosjoinPath )( NimStringDesc * head , NimStringDesc * tail );
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 );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nsuStrip )( NimStringDesc * s , NIM_BOOL leading , NIM_BOOL trailing , tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , readFile__systemZio_472 )( NimStringDesc * filename );
2022-09-19 09:55:15 +03:00
static N_INLINE ( void , appendString )( NimStringDesc * dest , NimStringDesc * src );
static N_INLINE ( void , copyMem__system_1727 )( void * dest , void * source , NI size );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , rawNewString )( NI space );
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 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , requestNewToken__nimblepkgZpublish_37 )( tyObject_Config__4CDaXnHluuDhjlvHrDG8RA * cfg );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( void , nossleep )( NI milsecs );
N_LIB_PRIVATE N_NIMCALL ( void , openDefaultBrowser__pureZbrowsers_13 )( NimStringDesc * url );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , promptCustom__nimblepkgZcli_713 )( NimStringDesc * question , NimStringDesc * default_0 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , writeFile__systemZio_477 )( NimStringDesc * filename , NimStringDesc * content );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , copyString )( NimStringDesc * src );
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 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , createHeaders__nimblepkgZpublish_26 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA * , newHttpHeaders__pureZhttpcore_1618 )( tyTuple__UV3llMMYFckfui8YMBuUZA * keyValuePairs , NI keyValuePairsLen_0 , NIM_BOOL titleCase );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nsuFormatSingleElem )( NimStringDesc * formatstr , NimStringDesc * a );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , parseJson__pureZjson_5296 )( NimStringDesc * buffer , NIM_BOOL rawIntegers , NIM_BOOL rawFloats );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getContent__nimblepkgZdownload_2194 )( tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA * client , NimStringDesc * url );
2022-12-25 14:07:15 +02:00
static N_INLINE ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , X5BX5D___pureZjson_3073 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * node , NimStringDesc * name );
N_LIB_PRIVATE N_NIMCALL ( void , failedAssertImpl__systemZassertions_56 )( NimStringDesc * msg );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q ** , X5BX5D___pureZjson_2667 )( tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg * t , NimStringDesc * key );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NOINLINE ( void , raiseFieldError2 )( NimStringDesc * f , NimStringDesc * discVal );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , reprDiscriminant )( NI e , TNimType * typ );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getNimbleUserTempDir__nimblepkgZtools_122 )( void );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , forkExists__nimblepkgZpublish_56 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , isCorrectFork__nimblepkgZpublish_53 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * j );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , getBool__pureZjson_189 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * n , NIM_BOOL default_0 );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , X7BX7D___pureZjson_3606 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * node , NimStringDesc * key );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , getStr__pureZjson_148 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * n , NimStringDesc * default_0 );
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 );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , createFork__nimblepkgZpublish_65 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , postContent__nimblepkgZpublish_67 )( tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA * client , NimStringDesc * url , NimStringDesc * body , tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g * multipart );
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 );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nosdirExists )( NimStringDesc * dir );
N_LIB_PRIVATE N_NIMCALL ( void , nosremoveDir )( NimStringDesc * dir , NIM_BOOL checkDir );
N_LIB_PRIVATE N_NIMCALL ( void , noscreateDir )( NimStringDesc * dir );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , nosgetCurrentDir )( void );
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , setCurrentDir__pureZos_733 )( NimStringDesc * newDir );
2022-09-19 09:55:15 +03:00
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 ( void , doCmd__nimblepkgZtools_22 )( NimStringDesc * cmd );
N_LIB_PRIVATE N_NIMCALL ( void , nimLeaveFinally )( void );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nosfileExists )( NimStringDesc * filename );
N_LIB_PRIVATE N_NIMCALL ( void , doCmdEx__nimblepkgZtools_29 )( NimStringDesc * cmd , tyTuple__XOVT24GHXwqiEj5GCsEGCA * Result );
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , nsuEndsWith )( NimStringDesc * s , NimStringDesc * suffix );
N_LIB_PRIVATE N_NOINLINE ( void , raiseOverflow )( void );
N_LIB_PRIVATE N_NOINLINE ( void , raiseRangeErrorI )( NI64 i , NI64 a , NI64 b );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , setLengthStr )( NimStringDesc * s , NI newLen );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , parseUri__pureZuri_207 )( NimStringDesc * uri , tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ * Result );
N_LIB_PRIVATE N_NIMCALL ( void , userAborted__nimblepkgZpublish_25 )( void );
N_LIB_PRIVATE N_NIMCALL ( void , editJson__nimblepkgZpublish_191 )( tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw * p , NimStringDesc * url , NimStringDesc * tags , NimStringDesc * downloadMethod );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , parseFile__pureZjson_5301 )( NimStringDesc * filename );
N_LIB_PRIVATE N_NIMCALL ( void , add__pureZjson_232 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * father , tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * child );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , percent___pureZjson_1835 )( tyTuple__jq7X5k7hWG0tdTZTDkiyGQ * keyVals , NI keyValsLen_0 );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , percent___pureZjson_1806 )( NimStringDesc * s );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , percent___nimblepkgZpublish_147 )( NimStringDesc ** s , NI sLen_0 );
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , newJArray__pureZjson_133 )( void );
2022-09-19 09:55:15 +03:00
N_LIB_PRIVATE N_NOINLINE ( void , raiseIndexError2 )( NI i , NI n );
N_LIB_PRIVATE N_NIMCALL ( tySequence__sM4lkSb7zS6F7OVMvW9cffQ * , nsuSplitCharSet )( NimStringDesc * s , tySet_tyChar__nmiMWKVIe46vacnhAFrQvw seps , NI maxsplit );
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , cleanupWhitespace__nimblepkgZpublish_154 )( NimStringDesc * s );
2022-09-19 09:55:15 +03:00
N_NIMCALL ( NimStringDesc * , rawNewString )( NI cap );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , addChar )( NimStringDesc * s , NIM_CHAR c );
2022-12-25 14:07:15 +02:00
static N_INLINE ( NIM_CHAR * , X5BX5D___system_7408 )( NimStringDesc ** s , NI i );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , pretty__pureZjson_4518 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * node , NI indent );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , format__nimblepkgZpublish_248 )( tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw * dt );
N_LIB_PRIVATE N_NIMCALL ( void , utc__pureZtimes_1493 )( tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q t , tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw * Result );
N_LIB_PRIVATE N_NIMCALL ( tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q , getTime__pureZtimes_963 )( void );
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , createPullRequest__nimblepkgZpublish_95 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a , tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw * pkg , NimStringDesc * url , NimStringDesc * branch );
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 ( NimStringDesc * , dollar___pureZjson_4522 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * node );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_2 , "Nim httpclient/1.6.11" , 21 );
2022-09-19 09:55:15 +03:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_3 , "NIMBLE_GITHUB_API_TOKEN" , 23 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_4 , "Info:" , 5 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_5 , "Using the \' NIMBLE_GITHUB_API_TOKEN \' environment variable for the GitHub API Token." , 82 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_7 , "github_api_token" , 16 );
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__1xecg8IpX44AZWJSOKndVQ_8 = {
0x00 , 0x3e , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 }
;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_9 , "Using GitHub API Token in file: " , 32 );
extern TNimType NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_ ;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_10 , "Please create a new personal access token on Github in order to allow Nimble to fork the packages repository." , 109 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_11 , "Hint:" , 5 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_12 , "Make sure to give the access token access to public repos (public_repo scope)!" , 78 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_13 , "Your default browser should open with the following URL: https://github.com/settings/tokens/new" , 95 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_14 , "https://github.com/settings/tokens/new" , 38 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_15 , "Personal access token\?" , 22 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_16 , "Writing access token to file:" , 29 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_17 , "Authorization" , 13 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_18 , "token $1" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_20 , "Content-Type" , 12 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_21 , "application/x-www-form-urlencoded" , 33 );
static NIM_CONST tyTuple__UV3llMMYFckfui8YMBuUZA TM__1xecg8IpX44AZWJSOKndVQ_19 = {(( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_20 ),
(( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_21 )}
;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_23 , "Accept" , 6 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_24 , "*/*" , 3 );
static NIM_CONST tyTuple__UV3llMMYFckfui8YMBuUZA TM__1xecg8IpX44AZWJSOKndVQ_22 = {(( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_23 ),
(( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_24 )}
;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_25 , "https://api.github.com/user" , 27 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_26 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim(513, 9) `not isNil(node)` " , 97 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_27 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim(514, 9) `node.kind == JObject` " , 102 );
2022-09-19 09:55:15 +03:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_28 , "field \' fields \' is not accessible for type \' JsonNodeObj \' using \' kind = " , 70 );
extern TNimType NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_ ;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_29 , "login" , 5 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_30 , "field \' str \' is not accessible for type \' JsonNodeObj \' using \' kind = " , 67 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_31 , "Success:" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_32 , "Verified as " , 12 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_33 , "nimble-packages-fork" , 20 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_35 , "https://api.github.com/repos/" , 29 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_36 , "/packages" , 9 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_37 , "fork" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_38 , "parent" , 6 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_39 , "full_name" , 9 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_40 , "nim-lang/packages" , 17 );
extern TNimType NTIjsonparsingerror__XTejXaID1NT7KS9byQm3Jxg_ ;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_42 , "https://api.github.com/repos/nim-lang/packages/forks" , 52 );
extern TNimType NTIhttprequesterror__L1L9b70HFrKWeYV59a3EWeaA_ ;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_43 , "Unable to create fork. Access token might not have enough permissions." , 70 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_44 , "Waiting 10s to let Github create a fork" , 39 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_45 , "Finished waiting" , 16 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_46 , "Removing" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_47 , "old packages fork git directory." , 32 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_49 , "Copying" , 7 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_50 , "packages fork into: " , 20 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_51 , "git init" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_52 , "git checkout -b master" , 22 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_53 , "git pull https://github.com/" , 28 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_54 , "Updating" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_55 , "the fork" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_56 , "git pull https://github.com/nim-lang/packages.git master" , 56 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_57 , "git push https://" , 17 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_58 , "@github.com/" , 12 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_59 , "/packages master" , 16 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_60 , "Cannot find nimble-packages-fork git repository. Cloning failed." , 64 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_61 , "packages.json" , 13 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_62 , "No packages file found in cloned fork." , 38 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_63 , ".git" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_64 , "git ls-remote --get-url" , 23 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_66 , "git" , 3 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_67 , "ssh://" , 6 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_68 , "https://" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_69 , "/" , 1 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_70 , "Cannot publish the repository URL because it contains username and/or password. Fix the remote URL. Hint: \" git remote -v \" " , 121 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_71 , ".hg" , 3 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_72 , "hg" , 2 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_73 , "No .git nor .hg directory found. Stopping." , 42 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_74 , "Github URL of " , 14 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_75 , "\?" , 1 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_76 , "User aborted the process." , 25 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_77 , "Whitespace separated list of tags\? (For example: web library wrapper)" , 69 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_79 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim(152, 12) `contents.kind == JArray` " , 94 );
2022-09-19 09:55:15 +03:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_80 , "name" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_81 , "url" , 3 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_82 , "method" , 6 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_83 , "tags" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_85 , "description" , 11 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_86 , "license" , 7 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_87 , "web" , 3 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_99 , "add-" , 4 );
extern TNimType NTIdatetime__d9cK9cyKZPJJxFXUmx8dSpPw_ ;
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_100 , "git checkout -B " , 16 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_101 , "git commit packages.json -m \" Added package " , 43 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_102 , " \" " , 1 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_103 , "Pushing" , 7 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_104 , "to remote of fork." , 18 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_105 , "/packages " , 10 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_106 , "Info" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_107 , "Creating PR" , 11 );
2022-12-25 14:07:15 +02:00
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_108 , "title" , 5 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_109 , "Add package " , 12 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_110 , "head" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_111 , ":" , 1 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_112 , "base" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_113 , "master" , 6 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_114 , "body" , 4 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_115 , " \012\012 " , 2 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_116 , "https://api.github.com/repos/nim-lang/packages/pulls" , 52 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_117 , "html_url" , 8 );
STRING_LITERAL ( TM__1xecg8IpX44AZWJSOKndVQ_118 , "Pull request successful, check at " , 34 );
extern TSafePoint * excHandler__system_2565 ;
extern TSafePoint * excHandler__system_2565 ;
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 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 , 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 );
}
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 , 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 , 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
}
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 , 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_ : ;
}
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 ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , requestNewToken__nimblepkgZpublish_37 )( tyObject_Config__4CDaXnHluuDhjlvHrDG8RA * cfg ) {
2022-09-19 09:55:15 +03:00
NimStringDesc * result ;
NimStringDesc * token ;
NimStringDesc * T1_ ;
NimStringDesc * tokenWritePath ;
NimStringDesc * T2_ ;
nimfr_ ( "requestNewToken" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
{ result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 37 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_10 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 40 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_11 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_12 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 1 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
nimln_ ( 42 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nossleep ((( NI ) 5000 ));
nimln_ ( 43 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_13 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
nimln_ ( 45 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nossleep ((( NI ) 3000 ));
2022-09-19 09:55:15 +03:00
nimln_ ( 46 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
openDefaultBrowser__pureZbrowsers_13 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_14 ));
nimln_ ( 47 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
T1_ = promptCustom__nimblepkgZcli_713 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_15 ), (( NimStringDesc * ) NIM_NIL ));
token = nsuStrip ( T1_ , NIM_TRUE , NIM_TRUE , TM__1xecg8IpX44AZWJSOKndVQ_8 );
nimln_ ( 49 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
tokenWritePath = slash___pureZos_121 (( * cfg ). nimbleDir , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_7 ));
nimln_ ( 50 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T2_ = NIM_NIL ;
T2_ = rawNewString (( tokenWritePath ? tokenWritePath -> Sup . len : 0 ) + 29 );
appendString ( T2_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_16 ));
appendString ( T2_ , tokenWritePath );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), T2_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
nimln_ ( 52 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
writeFile__systemZio_477 ( tokenWritePath , token );
2022-09-19 09:55:15 +03:00
nimln_ ( 53 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nossleep ((( NI ) 3000 ));
nimln_ ( 54 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = copyString ( token );
goto BeforeRet_ ;
} BeforeRet_ : ;
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 , createHeaders__nimblepkgZpublish_26 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a ) {
2022-09-19 09:55:15 +03:00
tyArray__0ipey9aZuUA8jy4OAHzODQg T1_ ;
nimfr_ ( "createHeaders" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 30 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
nimZeroMem (( void * ) T1_ , sizeof ( tyArray__0ipey9aZuUA8jy4OAHzODQg ));
T1_ [ 0 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_17 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 31 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ [ 0 ]. Field1 = nsuFormatSingleElem ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_18 ), a . token );
T1_ [ 1 ]. Field0 = copyString ( TM__1xecg8IpX44AZWJSOKndVQ_19 . Field0 );
T1_ [ 1 ]. Field1 = copyString ( TM__1xecg8IpX44AZWJSOKndVQ_19 . Field1 );
T1_ [ 2 ]. Field0 = copyString ( TM__1xecg8IpX44AZWJSOKndVQ_22 . Field0 );
T1_ [ 2 ]. Field1 = copyString ( TM__1xecg8IpX44AZWJSOKndVQ_22 . Field1 );
2022-12-25 14:07:15 +02:00
nimln_ ( 30 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
asgnRef (( void ** ) ( & ( * a . http ). headers ), newHttpHeaders__pureZhttpcore_1618 ( T1_ , 3 , NIM_FALSE ));
popFrame ();
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , X5BX5D___pureZjson_3073 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * node , NimStringDesc * name ) {
2022-09-19 09:55:15 +03:00
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * result ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q ** T9_ ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "[]" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim" );
2022-09-19 09:55:15 +03:00
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 513 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim" );
2022-09-19 09:55:15 +03:00
{
if ( !! ( ! (( node == 0 )))) goto LA3_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_26 ));
2022-09-19 09:55:15 +03:00
}
LA3_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 514 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim" );
2022-09-19 09:55:15 +03:00
{
if ( !! ((( * node ). kind == (( tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg ) 5 )))) goto LA7_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_27 ));
2022-09-19 09:55:15 +03:00
}
LA7_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 517 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/json.nim" );
2022-09-19 09:55:15 +03:00
if ( ! ((( 32 & (( NU8 ) 1 << (( NU )(( * node ). kind ) & 7U ))) != 0 ))) { raiseFieldError2 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_28 ), reprDiscriminant ((( NI )( * node ). kind ) + ( NI ) IL64 ( 0 ), ( & NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_ ))); }
T9_ = ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q ** ) 0 ;
2022-12-25 14:07:15 +02:00
T9_ = X5BX5D___pureZjson_2667 (( & ( * node ). _kind_6 . fields ), name );
2022-09-19 09:55:15 +03:00
result = ( * T9_ );
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , getGithubAuth__nimblepkgZpublish_42 )( tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * o , tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q * Result ) {
2022-09-19 09:55:15 +03:00
tyObject_Config__4CDaXnHluuDhjlvHrDG8RA cfg ;
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w * ctx ;
tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ * T1_ ;
tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA * T2_ ;
TFrame * _nimCurFrame ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * resp ;
NimStringDesc * T13_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T14_ ;
NimStringDesc * T15_ ;
nimfr_ ( "getGithubAuth" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
_nimCurFrame = getFrame ();
unsureAsgnRef (( void ** ) & ( * Result ). user , NIM_NIL );
unsureAsgnRef (( void ** ) & ( * Result ). token , NIM_NIL );
unsureAsgnRef (( void ** ) & ( * Result ). http , NIM_NIL );
nimZeroMem (( void * )( & cfg ), sizeof ( tyObject_Config__4CDaXnHluuDhjlvHrDG8RA ));
nimln_ ( 57 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimCopyMem (( void * )( & cfg ), ( NIM_CONST void * )( & ( * o ). config ), sizeof ( cfg ));
2022-09-19 09:55:15 +03:00
nimln_ ( 58 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
ctx = newSSLContext__nimblepkgZtools_189 (( * o ). disableSslCertCheck );
nimln_ ( 59 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T1_ = getProxy__nimblepkgZoptions_2223 ( o );
nimln_ ( 570 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/httpclient.nim" );
2022-09-19 09:55:15 +03:00
T2_ = NIM_NIL ;
T2_ = newHttpHeaders__pureZhttpcore_114 ( NIM_FALSE );
2022-12-25 14:07:15 +02:00
nimln_ ( 59 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
unsureAsgnRef (( void ** ) ( & ( * Result ). http ), newHttpClient__pureZhttpclient_755 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_2 ), (( NI ) 5 ), ctx , T1_ , (( NI ) - 1 ), T2_ ));
nimln_ ( 61 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T5_ ;
T5_ = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
T5_ = existsEnv__pureZos_423 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_3 ));
2022-09-19 09:55:15 +03:00
if ( ! T5_ ) goto LA6_ ;
nimln_ ( 62 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
unsureAsgnRef (( void ** ) ( & ( * Result ). token ), getEnv__pureZos_418 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_3 ), (( NimStringDesc * ) NIM_NIL )));
nimln_ ( 63 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_5 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
}
goto LA3_ ;
LA6_ : ;
{
TSafePoint TM__1xecg8IpX44AZWJSOKndVQ_6 ;
NimStringDesc * apiTokenFilePath ;
NimStringDesc * T9_ ;
NimStringDesc * T10_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 68 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
pushSafePoint ( & TM__1xecg8IpX44AZWJSOKndVQ_6 );
TM__1xecg8IpX44AZWJSOKndVQ_6 . status = setjmp ( TM__1xecg8IpX44AZWJSOKndVQ_6 . context );
if ( TM__1xecg8IpX44AZWJSOKndVQ_6 . status == 0 ) {
nimln_ ( 69 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
apiTokenFilePath = slash___pureZos_121 ( cfg . nimbleDir , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_7 ));
2022-09-19 09:55:15 +03:00
nimln_ ( 70 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
T9_ = NIM_NIL ;
T9_ = readFile__systemZio_472 ( apiTokenFilePath );
unsureAsgnRef (( void ** ) ( & ( * Result ). token ), nsuStrip ( T9_ , NIM_TRUE , NIM_TRUE , TM__1xecg8IpX44AZWJSOKndVQ_8 ));
nimln_ ( 71 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T10_ = NIM_NIL ;
T10_ = rawNewString (( apiTokenFilePath ? apiTokenFilePath -> Sup . len : 0 ) + 32 );
appendString ( T10_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_9 ));
appendString ( T10_ , apiTokenFilePath );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), T10_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
if ( isObj ( nimBorrowCurrentException () -> Sup . m_type , ( & NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_ ))) {
TM__1xecg8IpX44AZWJSOKndVQ_6 . status = 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 74 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
unsureAsgnRef (( void ** ) ( & ( * Result ). token ), requestNewToken__nimblepkgZpublish_37 (( & cfg )));
2022-09-19 09:55:15 +03:00
popCurrentException ();
}
}
if ( TM__1xecg8IpX44AZWJSOKndVQ_6 . status != 0 ) reraiseException ();
}
LA3_ : ;
nimln_ ( 75 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
createHeaders__nimblepkgZpublish_26 (( * Result ));
nimln_ ( 76 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T13_ = NIM_NIL ;
T13_ = getContent__nimblepkgZdownload_2194 (( * Result ). http , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_25 ));
2022-12-25 14:07:15 +02:00
resp = parseJson__pureZjson_5296 ( T13_ , NIM_FALSE , NIM_FALSE );
nimln_ ( 78 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T14_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T14_ = X5BX5D___pureZjson_3073 ( resp , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_29 ));
2022-09-19 09:55:15 +03:00
if ( ! ((( 16 & (( NU8 ) 1 << (( NU )(( * T14_ ). kind ) & 7U ))) != 0 ))) { raiseFieldError2 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_30 ), reprDiscriminant ((( NI )( * T14_ ). kind ) + ( NI ) IL64 ( 0 ), ( & NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_ ))); }
unsureAsgnRef (( void ** ) ( & ( * Result ). user ), copyString (( * T14_ ). _kind_1 . str ));
2022-12-25 14:07:15 +02:00
nimln_ ( 79 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T15_ = NIM_NIL ;
T15_ = rawNewString ((( * Result ). user ? ( * Result ). user -> Sup . len : 0 ) + 12 );
appendString ( T15_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_32 ));
appendString ( T15_ , ( * Result ). user );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_31 ), T15_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 5 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
popFrame ();
}
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
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , isCorrectFork__nimblepkgZpublish_53 )( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * j ) {
2022-09-19 09:55:15 +03:00
NIM_BOOL result ;
nimfr_ ( "isCorrectFork" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
result = ( NIM_BOOL ) 0 ;
nimln_ ( 83 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
result = NIM_FALSE ;
nimln_ ( 84 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T3_ ;
NIM_BOOL T4_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T7_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T8_ ;
NimStringDesc * T9_ ;
T3_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T3_ = X7BX7D___pureZjson_3606 ( j , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_37 ));
2022-09-19 09:55:15 +03:00
T4_ = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
T4_ = getBool__pureZjson_189 ( T3_ , NIM_FALSE );
2022-09-19 09:55:15 +03:00
if ( ! T4_ ) goto LA5_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 85 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T7_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T7_ = X7BX7D___pureZjson_3606 ( j , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_38 ));
2022-09-19 09:55:15 +03:00
T8_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T8_ = X7BX7D___pureZjson_3606 ( T7_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_39 ));
2022-09-19 09:55:15 +03:00
T9_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T9_ = getStr__pureZjson_148 ( T8_ , (( NimStringDesc * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
result = eqStrings ( T9_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_40 ));
}
LA5_ : ;
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NIM_BOOL , forkExists__nimblepkgZpublish_56 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a ) {
2022-09-19 09:55:15 +03:00
NIM_BOOL volatile result ;
TSafePoint TM__1xecg8IpX44AZWJSOKndVQ_34 ;
NimStringDesc * x ;
NimStringDesc * T1_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * j ;
TFrame * _nimCurFrame ;
nimfr_ ( "forkExists" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
_nimCurFrame = getFrame ();
result = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 88 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
pushSafePoint ( & TM__1xecg8IpX44AZWJSOKndVQ_34 );
TM__1xecg8IpX44AZWJSOKndVQ_34 . status = setjmp ( TM__1xecg8IpX44AZWJSOKndVQ_34 . context );
if ( TM__1xecg8IpX44AZWJSOKndVQ_34 . status == 0 ) {
2022-12-25 14:07:15 +02:00
nimln_ ( 89 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
T1_ = rawNewString (( a . user ? a . user -> Sup . len : 0 ) + 38 );
appendString ( T1_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_35 ));
appendString ( T1_ , a . user );
appendString ( T1_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_36 ));
x = getContent__nimblepkgZdownload_2194 ( a . http , T1_ );
nimln_ ( 90 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
j = parseJson__pureZjson_5296 ( x , NIM_FALSE , NIM_FALSE );
nimln_ ( 91 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
result = isCorrectFork__nimblepkgZpublish_53 ( j );
2022-09-19 09:55:15 +03:00
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
if ( isObj ( nimBorrowCurrentException () -> Sup . m_type , ( & NTIjsonparsingerror__XTejXaID1NT7KS9byQm3Jxg_ )) || isObj ( nimBorrowCurrentException () -> Sup . m_type , ( & NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_ ))) {
TM__1xecg8IpX44AZWJSOKndVQ_34 . status = 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 93 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = NIM_FALSE ;
popCurrentException ();
}
}
if ( TM__1xecg8IpX44AZWJSOKndVQ_34 . status != 0 ) reraiseException ();
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , createFork__nimblepkgZpublish_65 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a ) {
2022-09-19 09:55:15 +03:00
TSafePoint TM__1xecg8IpX44AZWJSOKndVQ_41 ;
NimStringDesc * T1_ ;
TFrame * _nimCurFrame ;
nimfr_ ( "createFork" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
_nimCurFrame = getFrame ();
2022-12-25 14:07:15 +02:00
nimln_ ( 96 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
pushSafePoint ( & TM__1xecg8IpX44AZWJSOKndVQ_41 );
TM__1xecg8IpX44AZWJSOKndVQ_41 . status = setjmp ( TM__1xecg8IpX44AZWJSOKndVQ_41 . context );
if ( TM__1xecg8IpX44AZWJSOKndVQ_41 . status == 0 ) {
2022-12-25 14:07:15 +02:00
nimln_ ( 97 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T1_ = postContent__nimblepkgZpublish_67 ( a . http , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_42 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
( void )( T1_ );
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
if ( isObj ( nimBorrowCurrentException () -> Sup . m_type , ( & NTIhttprequesterror__L1L9b70HFrKWeYV59a3EWeaA_ ))) {
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T4_ ;
TM__1xecg8IpX44AZWJSOKndVQ_41 . status = 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 99 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T4_ = NIM_NIL ;
T4_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_43 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T4_ , "NimbleError" , "createFork" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 99 );
2022-09-19 09:55:15 +03:00
popCurrentException ();
}
}
if ( TM__1xecg8IpX44AZWJSOKndVQ_41 . status != 0 ) reraiseException ();
popFrame ();
}
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 ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( void , setCurrentDir__pureZos_733 )( NimStringDesc * newDir ) {
nimfr_ ( "setCurrentDir" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
nimln_ ( 1438 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim" );
2022-09-19 09:55:15 +03:00
{
int T3_ ;
NI32 T6_ ;
T3_ = ( int ) 0 ;
T3_ = chdir ( nimToCStringConv ( newDir ));
if ( !! (( T3_ == (( NI32 ) 0 )))) goto LA4_ ;
T6_ = ( NI32 ) 0 ;
T6_ = osLastError__pureZos_408 ();
raiseOSError__pureZos_405 ( T6_ , newDir );
}
LA4_ : ;
popFrame ();
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , userAborted__nimblepkgZpublish_25 )( void ) {
2022-09-19 09:55:15 +03:00
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T1_ ;
nimfr_ ( "userAborted" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 27 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
T1_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_76 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T1_ , "NimbleError" , "userAborted" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 27 );
2022-09-19 09:55:15 +03:00
popFrame ();
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * , percent___nimblepkgZpublish_147 )( NimStringDesc ** s , NI sLen_0 ) {
2022-09-19 09:55:15 +03:00
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * result ;
nimfr_ ( "%" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 115 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
result = newJArray__pureZjson_133 ();
2022-09-19 09:55:15 +03:00
{
NimStringDesc ** x ;
NI i ;
x = ( 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 = (( 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 ) {
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T4_ ;
NI TM__1xecg8IpX44AZWJSOKndVQ_84 ;
if ( ! ( i < sLen_0 )) goto LA3 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 116 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( i < 0 || i >= sLen_0 ){ raiseIndexError2 ( i , sLen_0 - 1 ); }
x = ( & s [ i ]);
T4_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T4_ = percent___pureZjson_1806 (( * x ));
add__pureZjson_232 ( result , T4_ );
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 , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_84 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_84 );
} LA3 : ;
}
}
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
static N_INLINE ( NIM_CHAR * , X5BX5D___system_7408 )( NimStringDesc ** s , NI i ) {
2022-09-19 09:55:15 +03:00
NIM_CHAR * result ;
NI TM__1xecg8IpX44AZWJSOKndVQ_98 ;
2022-12-25 14:07:15 +02:00
nimfr_ ( "[]" , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
result = ( NIM_CHAR * ) 0 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 2652 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system.nim" );
2022-09-19 09:55:15 +03:00
if ( nimSubInt ((( * s ) ? ( * s ) -> Sup . len : 0 ), i , & TM__1xecg8IpX44AZWJSOKndVQ_98 )) { raiseOverflow (); };
if (( NI )( TM__1xecg8IpX44AZWJSOKndVQ_98 ) < 0 || ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_98 ) >= (( * s ) ? ( * s ) -> Sup . len : 0 )){ raiseIndexError2 (( NI )( TM__1xecg8IpX44AZWJSOKndVQ_98 ),(( * s ) ? ( * s ) -> Sup . len : 0 ) - 1 ); }
result = ( & ( * s ) -> data [( NI )( TM__1xecg8IpX44AZWJSOKndVQ_98 )]);
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , cleanupWhitespace__nimblepkgZpublish_154 )( NimStringDesc * s ) {
2022-09-19 09:55:15 +03:00
NimStringDesc * result ;
NI i ;
nimfr_ ( "cleanupWhitespace" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 120 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ((( s ? s -> Sup . len : 0 )) < (( NI ) 0 ) || (( s ? s -> Sup . len : 0 )) > (( NI ) IL64 ( 9223372036854775807 ))){ raiseRangeErrorI (( s ? s -> Sup . len : 0 ), (( NI ) 0 ), (( NI ) IL64 ( 9223372036854775807 ))); }
result = rawNewString ((( NI ) (( s ? s -> Sup . len : 0 ))));
2022-12-25 14:07:15 +02:00
nimln_ ( 121 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
i = (( NI ) 0 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 122 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
if ( ! ( i < ( s ? s -> Sup . len : 0 ))) goto LA2 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 123 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NI j ;
NI TM__1xecg8IpX44AZWJSOKndVQ_88 ;
if ( i < 0 || i >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( i ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ i ]) == ( NU8 )( 32 ))) goto LA5_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 124 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_88 )) { raiseOverflow (); };
j = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_88 );
{
2022-12-25 14:07:15 +02:00
nimln_ ( 125 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
while ( 1 ) {
NI TM__1xecg8IpX44AZWJSOKndVQ_89 ;
if ( j < 0 || j >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( j ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ j ]) == ( NU8 )( 32 ))) goto LA8 ;
if ( nimAddInt ( j , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_89 )) { raiseOverflow (); };
j = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_89 );
} LA8 : ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 126 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NI TM__1xecg8IpX44AZWJSOKndVQ_90 ;
if ( j < 0 || j >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( j ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ j ]) == ( NU8 )( 13 ))) goto LA11_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 127 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( j , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_90 )) { raiseOverflow (); };
j = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_90 );
2022-12-25 14:07:15 +02:00
nimln_ ( 128 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NI TM__1xecg8IpX44AZWJSOKndVQ_91 ;
if ( j < 0 || j >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( j ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ j ]) == ( NU8 )( 10 ))) goto LA15_ ;
if ( nimAddInt ( j , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_91 )) { raiseOverflow (); };
j = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_91 );
}
LA15_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 129 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 10 );
2022-12-25 14:07:15 +02:00
nimln_ ( 130 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
i = j ;
}
goto LA9_ ;
LA11_ : ;
{
NI TM__1xecg8IpX44AZWJSOKndVQ_92 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 131 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( j < 0 || j >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( j ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ j ]) == ( NU8 )( 10 ))) goto LA18_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 132 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 10 );
2022-12-25 14:07:15 +02:00
nimln_ ( 133 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( j , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_92 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_92 );
}
goto LA9_ ;
LA18_ : ;
{
NI TM__1xecg8IpX44AZWJSOKndVQ_93 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 135 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 32 );
2022-12-25 14:07:15 +02:00
nimln_ ( 136 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_93 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_93 );
}
LA9_ : ;
}
goto LA3_ ;
LA5_ : ;
{
NI TM__1xecg8IpX44AZWJSOKndVQ_94 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 137 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( i < 0 || i >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( i ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ i ]) == ( NU8 )( 13 ))) goto LA22_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 138 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_94 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_94 );
2022-12-25 14:07:15 +02:00
nimln_ ( 139 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NI TM__1xecg8IpX44AZWJSOKndVQ_95 ;
if ( i < 0 || i >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( i ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ i ]) == ( NU8 )( 10 ))) goto LA26_ ;
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_95 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_95 );
}
LA26_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 140 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 10 );
}
goto LA3_ ;
LA22_ : ;
{
NI TM__1xecg8IpX44AZWJSOKndVQ_96 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 141 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( i < 0 || i >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( i ,( s ? s -> Sup . len : 0 ) - 1 ); }
if ( ! (( NU8 )( s -> data [ i ]) == ( NU8 )( 10 ))) goto LA29_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 142 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 10 );
2022-12-25 14:07:15 +02:00
nimln_ ( 143 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_96 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_96 );
}
goto LA3_ ;
LA29_ : ;
{
NI TM__1xecg8IpX44AZWJSOKndVQ_97 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 145 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( i < 0 || i >= ( s ? s -> Sup . len : 0 )){ raiseIndexError2 ( i ,( s ? s -> Sup . len : 0 ) - 1 ); }
result = addChar ( result , s -> data [ i ]);
2022-12-25 14:07:15 +02:00
nimln_ ( 146 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
if ( nimAddInt ( i , (( NI ) 1 ), & TM__1xecg8IpX44AZWJSOKndVQ_97 )) { raiseOverflow (); };
i = ( NI )( TM__1xecg8IpX44AZWJSOKndVQ_97 );
}
LA3_ : ;
} LA2 : ;
}
2022-12-25 14:07:15 +02:00
nimln_ ( 147 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_CHAR * T34_ ;
T34_ = ( NIM_CHAR * ) 0 ;
2022-12-25 14:07:15 +02:00
T34_ = X5BX5D___system_7408 (( & result ), (( NI ) 1 ));
2022-09-19 09:55:15 +03:00
if ( !! ((( NU8 )(( * T34_ )) == ( NU8 )( 10 )))) goto LA35_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 148 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
result = addChar ( result , 10 );
}
LA35_ : ;
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , editJson__nimblepkgZpublish_191 )( tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw * p , NimStringDesc * url , NimStringDesc * tags , NimStringDesc * downloadMethod ) {
2022-09-19 09:55:15 +03:00
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * contents ;
tyArray__Xkn9cR0g9aWIRwE2cFDfN3nQ T5_ ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ * T6_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T7_ ;
NimStringDesc * T8_ ;
NimStringDesc * T9_ ;
nimfr_ ( "editJson" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 151 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
contents = parseFile__pureZjson_5301 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_61 ));
nimln_ ( 152 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
if ( !! ((( * contents ). kind == (( tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg ) 6 )))) goto LA3_ ;
2022-12-25 14:07:15 +02:00
failedAssertImpl__systemZassertions_56 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_79 ));
2022-09-19 09:55:15 +03:00
}
LA3_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 153 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
nimZeroMem (( void * ) T5_ , sizeof ( tyArray__Xkn9cR0g9aWIRwE2cFDfN3nQ ));
T5_ [ 0 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_80 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 154 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 0 ]. Field1 = percent___pureZjson_1806 (( * p ). basicInfo . Field0 );
2022-09-19 09:55:15 +03:00
T5_ [ 1 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_81 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 155 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 1 ]. Field1 = percent___pureZjson_1806 ( url );
2022-09-19 09:55:15 +03:00
T5_ [ 2 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_82 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 156 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 2 ]. Field1 = percent___pureZjson_1806 ( downloadMethod );
2022-09-19 09:55:15 +03:00
T5_ [ 3 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_83 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 157 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T6_ = NIM_NIL ;
T6_ = nsuSplitCharSet ( tags , TM__1xecg8IpX44AZWJSOKndVQ_8 , (( NI ) - 1 ));
2022-12-25 14:07:15 +02:00
T5_ [ 3 ]. Field1 = percent___nimblepkgZpublish_147 (( T6_ ) ? ( T6_ -> data ) : NIM_NIL , ( T6_ ? T6_ -> Sup . len : 0 ));
2022-09-19 09:55:15 +03:00
T5_ [ 4 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_85 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 158 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 4 ]. Field1 = percent___pureZjson_1806 (( * p ). description );
2022-09-19 09:55:15 +03:00
T5_ [ 5 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_86 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 159 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 5 ]. Field1 = percent___pureZjson_1806 (( * p ). license );
2022-09-19 09:55:15 +03:00
T5_ [ 6 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_87 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 160 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T5_ [ 6 ]. Field1 = percent___pureZjson_1806 ( url );
nimln_ ( 153 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T7_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T7_ = percent___pureZjson_1835 ( T5_ , 7 );
add__pureZjson_232 ( contents , T7_ );
nimln_ ( 162 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T8_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T8_ = pretty__pureZjson_4518 ( contents , (( NI ) 2 ));
2022-09-19 09:55:15 +03:00
T9_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T9_ = cleanupWhitespace__nimblepkgZpublish_154 ( T8_ );
writeFile__systemZio_477 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_61 ), T9_ );
2022-09-19 09:55:15 +03:00
popFrame ();
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( NimStringDesc * , createPullRequest__nimblepkgZpublish_95 )( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q a , tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw * pkg , NimStringDesc * url , NimStringDesc * branch ) {
2022-09-19 09:55:15 +03:00
NimStringDesc * result ;
2022-12-25 14:07:15 +02:00
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * payload ;
tyArray__rhtWm6uYOU6da9bZDT6ryDA T1_ ;
NimStringDesc * fmtRes ;
NimStringDesc * fmtRes_2 ;
NimStringDesc * fmtRes_3 ;
2022-09-19 09:55:15 +03:00
NimStringDesc * body ;
NimStringDesc * T2_ ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * pr ;
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q * T3_ ;
nimfr_ ( "createPullRequest" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
{ result = NIM_NIL ;
2022-12-25 14:07:15 +02:00
nimln_ ( 103 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_106 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_107 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 104 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
nimZeroMem (( void * ) T1_ , sizeof ( tyArray__rhtWm6uYOU6da9bZDT6ryDA ));
T1_ [ 0 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_108 ));
2022-09-19 09:55:15 +03:00
nimln_ ( 105 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
nimln_ ( 105 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
fmtRes = rawNewString ((( NI ) 42 ));
fmtRes = resizeString ( fmtRes , 12 );
appendString ( fmtRes , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_109 ));
formatValue__pureZstrformat_162 (( & fmtRes ), ( * pkg ). basicInfo . Field0 , (( NimStringDesc * ) NIM_NIL ));
T1_ [ 0 ]. Field1 = percent___pureZjson_1806 ( fmtRes );
T1_ [ 1 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_110 ));
2022-09-19 09:55:15 +03:00
nimln_ ( 106 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
nimln_ ( 106 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
fmtRes_2 = rawNewString ((( NI ) 37 ));
formatValue__pureZstrformat_162 (( & fmtRes_2 ), a . user , (( NimStringDesc * ) NIM_NIL ));
fmtRes_2 = resizeString ( fmtRes_2 , 1 );
appendString ( fmtRes_2 , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_111 ));
formatValue__pureZstrformat_162 (( & fmtRes_2 ), branch , (( NimStringDesc * ) NIM_NIL ));
T1_ [ 1 ]. Field1 = percent___pureZjson_1806 ( fmtRes_2 );
T1_ [ 2 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_112 ));
2022-09-19 09:55:15 +03:00
nimln_ ( 107 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
T1_ [ 2 ]. Field1 = percent___pureZjson_1806 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_113 ));
T1_ [ 3 ]. Field0 = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_114 ));
nimln_ ( 108 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
nimln_ ( 583 , "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/strformat.nim" );
nimln_ ( 108 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
fmtRes_3 = rawNewString ((( NI ) 44 ));
formatValue__pureZstrformat_162 (( & fmtRes_3 ), ( * pkg ). description , (( NimStringDesc * ) NIM_NIL ));
fmtRes_3 = resizeString ( fmtRes_3 , 2 );
appendString ( fmtRes_3 , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_115 ));
formatValue__pureZstrformat_162 (( & fmtRes_3 ), url , (( NimStringDesc * ) NIM_NIL ));
T1_ [ 3 ]. Field1 = percent___pureZjson_1806 ( fmtRes_3 );
nimln_ ( 104 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
payload = percent___pureZjson_1835 ( T1_ , 4 );
nimln_ ( 110 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
T2_ = NIM_NIL ;
T2_ = dollar___pureZjson_4522 ( payload );
body = postContent__nimblepkgZpublish_67 ( a . http , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_116 ), T2_ , (( tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g * ) NIM_NIL ));
nimln_ ( 111 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
pr = parseJson__pureZjson_5296 ( body , NIM_FALSE , NIM_FALSE );
nimln_ ( 112 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T3_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T3_ = X7BX7D___pureZjson_3606 ( pr , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_117 ));
result = getStr__pureZjson_148 ( T3_ , (( NimStringDesc * ) NIM_NIL ));
2022-09-19 09:55:15 +03:00
goto BeforeRet_ ;
} BeforeRet_ : ;
popFrame ();
return result ;
}
2022-12-25 14:07:15 +02:00
N_LIB_PRIVATE N_NIMCALL ( void , publish__nimblepkgZpublish_232 )( tyObject_PackageInfo__y9ahmwzrCcWrfsrJgR1q4lw * p , tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ * o ) {
2022-09-19 09:55:15 +03:00
tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q auth ;
NimStringDesc * pkgsDir ;
NimStringDesc * T1_ ;
NimStringDesc * lastDirX60gensym7_ ;
TFrame * _nimCurFrame ;
NimStringDesc * url ;
NimStringDesc * downloadMethod ;
NimStringDesc * tags ;
NimStringDesc * lastDirX60gensym10_ ;
nimfr_ ( "publish" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
_nimCurFrame = getFrame ();
nimZeroMem (( void * )( & auth ), sizeof ( tyObject_Auth__BHbQxO9bMmttlUd9bhNwob7Q ));
2022-12-25 14:07:15 +02:00
nimln_ ( 166 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
getGithubAuth__nimblepkgZpublish_42 ( o , ( & auth ));
nimln_ ( 167 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T1_ = NIM_NIL ;
T1_ = getNimbleUserTempDir__nimblepkgZtools_122 ();
pkgsDir = slash___pureZos_121 ( T1_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_33 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 168 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T4_ ;
T4_ = ( NIM_BOOL ) 0 ;
2022-12-25 14:07:15 +02:00
T4_ = forkExists__nimblepkgZpublish_56 ( auth );
2022-09-19 09:55:15 +03:00
if ( !! ( T4_ )) goto LA5_ ;
nimln_ ( 169 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-12-25 14:07:15 +02:00
createFork__nimblepkgZpublish_65 ( auth );
nimln_ ( 170 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_44 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
nimln_ ( 172 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
nossleep ((( NI ) 10000 ));
nimln_ ( 174 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_4 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_45 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 1 ));
}
LA5_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 175 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T9_ ;
T9_ = ( NIM_BOOL ) 0 ;
T9_ = nosdirExists ( pkgsDir );
if ( ! T9_ ) goto LA10_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 176 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_46 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_47 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 1 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 178 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
nosremoveDir ( pkgsDir , NIM_FALSE );
}
LA10_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 179 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
noscreateDir ( pkgsDir );
nimln_ ( 67 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
lastDirX60gensym7_ = nosgetCurrentDir ();
nimln_ ( 68 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
2022-12-25 14:07:15 +02:00
setCurrentDir__pureZos_733 ( pkgsDir );
2022-09-19 09:55:15 +03:00
{
TSafePoint TM__1xecg8IpX44AZWJSOKndVQ_48 ;
NimStringDesc * T13_ ;
NimStringDesc * T14_ ;
NimStringDesc * T15_ ;
nimln_ ( 70 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
pushSafePoint ( & TM__1xecg8IpX44AZWJSOKndVQ_48 );
TM__1xecg8IpX44AZWJSOKndVQ_48 . status = setjmp ( TM__1xecg8IpX44AZWJSOKndVQ_48 . context );
if ( TM__1xecg8IpX44AZWJSOKndVQ_48 . status == 0 ) {
2022-12-25 14:07:15 +02:00
nimln_ ( 183 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T13_ = NIM_NIL ;
T13_ = rawNewString (( pkgsDir ? pkgsDir -> Sup . len : 0 ) + 20 );
appendString ( T13_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_50 ));
appendString ( T13_ , pkgsDir );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_49 ), T13_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 184 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
doCmd__nimblepkgZtools_22 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_51 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 187 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
doCmd__nimblepkgZtools_22 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_52 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 188 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T14_ = NIM_NIL ;
T14_ = rawNewString (( auth . user ? auth . user -> Sup . len : 0 ) + 37 );
appendString ( T14_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_53 ));
appendString ( T14_ , auth . user );
appendString ( T14_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_36 ));
doCmd__nimblepkgZtools_22 ( T14_ );
2022-12-25 14:07:15 +02:00
nimln_ ( 190 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_54 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_55 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 191 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
doCmd__nimblepkgZtools_22 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_56 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 192 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T15_ = NIM_NIL ;
T15_ = rawNewString (( auth . token ? auth . token -> Sup . len : 0 ) + ( auth . user ? auth . user -> Sup . len : 0 ) + 45 );
appendString ( T15_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_57 ));
appendString ( T15_ , auth . token );
appendString ( T15_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_58 ));
appendString ( T15_ , auth . user );
appendString ( T15_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_59 ));
doCmd__nimblepkgZtools_22 ( T15_ );
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
}
{
nimln_ ( 70 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
2022-12-25 14:07:15 +02:00
setCurrentDir__pureZos_733 ( lastDirX60gensym7_ );
2022-09-19 09:55:15 +03:00
if ( TM__1xecg8IpX44AZWJSOKndVQ_48 . status != 0 ) nimLeaveFinally ();
}
if ( TM__1xecg8IpX44AZWJSOKndVQ_48 . status != 0 ) reraiseException ();
}
2022-12-25 14:07:15 +02:00
nimln_ ( 194 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T20_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T23_ ;
T20_ = ( NIM_BOOL ) 0 ;
T20_ = nosdirExists ( pkgsDir );
if ( !! ( T20_ )) goto LA21_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 195 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T23_ = NIM_NIL ;
T23_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_60 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T23_ , "NimbleError" , "publish" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 195 );
2022-09-19 09:55:15 +03:00
}
LA21_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 198 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NimStringDesc * T26_ ;
NIM_BOOL T27_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T30_ ;
T26_ = NIM_NIL ;
T26_ = slash___pureZos_121 ( pkgsDir , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_61 ));
T27_ = ( NIM_BOOL ) 0 ;
T27_ = nosfileExists ( T26_ );
if ( !! ( T27_ )) goto LA28_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 199 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T30_ = NIM_NIL ;
T30_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_62 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T30_ , "NimbleError" , "publish" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 199 );
2022-09-19 09:55:15 +03:00
}
LA28_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 204 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
url = (( NimStringDesc * ) NIM_NIL );
2022-12-25 14:07:15 +02:00
nimln_ ( 205 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
downloadMethod = (( NimStringDesc * ) NIM_NIL );
2022-12-25 14:07:15 +02:00
nimln_ ( 206 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NimStringDesc * T33_ ;
NimStringDesc * T34_ ;
NIM_BOOL T35_ ;
tyTuple__XOVT24GHXwqiEj5GCsEGCA T38_ ;
NimStringDesc * output ;
NI exitCode ;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ parsed ;
T33_ = NIM_NIL ;
T33_ = nosgetCurrentDir ();
T34_ = NIM_NIL ;
T34_ = slash___pureZos_121 ( T33_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_63 ));
T35_ = ( NIM_BOOL ) 0 ;
T35_ = nosdirExists ( T34_ );
if ( ! T35_ ) goto LA36_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 207 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
nimZeroMem (( void * )( & T38_ ), sizeof ( tyTuple__XOVT24GHXwqiEj5GCsEGCA ));
doCmdEx__nimblepkgZtools_29 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_64 ), ( & T38_ ));
output = NIM_NIL ;
output = T38_ . Field0 ;
exitCode = ( NI ) 0 ;
exitCode = T38_ . Field1 ;
2022-12-25 14:07:15 +02:00
nimln_ ( 208 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! ( exitCode == (( NI ) 0 ))) goto LA41_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 209 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
url = nsuStrip ( output , NIM_TRUE , NIM_TRUE , TM__1xecg8IpX44AZWJSOKndVQ_8 );
2022-12-25 14:07:15 +02:00
nimln_ ( 210 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NIM_BOOL T45_ ;
NI TM__1xecg8IpX44AZWJSOKndVQ_65 ;
T45_ = ( NIM_BOOL ) 0 ;
T45_ = nsuEndsWith ( url , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_63 ));
if ( ! T45_ ) goto LA46_ ;
if ( nimSubInt (( url ? url -> Sup . len : 0 ), (( NI ) 4 ), & TM__1xecg8IpX44AZWJSOKndVQ_65 )) { raiseOverflow (); };
if ((( NI )( TM__1xecg8IpX44AZWJSOKndVQ_65 )) < (( NI ) 0 ) || (( NI )( TM__1xecg8IpX44AZWJSOKndVQ_65 )) > (( NI ) IL64 ( 9223372036854775807 ))){ raiseRangeErrorI (( NI )( TM__1xecg8IpX44AZWJSOKndVQ_65 ), (( NI ) 0 ), (( NI ) IL64 ( 9223372036854775807 ))); }
url = setLengthStr ( url , (( NI ) (( NI )( TM__1xecg8IpX44AZWJSOKndVQ_65 ))));
}
LA46_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 211 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
downloadMethod = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_66 ));
}
LA41_ : ;
nimZeroMem (( void * )( & parsed ), sizeof ( tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ ));
2022-12-25 14:07:15 +02:00
nimln_ ( 212 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
parseUri__pureZuri_207 ( url , ( & parsed ));
nimln_ ( 214 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ sshUrl ;
NimStringDesc * T52_ ;
NimStringDesc * T53_ ;
if ( ! (( parsed . scheme ? parsed . scheme -> Sup . len : 0 ) == 0 )) goto LA50_ ;
nimZeroMem (( void * )( & sshUrl ), sizeof ( tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ ));
2022-12-25 14:07:15 +02:00
nimln_ ( 216 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T52_ = NIM_NIL ;
T52_ = rawNewString (( url ? url -> Sup . len : 0 ) + 6 );
appendString ( T52_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_67 ));
appendString ( T52_ , url );
2022-12-25 14:07:15 +02:00
parseUri__pureZuri_207 ( T52_ , ( & sshUrl ));
nimln_ ( 217 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T53_ = NIM_NIL ;
T53_ = rawNewString (( sshUrl . hostname ? sshUrl . hostname -> Sup . len : 0 ) + ( sshUrl . port ? sshUrl . port -> Sup . len : 0 ) + ( sshUrl . path ? sshUrl . path -> Sup . len : 0 ) + 9 );
appendString ( T53_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_68 ));
appendString ( T53_ , sshUrl . hostname );
appendString ( T53_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_69 ));
appendString ( T53_ , sshUrl . port );
appendString ( T53_ , sshUrl . path );
url = T53_ ;
}
goto LA48_ ;
LA50_ : ;
{
NIM_BOOL T55_ ;
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T59_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 218 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T55_ = ( NIM_BOOL ) 0 ;
T55_ = ! ((( parsed . username ? parsed . username -> Sup . len : 0 ) == 0 ));
if ( T55_ ) goto LA56_ ;
T55_ = ! ((( parsed . password ? parsed . password -> Sup . len : 0 ) == 0 ));
LA56_ : ;
if ( ! T55_ ) goto LA57_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 221 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T59_ = NIM_NIL ;
T59_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_70 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T59_ , "NimbleError" , "publish" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 221 );
2022-09-19 09:55:15 +03:00
}
goto LA48_ ;
LA57_ : ;
LA48_ : ;
}
goto LA31_ ;
LA36_ : ;
{
NimStringDesc * T61_ ;
NimStringDesc * T62_ ;
NIM_BOOL T63_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 225 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T61_ = NIM_NIL ;
T61_ = nosgetCurrentDir ();
T62_ = NIM_NIL ;
T62_ = slash___pureZos_121 ( T61_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_71 ));
T63_ = ( NIM_BOOL ) 0 ;
T63_ = nosdirExists ( T62_ );
if ( ! T63_ ) goto LA64_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 226 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
downloadMethod = copyString ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_72 ));
}
goto LA31_ ;
LA64_ : ;
{
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ * T67_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 229 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T67_ = NIM_NIL ;
T67_ = nimbleError__nimblepkgZcommon_26 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_73 ), (( NimStringDesc * ) NIM_NIL ), (( tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
raiseExceptionEx (( Exception * ) T67_ , "NimbleError" , "publish" , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" , 229 );
2022-09-19 09:55:15 +03:00
}
LA31_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 232 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
NimStringDesc * T72_ ;
if ( ! (( url ? url -> Sup . len : 0 ) == (( NI ) 0 ))) goto LA70_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 233 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T72_ = NIM_NIL ;
T72_ = rawNewString ((( * p ). basicInfo . Field0 ? ( * p ). basicInfo . Field0 -> Sup . len : 0 ) + 15 );
appendString ( T72_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_74 ));
appendString ( T72_ , ( * p ). basicInfo . Field0 );
appendString ( T72_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_75 ));
url = promptCustom__nimblepkgZcli_713 ( T72_ , (( NimStringDesc * ) NIM_NIL ));
2022-12-25 14:07:15 +02:00
nimln_ ( 234 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
{
if ( ! (( url ? url -> Sup . len : 0 ) == (( NI ) 0 ))) goto LA75_ ;
2022-12-25 14:07:15 +02:00
userAborted__nimblepkgZpublish_25 ();
2022-09-19 09:55:15 +03:00
}
LA75_ : ;
}
LA70_ : ;
2022-12-25 14:07:15 +02:00
nimln_ ( 236 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
tags = promptCustom__nimblepkgZcli_713 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_77 ), (( NimStringDesc * ) NIM_NIL ));
nimln_ ( 67 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
lastDirX60gensym10_ = nosgetCurrentDir ();
nimln_ ( 68 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
2022-12-25 14:07:15 +02:00
setCurrentDir__pureZos_733 ( pkgsDir );
2022-09-19 09:55:15 +03:00
{
TSafePoint TM__1xecg8IpX44AZWJSOKndVQ_78 ;
NimStringDesc * branchName ;
NimStringDesc * T78_ ;
tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T79_ ;
tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw T80_ ;
NimStringDesc * T81_ ;
NimStringDesc * T82_ ;
NimStringDesc * T83_ ;
NimStringDesc * T84_ ;
NimStringDesc * prUrl ;
NimStringDesc * T85_ ;
nimln_ ( 70 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
pushSafePoint ( & TM__1xecg8IpX44AZWJSOKndVQ_78 );
TM__1xecg8IpX44AZWJSOKndVQ_78 . status = setjmp ( TM__1xecg8IpX44AZWJSOKndVQ_78 . context );
if ( TM__1xecg8IpX44AZWJSOKndVQ_78 . status == 0 ) {
2022-12-25 14:07:15 +02:00
nimln_ ( 242 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
editJson__nimblepkgZpublish_191 ( p , url , tags , downloadMethod );
nimln_ ( 243 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T78_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T79_ = getTime__pureZtimes_963 ();
2022-09-19 09:55:15 +03:00
nimZeroMem (( void * )( & T80_ ), sizeof ( tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw ));
T80_ . Sup . m_type = ( & NTIdatetime__d9cK9cyKZPJJxFXUmx8dSpPw_ );
2022-12-25 14:07:15 +02:00
utc__pureZtimes_1493 ( T79_ , ( & T80_ ));
2022-09-19 09:55:15 +03:00
T81_ = NIM_NIL ;
2022-12-25 14:07:15 +02:00
T81_ = format__nimblepkgZpublish_248 (( & T80_ ));
2022-09-19 09:55:15 +03:00
T78_ = rawNewString ((( * p ). basicInfo . Field0 ? ( * p ). basicInfo . Field0 -> Sup . len : 0 ) + ( T81_ ? T81_ -> Sup . len : 0 ) + 4 );
appendString ( T78_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_99 ));
appendString ( T78_ , ( * p ). basicInfo . Field0 );
appendString ( T78_ , T81_ );
branchName = T78_ ;
2022-12-25 14:07:15 +02:00
nimln_ ( 244 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T82_ = NIM_NIL ;
T82_ = rawNewString (( branchName ? branchName -> Sup . len : 0 ) + 16 );
appendString ( T82_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_100 ));
appendString ( T82_ , branchName );
doCmd__nimblepkgZtools_22 ( T82_ );
2022-12-25 14:07:15 +02:00
nimln_ ( 245 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T83_ = NIM_NIL ;
T83_ = rawNewString ((( * p ). basicInfo . Field0 ? ( * p ). basicInfo . Field0 -> Sup . len : 0 ) + 44 );
appendString ( T83_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_101 ));
appendString ( T83_ , ( * p ). basicInfo . Field0 );
appendString ( T83_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_102 ));
doCmd__nimblepkgZtools_22 ( T83_ );
2022-12-25 14:07:15 +02:00
nimln_ ( 246 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_103 ), (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_104 ), (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 4 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
2022-12-25 14:07:15 +02:00
nimln_ ( 247 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T84_ = NIM_NIL ;
T84_ = rawNewString (( auth . token ? auth . token -> Sup . len : 0 ) + ( auth . user ? auth . user -> Sup . len : 0 ) + ( branchName ? branchName -> Sup . len : 0 ) + 39 );
appendString ( T84_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_57 ));
appendString ( T84_ , auth . token );
appendString ( T84_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_58 ));
appendString ( T84_ , auth . user );
appendString ( T84_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_105 ));
appendString ( T84_ , branchName );
doCmd__nimblepkgZtools_22 ( T84_ );
2022-12-25 14:07:15 +02:00
nimln_ ( 248 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
prUrl = createPullRequest__nimblepkgZpublish_95 ( auth , p , url , branchName );
nimln_ ( 249 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/publish.nim" );
2022-09-19 09:55:15 +03:00
T85_ = NIM_NIL ;
T85_ = rawNewString (( prUrl ? prUrl -> Sup . len : 0 ) + 34 );
2022-12-25 14:07:15 +02:00
appendString ( T85_ , (( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_118 ));
2022-09-19 09:55:15 +03:00
appendString ( T85_ , prUrl );
display__nimblepkgZcli_156 ((( NimStringDesc * ) & TM__1xecg8IpX44AZWJSOKndVQ_31 ), T85_ , (( tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA ) 5 ), (( tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ ) 3 ));
popSafePoint ();
}
else {
popSafePoint ();
setFrame ( _nimCurFrame );
}
{
nimln_ ( 70 , "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/common.nim" );
2022-12-25 14:07:15 +02:00
setCurrentDir__pureZos_733 ( lastDirX60gensym10_ );
2022-09-19 09:55:15 +03:00
if ( TM__1xecg8IpX44AZWJSOKndVQ_78 . status != 0 ) nimLeaveFinally ();
}
if ( TM__1xecg8IpX44AZWJSOKndVQ_78 . status != 0 ) reraiseException ();
}
popFrame ();
}