mirror of
https://github.com/status-im/csources-nimble.git
synced 2026-08-31 02:01:14 +00:00
1632 lines
84 KiB
C
1632 lines
84 KiB
C
/* Generated by Nim Compiler v1.7.1 */
|
|||
|
|
#define NIM_INTBITS 64
|
||
|
|
|
||
|
|
#include "nimbase.h"
|
||
|
|
#include <string.h>
|
||
|
|
#include <sys/types.h>
|
||
|
|
#include <pthread.h>
|
||
|
|
#undef LANGUAGE_C
|
||
|
|
#undef MIPSEB
|
||
|
|
#undef MIPSEL
|
||
|
|
#undef PPC
|
||
|
|
#undef R3000
|
||
|
|
#undef R4000
|
||
|
|
#undef i386
|
||
|
|
#undef linux
|
||
|
|
#undef mips
|
||
|
|
#undef near
|
||
|
|
#undef far
|
||
|
|
#undef powerpc
|
||
|
|
#undef unix
|
||
|
|
# define nimfr_(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 NimStringDesc NimStringDesc;
|
||
|
|
typedef struct TGenericSeq TGenericSeq;
|
||
|
|
typedef struct tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ;
|
||
|
|
typedef struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q;
|
||
|
|
typedef struct tyTuple__7q7q3E6Oj24ZNVJb9aonhAg tyTuple__7q7q3E6Oj24ZNVJb9aonhAg;
|
||
|
|
typedef struct tyTuple__f6XOx6Jh9bkmpGISrrHtyAg tyTuple__f6XOx6Jh9bkmpGISrrHtyAg;
|
||
|
|
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_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_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q;
|
||
|
|
typedef struct tyObject_Table__861JQ0xhLIYW2jzxkMweLQ tyObject_Table__861JQ0xhLIYW2jzxkMweLQ;
|
||
|
|
typedef struct tySequence__v6NVljHM6giAeuZKHEoQNA tySequence__v6NVljHM6giAeuZKHEoQNA;
|
||
|
|
typedef struct TNimType TNimType;
|
||
|
|
typedef struct TNimNode TNimNode;
|
||
|
|
typedef struct tyTuple__XOVT24GHXwqiEj5GCsEGCA tyTuple__XOVT24GHXwqiEj5GCsEGCA;
|
||
|
|
typedef struct tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg;
|
||
|
|
typedef struct tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ;
|
||
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
||
|
|
typedef struct Exception Exception;
|
||
|
|
typedef struct RootObj RootObj;
|
||
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
||
|
|
typedef struct tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA;
|
||
|
|
typedef struct tyObject_Table__qagh2zcXAhSb9aRfetCb26g tyObject_Table__qagh2zcXAhSb9aRfetCb26g;
|
||
|
|
typedef struct tySequence__JiteSJxrvz63iP2o9bcn2Sg tySequence__JiteSJxrvz63iP2o9bcn2Sg;
|
||
|
|
typedef struct tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg;
|
||
|
|
typedef struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g tySequence__MlAD6nAPq9bHKla9cWiIZP0g;
|
||
|
|
typedef struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ tySequence__oLpBKXzW3hF9aCVMo5EymfQ;
|
||
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
||
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
||
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
||
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
||
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
||
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
||
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
||
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
||
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
||
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
||
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
||
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
||
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
||
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
||
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
||
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
||
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
||
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
||
|
|
typedef struct tyTuple__awOivLjlO76sGdHY7nQUjQ tyTuple__awOivLjlO76sGdHY7nQUjQ;
|
||
|
|
typedef struct tyTuple__gDWaEqPfhOauJWKMBm8bzg tyTuple__gDWaEqPfhOauJWKMBm8bzg;
|
||
|
|
typedef struct tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w;
|
||
|
|
typedef struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA tyTuple__7OnuWIzW3xYXy9bIUIvuRmA;
|
||
|
|
typedef struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ tyTuple__vQEyvUeZmB7ODgnsZ5BScQ;
|
||
|
|
typedef struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg tyObject_PackageList__00UcE13159cf20wGpsHwwMg;
|
||
|
|
typedef struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw tyTuple__rLNSKSsDc19cDzAtjOZs9cSw;
|
||
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
||
|
|
typedef struct tyTuple__g1w83cyyBYiVU9c8WEJWnjQ tyTuple__g1w83cyyBYiVU9c8WEJWnjQ;
|
||
|
|
struct TGenericSeq {
|
||
|
|
NI len;
|
||
|
|
NI reserved;
|
||
|
|
};
|
||
|
|
struct NimStringDesc {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
NIM_CHAR data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q {
|
||
|
|
NI64 seconds;
|
||
|
|
NI nanosecond;
|
||
|
|
};
|
||
|
|
struct tyTuple__7q7q3E6Oj24ZNVJb9aonhAg {
|
||
|
|
NimStringDesc* Field0;
|
||
|
|
NimStringDesc* Field1;
|
||
|
|
NimStringDesc* Field2;
|
||
|
|
};
|
||
|
|
typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
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_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;
|
||
|
|
NimStringDesc* package;
|
||
|
|
};
|
||
|
|
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
|
||
|
|
typedef NimStringDesc* tyArray__DLxB9cOndPvLDyky9bY9ccM3g[7];
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
||
|
|
struct TNimNode {
|
||
|
|
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
||
|
|
NI offset;
|
||
|
|
TNimType* typ;
|
||
|
|
NCSTRING name;
|
||
|
|
NI len;
|
||
|
|
TNimNode** sons;
|
||
|
|
};
|
||
|
|
struct tyTuple__f6XOx6Jh9bkmpGISrrHtyAg {
|
||
|
|
NimStringDesc* Field0;
|
||
|
|
NI Field1;
|
||
|
|
NimStringDesc* Field2;
|
||
|
|
};
|
||
|
|
struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
|
||
|
|
NimStringDesc* Field0;
|
||
|
|
NI Field1;
|
||
|
|
};
|
||
|
|
typedef NU8 tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA;
|
||
|
|
typedef NU8 tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA;
|
||
|
|
struct RootObj {
|
||
|
|
TNimType* m_type;
|
||
|
|
};
|
||
|
|
struct Exception {
|
||
|
|
RootObj Sup;
|
||
|
|
Exception* parent;
|
||
|
|
NCSTRING name;
|
||
|
|
NimStringDesc* message;
|
||
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
||
|
|
Exception* up;
|
||
|
|
};
|
||
|
|
struct tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA {
|
||
|
|
NIM_BOOL success;
|
||
|
|
NimStringDesc* command;
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* arguments;
|
||
|
|
tyObject_Table__qagh2zcXAhSb9aRfetCb26g* flags;
|
||
|
|
NIM_BOOL retVal;
|
||
|
|
NimStringDesc* stdout_0;
|
||
|
|
};
|
||
|
|
struct tyObject_Table__qagh2zcXAhSb9aRfetCb26g {
|
||
|
|
tySequence__JiteSJxrvz63iP2o9bcn2Sg* data;
|
||
|
|
NI counter;
|
||
|
|
};
|
||
|
|
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 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;
|
||
|
|
};
|
||
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
||
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {
|
||
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
||
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
||
|
|
pthread_mutex_t lock;
|
||
|
|
};
|
||
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
|
||
|
|
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
||
|
|
NI cycleThreshold;
|
||
|
|
NI zctThreshold;
|
||
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
||
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
||
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
||
|
|
NI recGcLock;
|
||
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
||
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
||
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
||
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
||
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
||
|
|
NI gcThreadId;
|
||
|
|
};
|
||
|
|
struct tyTuple__awOivLjlO76sGdHY7nQUjQ {
|
||
|
|
NI Field0;
|
||
|
|
NI Field1;
|
||
|
|
NimStringDesc* Field2;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* Field3;
|
||
|
|
};
|
||
|
|
struct tyTuple__gDWaEqPfhOauJWKMBm8bzg {
|
||
|
|
NimStringDesc* Field0;
|
||
|
|
tyObject_VersionRangeObj__FrJQzed5Yezqp6gCbEyg0w* Field1;
|
||
|
|
};
|
||
|
|
typedef NU8 tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ;
|
||
|
|
struct tyTuple__7OnuWIzW3xYXy9bIUIvuRmA {
|
||
|
|
tyEnum_DevelopActionType__x2ItfH5czqSlrOttkAoYOQ Field0;
|
||
|
|
NimStringDesc* Field1;
|
||
|
|
};
|
||
|
|
struct tyObject_PackageList__00UcE13159cf20wGpsHwwMg {
|
||
|
|
NimStringDesc* name;
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* urls;
|
||
|
|
NimStringDesc* path;
|
||
|
|
};
|
||
|
|
struct tyTuple__vQEyvUeZmB7ODgnsZ5BScQ {
|
||
|
|
NI Field0;
|
||
|
|
NimStringDesc* Field1;
|
||
|
|
tyObject_PackageList__00UcE13159cf20wGpsHwwMg Field2;
|
||
|
|
};
|
||
|
|
typedef NU8 tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA;
|
||
|
|
struct tyTuple__rLNSKSsDc19cDzAtjOZs9cSw {
|
||
|
|
tyEnum_CmdLineKind__XkdXq9atxjiuhkFFh0XYrSA Field0;
|
||
|
|
NimStringDesc* Field1;
|
||
|
|
NimStringDesc* Field2;
|
||
|
|
};
|
||
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
|
||
|
|
NCSTRING procname;
|
||
|
|
NI line;
|
||
|
|
NCSTRING filename;
|
||
|
|
};
|
||
|
|
struct tyTuple__g1w83cyyBYiVU9c8WEJWnjQ {
|
||
|
|
NI Field0;
|
||
|
|
NimStringDesc* Field1;
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* Field2;
|
||
|
|
};
|
||
|
|
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
NimStringDesc* data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__oLpBKXzW3hF9aCVMo5EymfQ {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__kLwf9aGQcuduFr4gekUDa2w {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__gDWaEqPfhOauJWKMBm8bzg data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__K2J9a59aomOCxv7VVeiHZfug {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__7OnuWIzW3xYXy9bIUIvuRmA data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__sQx7tKsP6HE09cszRIkxbdg {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__vQEyvUeZmB7ODgnsZ5BScQ data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__v6NVljHM6giAeuZKHEoQNA {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__rLNSKSsDc19cDzAtjOZs9cSw data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__JiteSJxrvz63iP2o9bcn2Sg {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__g1w83cyyBYiVU9c8WEJWnjQ data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
struct tySequence__MlAD6nAPq9bHKla9cWiIZP0g {
|
||
|
|
TGenericSeq Sup;
|
||
|
|
tyTuple__awOivLjlO76sGdHY7nQUjQ data[SEQ_DECL_SIZE];
|
||
|
|
};
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimsFile__nimblepkgZnimscriptwrapper_63)(NimStringDesc* scriptName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, absolutePath__pureZos_743)(NimStringDesc* path, NimStringDesc* root);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetCurrentDir)(void);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q, nosgetLastModificationTime)(NimStringDesc* file);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetAppFilename)(void);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimblecache__nimblepkgZnimscriptwrapper_42)(void);
|
||
|
|
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);
|
||
|
|
N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_3527)(void);
|
||
|
|
static N_INLINE(void, popFrame)(void);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetTempDir)(void);
|
||
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
||
|
|
static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size);
|
||
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___systemZdollars_8)(NI x);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NI, hash__pureZhashes_279)(NimStringDesc* x);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getEnv__pureZos_421)(NimStringDesc* key, NimStringDesc* default_0);
|
||
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___pureZtimes_3314)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q time);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosaddFileExt)(NimStringDesc* filename, NimStringDesc* ext);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, nossplitFile)(NimStringDesc* path, tyTuple__7q7q3E6Oj24ZNVJb9aonhAg* Result);
|
||
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
||
|
|
static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosextractFilename)(NimStringDesc* path);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosfileExists)(NimStringDesc* filename);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, noscreateDir)(NimStringDesc* dir);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeFile__stdZsyncio_477)(NimStringDesc* filename, NimStringDesc* content);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s, NimStringDesc* sub, NimStringDesc* by);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nostryRemoveFile)(NimStringDesc* file);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ntLtTime)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q a, tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q b);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execNimscript__nimblepkgZnimscriptwrapper_44)(NimStringDesc* nimbleFile, NimStringDesc* nimsFile, NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook, tyTuple__f6XOx6Jh9bkmpGISrrHtyAg* Result);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimbleTempDir__nimblepkgZtools_120)(void);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isCustomTask__nimblepkgZnimscriptwrapper_26)(NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options);
|
||
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
|
||
|
|
static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size);
|
||
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen_0, NimStringDesc* sep);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, getCompilationFlags__nimblepkgZoptions_2200)(tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nospquoteShell)(NimStringDesc* s);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimBin__nimblepkgZoptions_244)(tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options);
|
||
|
|
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_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_56)(NimStringDesc* msg);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, displayDebug__nimblepkgZcli_697)(NimStringDesc* msg);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, needsLiveOutput__nimblepkgZnimscriptwrapper_34)(NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nospexecCmd)(NimStringDesc* command);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execCmdEx__pureZosproc_1209)(NimStringDesc* command, tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA options, tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* env, NimStringDesc* workingDir, NimStringDesc* input, tyTuple__XOVT24GHXwqiEj5GCsEGCA* Result);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readFile__stdZsyncio_472)(NimStringDesc* filename);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, shouldRemoveTmp__nimblepkgZoptions_2183)(tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NimStringDesc* file);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeExecutionOutput__nimblepkgZnimscriptwrapper_40)(NimStringDesc* data);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, display__nimblepkgZcli_156)(NimStringDesc* category, NimStringDesc* msg, tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA displayType, tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority);
|
||
|
|
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(NimStringDesc*, nsuToLowerAsciiStr)(NimStringDesc* s);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execScript__nimblepkgZnimscriptwrapper_94)(NimStringDesc* scriptName, NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook, tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA* Result);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, parseJson__pureZjson_5292)(NimStringDesc* buffer, NIM_BOOL rawIntegers, NIM_BOOL rawFloats);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Table__qagh2zcXAhSb9aRfetCb26g*, newTable__pureZhttpcore_120)(NI initialSize);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, getBool__pureZjson_185)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* n, NIM_BOOL default_0);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, X7BX7D___pureZjson_3602)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* key);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getStr__pureZjson_144)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* n, NimStringDesc* default_0);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__pureZjson_3244)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* key);
|
||
|
|
static N_INLINE(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, X5BX5D___pureZjson_3069)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* name);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**, X5BX5D___pureZjson_2663)(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg* t, NimStringDesc* key);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
||
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
||
|
|
static N_INLINE(void, decRef__system_5905)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
||
|
|
static N_INLINE(NI, minuspercent___system_716)(NI x, NI y);
|
||
|
|
static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y);
|
||
|
|
static N_INLINE(void, rtlAddZCT__system_5903)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
||
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5854)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
||
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5860)(void* usr);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ);
|
||
|
|
static N_INLINE(NI, len__pureZjson_2165)(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg* t);
|
||
|
|
static N_INLINE(NIM_BOOL, isFilled__pureZcollectionsZtables_31)(NI hcode);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___pureZhttpcore_2122)(tyObject_Table__qagh2zcXAhSb9aRfetCb26g* t, NimStringDesc* key, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* val);
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ**, X5BX5D___pureZhttpcore_1883)(tyObject_Table__qagh2zcXAhSb9aRfetCb26g* t, NimStringDesc* key);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_2, "nimblecache-", 12);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_3, "USER", 4);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_4, "nimscriptapi_", 13);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_5, "nim", 3);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_6, "_", 1);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_7, "nims", 4);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_8, "ini", 3);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_9, "# Copyright (C) Dominik Picheta. All rights reserved.\012# BSD License. Look at license.txt for more info.\012\012## This module is implicitly imported in NimScript .nimble files.\012\012import system except getCommand, setCommand, switch, `--`\012import strformat, strutils, tables, sequtils\012export tables\012\012when (NimMajor, NimMinor) < (1, 3):\012 when not defined(nimscript):\012 import os\012else:\012 import os\012\012var\012 packageName* = \"\" ## Set this to the package name. It\012 ## is usually not required to do that, nims\' filename is\012 ## the default.\012 version*: string ## The package\'s version.\012 author*: string ## The package\'s author.\012 description*: string ## The package\'s description.\012 license*: string ## The package\'s license.\012 srcDir*: string ## The package\'s source directory.\012 binDir*: string ## The package\'s binary directory.\012 backend*: string ## The package\'s backend.\012\012 skipDirs*, skipFiles*, skipExt*, installDirs*, installFiles*,\012 installExt*, bin*: seq[string] = @[] ## Nimble metadata.\012 requiresData*: seq[string] = @[] ## The package\'s dependencies.\012\012 foreignDeps*: seq[string] = @[] ## The foreign dependencies. Only\012 ## exported for \'distros.nim\'.\012\012 nimbleTasks: seq[tuple[name, description: string]] = @[]\012 beforeHooks: seq[string] = @[]\012 afterHooks: seq[string] = @[]\012 flags: Table[string, seq[string]]\012 namedBin*: Table[string, string]\012\012 command = \"e\"\012 project = \"\"\012 success = false\012 retVal = true\012\012proc requires*(deps: varargs[string]) =\012 ## Call this to set the list of requirements of your Nimble\012 ## package.\012 for d in deps: requiresData.add(d)\012\012proc getParams(): tuple[scriptFile, projectFile, outFile, actionName: string,\012 commandLineParams: seq[string]] =\012 # Called by nimscriptwrapper.nim:execNimscript()\012 # nim e --flags /full/path/to/file.nims /full/path/to/file.nimble /full/path/to/file.out action\012 for i in 2 .. paramCount():\012 let\012 param = paramStr(i)\012 if param[0] != \'-\':\012 if result.scriptFile.len == 0:\012 result.scriptFile = param\012 elif result.projectFile.len == 0:\012 result.projectFile = param\012 elif result.outFile.len == 0:\012 result.outFile = param\012 elif result.actionName.len == 0:\012 result.actionName = param.normalize\012 else:\012 result.commandLineParams.add param\012 else:\012 result.commandLineParams.add param\012\012const\012 # Command line values are const so that thisDir() works at compile time\012 (scriptFile, projectFile, outFile, actionName, commandLineParams*) = getParams()\012\012proc getCommand*(): string =\012 return command\012\012proc setCommand*(cmd: string, prj = \"\") =\012 command = cmd\012 if prj.len != 0:\012 project = prj\012\012proc switch*(key: string, value=\"\") =\012 if flags.hasKey(key):\012 flags[key].add(value)\012 else:\012 flags[key] = @[value]\012\012template `--`*(key, val: untyped) =\012 switch(astToStr(key), strip astToStr(val))\012\012template `--`*(key: untyped) =\012 switch(astToStr(key), \"\")\012\012template printIfLen(varName) =\012 if varName.len != 0:\012 result &= astToStr(varName) & \": \\\"\\\"\\\"\" & varName & \"\\\"\\\"\\\"\\n\"\012\012template printSeqIfLen(name: string, varName: untyped) =\012 if varName.len != 0:\012 result &= name & \": \\\"\" & varName.join(\", \") & \"\\\"\\n\"\012\012template printSeqIfLen(varName) =\012 printSeqIfLen(astToStr(varName), varName)\012\012proc printPkgInfo(): string =\012 if backend.len == 0:\012 backend = \"c\"\012\012 # Forward `namedBin` entries in `bin`\012 for k, v in namedBin:\012 let idx = bin.find(k)\012 if idx == -1:\012 bin.add k & \"=\" & v\012 else:\012 bin[idx] = k & \"=\" & v\012\012 result = \"[Pack
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_10, "import system except getCommand, setCommand, switch, `--`, thisDir,\012 packageName, version, author, description, license, srcDir, binDir, backend,\012 skipDirs, skipFiles, skipExt, installDirs, installFiles, installExt, bin, foreignDeps,\012 requires, task, packageName\012\012import strutils\012import \"$1\"\012include \"$2\"\012\012onExit()\012", 318);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_11, "\\", 1);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_12, "/", 1);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_13, ".ini", 4);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_14, ".out", 4);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_15, "printPkgInfo", 12);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_16, " ", 1);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_17, "$# e $# --colors:on $# $# $# $# $#", 34);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_18, "--hints:off --verbosity:0", 25);
|
||
|
|
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__PUcv9cmWFUbRqCh9ctEyhSMQ_19 = {
|
||
|
|
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__PUcv9cmWFUbRqCh9ctEyhSMQ_20, "field \'arguments\' is not accessible for type \'Action\' using \'typ = ", 67);
|
||
|
|
extern TNimType NTIactiontype__w1V3R82mpkCDejycxLFPdg_;
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_22, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim(243, 11) `len(a) == L` the length of the seq changed while iterating over it", 131);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_23, "field \'custRunFlags\' is not accessible for type \'Action\' using \'typ = ", 70);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_24, "Executing ", 10);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_25, "Info", 4);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_26, "\012printPkgInfo() failed", 22);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_27, "Before", 6);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_28, "After", 5);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_29, "Attempting", 10);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_30, "to execute hook $# in $#", 24);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_31, "Exception raised during nimble script execution", 47);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_32, "{}", 2);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_33, "success", 7);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_34, "command", 7);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_35, "project", 7);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_36, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim(512, 9) `not isNil(node)` ", 74);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_37, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim(513, 9) `node.kind == JObject` ", 79);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_38, "field \'fields\' is not accessible for type \'JsonNodeObj\' using \'kind = ", 70);
|
||
|
|
extern TNimType NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_;
|
||
|
|
extern TNimType NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_;
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_39, "flags", 5);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_40, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim(836, 10) `node.kind == JObject` : pairs() can not iterate a JsonNode of kind ", 125);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_41, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim(823, 10) `node.kind == JArray` : items() can not iterate a JsonNode of kind ", 124);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_42, "field \'elems\' is not accessible for type \'JsonNodeObj\' using \'kind = ", 69);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_44, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim(1719, 11) `len(t) == L` the length of the table changed while iterating over it", 141);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_45, "retVal", 6);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_46, "Executing", 9);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_47, "task $# in $#", 13);
|
||
|
|
STRING_LITERAL(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_48, "e", 1);
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR TFrame* framePtr__system_3094;
|
||
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__system_5793;
|
||
|
|
static N_INLINE(void, nimFrame)(TFrame* s) {
|
||
|
|
{
|
||
|
|
if (!(framePtr__system_3094 == ((TFrame*) NIM_NIL))) goto LA3_;
|
||
|
|
(*s).calldepth = ((NI16) 0);
|
||
|
|
}
|
||
|
|
goto LA1_;
|
||
|
|
LA3_: ;
|
||
|
|
{
|
||
|
|
(*s).calldepth = (NI16)((*framePtr__system_3094).calldepth + ((NI16) 1));
|
||
|
|
}
|
||
|
|
LA1_: ;
|
||
|
|
(*s).prev = framePtr__system_3094;
|
||
|
|
framePtr__system_3094 = s;
|
||
|
|
{
|
||
|
|
if (!((*s).calldepth == ((NI16) 2000))) goto LA8_;
|
||
|
|
callDepthLimitReached__system_3527();
|
||
|
|
}
|
||
|
|
LA8_: ;
|
||
|
|
}
|
||
|
|
static N_INLINE(void, popFrame)(void) {
|
||
|
|
framePtr__system_3094 = (*framePtr__system_3094).prev;
|
||
|
|
}
|
||
|
|
static N_INLINE(NimStringDesc*, slash___pureZos_121)(NimStringDesc* head, NimStringDesc* tail) {
|
||
|
|
NimStringDesc* result;
|
||
|
|
nimfr_("/", "/home/yyoncho/Sources/nim/Nim/lib/pure/os.nim");
|
||
|
|
result = NIM_NIL;
|
||
|
|
nimln_(237, "/home/yyoncho/Sources/nim/Nim/lib/pure/os.nim");
|
||
|
|
result = nosjoinPath(head, tail);
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
|
||
|
|
void* T1_;
|
||
|
|
T1_ = (void*)0;
|
||
|
|
T1_ = memcpy(dest, source, ((size_t) (size)));
|
||
|
|
}
|
||
|
|
static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size) {
|
||
|
|
nimCopyMem(dest, source, size);
|
||
|
|
}
|
||
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
||
|
|
{
|
||
|
|
if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
|
||
|
|
copyMem__system_1727(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
||
|
|
(*dest).Sup.len += (*src).Sup.len;
|
||
|
|
}
|
||
|
|
LA3_: ;
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimblecache__nimblepkgZnimscriptwrapper_42)(void) {
|
||
|
|
NimStringDesc* result;
|
||
|
|
NimStringDesc* T1_;
|
||
|
|
NimStringDesc* T2_;
|
||
|
|
NimStringDesc* T3_;
|
||
|
|
NimStringDesc* T4_;
|
||
|
|
NI T5_;
|
||
|
|
NimStringDesc* T6_;
|
||
|
|
nimfr_("getNimblecache", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = NIM_NIL;
|
||
|
|
nimln_(39, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T1_ = NIM_NIL;
|
||
|
|
T2_ = NIM_NIL;
|
||
|
|
T2_ = nosgetTempDir();
|
||
|
|
T3_ = NIM_NIL;
|
||
|
|
T3_ = slash___pureZos_121(T2_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_2));
|
||
|
|
T4_ = NIM_NIL;
|
||
|
|
T4_ = getEnv__pureZos_421(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_3), ((NimStringDesc*) NIM_NIL));
|
||
|
|
T5_ = (NI)0;
|
||
|
|
T5_ = hash__pureZhashes_279(T4_);
|
||
|
|
if (T5_ == (IL64(-9223372036854775807) - IL64(1))){ raiseOverflow(); }
|
||
|
|
T6_ = NIM_NIL;
|
||
|
|
T6_ = dollar___systemZdollars_8((T5_ > 0? (T5_) : -(T5_)));
|
||
|
|
T1_ = rawNewString((T3_ ? T3_->Sup.len : 0) + (T6_ ? T6_->Sup.len : 0) + 0);
|
||
|
|
appendString(T1_, T3_);
|
||
|
|
appendString(T1_, T6_);
|
||
|
|
result = T1_;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) {
|
||
|
|
void* T1_;
|
||
|
|
T1_ = (void*)0;
|
||
|
|
T1_ = memset(a, v, ((size_t) (size)));
|
||
|
|
}
|
||
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
||
|
|
nimSetMem__systemZmemory_7(p, ((int) 0), size);
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNimsFile__nimblepkgZnimscriptwrapper_63)(NimStringDesc* scriptName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options) {
|
||
|
|
NimStringDesc* result;
|
||
|
|
NimStringDesc* scriptName_2;
|
||
|
|
NimStringDesc* T1_;
|
||
|
|
tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q nimbleLastModified;
|
||
|
|
NimStringDesc* T2_;
|
||
|
|
NimStringDesc* cacheDir;
|
||
|
|
NimStringDesc* nhash;
|
||
|
|
NimStringDesc* T3_;
|
||
|
|
NI T4_;
|
||
|
|
NimStringDesc* nimscriptApiFile;
|
||
|
|
NimStringDesc* T5_;
|
||
|
|
NimStringDesc* T6_;
|
||
|
|
NimStringDesc* shash;
|
||
|
|
NimStringDesc* T7_;
|
||
|
|
NimStringDesc* T8_;
|
||
|
|
NI T9_;
|
||
|
|
NimStringDesc* prjCacheDir;
|
||
|
|
NimStringDesc* T10_;
|
||
|
|
tyTuple__7q7q3E6Oj24ZNVJb9aonhAg T11_;
|
||
|
|
NimStringDesc* T12_;
|
||
|
|
NimStringDesc* nimsFile;
|
||
|
|
NimStringDesc* T13_;
|
||
|
|
NimStringDesc* T14_;
|
||
|
|
NimStringDesc* iniFile;
|
||
|
|
nimfr_("getNimsFile", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = NIM_NIL;
|
||
|
|
nimln_(83, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(1438, "/home/yyoncho/Sources/nim/Nim/lib/pure/os.nim");
|
||
|
|
T1_ = NIM_NIL;
|
||
|
|
T1_ = nosgetCurrentDir();
|
||
|
|
nimln_(83, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
scriptName_2 = absolutePath__pureZos_743(scriptName, T1_);
|
||
|
|
nimln_(85, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T2_ = NIM_NIL;
|
||
|
|
T2_ = nosgetAppFilename();
|
||
|
|
nimbleLastModified = nosgetLastModificationTime(T2_);
|
||
|
|
nimln_(86, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
cacheDir = getNimblecache__nimblepkgZnimscriptwrapper_42();
|
||
|
|
nimln_(89, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T3_ = NIM_NIL;
|
||
|
|
T3_ = dollar___pureZtimes_3314(nimbleLastModified);
|
||
|
|
T4_ = (NI)0;
|
||
|
|
T4_ = hash__pureZhashes_279(T3_);
|
||
|
|
if (T4_ == (IL64(-9223372036854775807) - IL64(1))){ raiseOverflow(); }
|
||
|
|
nhash = dollar___systemZdollars_8((T4_ > 0? (T4_) : -(T4_)));
|
||
|
|
nimln_(90, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T5_ = NIM_NIL;
|
||
|
|
T5_ = rawNewString((nhash ? nhash->Sup.len : 0) + 13);
|
||
|
|
appendString(T5_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_4));
|
||
|
|
appendString(T5_, nhash);
|
||
|
|
T6_ = NIM_NIL;
|
||
|
|
T6_ = nosaddFileExt(T5_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_5));
|
||
|
|
nimscriptApiFile = slash___pureZos_121(cacheDir, T6_);
|
||
|
|
nimln_(93, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T7_ = NIM_NIL;
|
||
|
|
T8_ = NIM_NIL;
|
||
|
|
T8_ = dollar___pureZtimes_3314(nimbleLastModified);
|
||
|
|
T7_ = rawNewString((scriptName_2 ? scriptName_2->Sup.len : 0) + (T8_ ? T8_->Sup.len : 0) + 0);
|
||
|
|
appendString(T7_, scriptName_2);
|
||
|
|
appendString(T7_, T8_);
|
||
|
|
T9_ = (NI)0;
|
||
|
|
T9_ = hash__pureZhashes_279(T7_);
|
||
|
|
if (T9_ == (IL64(-9223372036854775807) - IL64(1))){ raiseOverflow(); }
|
||
|
|
shash = dollar___systemZdollars_8((T9_ > 0? (T9_) : -(T9_)));
|
||
|
|
nimln_(94, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T10_ = NIM_NIL;
|
||
|
|
nimZeroMem((void*)(&T11_), sizeof(tyTuple__7q7q3E6Oj24ZNVJb9aonhAg));
|
||
|
|
nossplitFile(scriptName_2, (&T11_));
|
||
|
|
T12_ = NIM_NIL;
|
||
|
|
T12_ = slash___pureZos_121(cacheDir, T11_.Field1);
|
||
|
|
T10_ = rawNewString((T12_ ? T12_->Sup.len : 0) + (shash ? shash->Sup.len : 0) + 1);
|
||
|
|
appendString(T10_, T12_);
|
||
|
|
appendString(T10_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_6));
|
||
|
|
appendString(T10_, shash);
|
||
|
|
prjCacheDir = T10_;
|
||
|
|
nimln_(95, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T13_ = NIM_NIL;
|
||
|
|
T13_ = nosextractFilename(scriptName_2);
|
||
|
|
T14_ = NIM_NIL;
|
||
|
|
T14_ = noschangeFileExt(T13_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_7));
|
||
|
|
nimsFile = slash___pureZos_121(prjCacheDir, T14_);
|
||
|
|
nimln_(96, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
iniFile = noschangeFileExt(nimsFile, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_8));
|
||
|
|
nimln_(99, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T17_;
|
||
|
|
T17_ = (NIM_BOOL)0;
|
||
|
|
T17_ = nosfileExists(nimscriptApiFile);
|
||
|
|
if (!!(T17_)) goto LA18_;
|
||
|
|
nimln_(100, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
noscreateDir(cacheDir);
|
||
|
|
nimln_(101, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
writeFile__stdZsyncio_477(nimscriptApiFile, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_9));
|
||
|
|
}
|
||
|
|
LA18_: ;
|
||
|
|
nimln_(104, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T22_;
|
||
|
|
NimStringDesc* T25_;
|
||
|
|
tyArray__Re75IspeoxXy2oCZHwcRrA T26_;
|
||
|
|
NimStringDesc* T27_;
|
||
|
|
NIM_BOOL T28_;
|
||
|
|
T22_ = (NIM_BOOL)0;
|
||
|
|
T22_ = nosfileExists(nimsFile);
|
||
|
|
if (!!(T22_)) goto LA23_;
|
||
|
|
nimln_(105, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T25_ = NIM_NIL;
|
||
|
|
T25_ = nosparentDir(nimsFile);
|
||
|
|
noscreateDir(T25_);
|
||
|
|
nimln_(106, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(117, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)T26_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
|
||
|
|
T26_[0] = nsuReplaceStr(nimscriptApiFile, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_11), ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_12));
|
||
|
|
T26_[1] = nsuReplaceStr(scriptName_2, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_11), ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_12));
|
||
|
|
T27_ = NIM_NIL;
|
||
|
|
T27_ = nsuFormatOpenArray(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_10), T26_, 2);
|
||
|
|
nimln_(106, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
writeFile__stdZsyncio_477(nimsFile, T27_);
|
||
|
|
nimln_(118, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T28_ = (NIM_BOOL)0;
|
||
|
|
T28_ = nostryRemoveFile(iniFile);
|
||
|
|
(void)(T28_);
|
||
|
|
}
|
||
|
|
LA23_: ;
|
||
|
|
nimln_(120, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = copyString(nimsFile);
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
|
||
|
|
int result;
|
||
|
|
result = (int)0;
|
||
|
|
result = memcmp(a, b, ((size_t) (size)));
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
int T1_;
|
||
|
|
result = (NIM_BOOL)0;
|
||
|
|
T1_ = (int)0;
|
||
|
|
T1_ = nimCmpMem(a, b, size);
|
||
|
|
result = (T1_ == ((NI32) 0));
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
NI alen;
|
||
|
|
NI blen;
|
||
|
|
nimfr_("eqStrings", "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
{ result = (NIM_BOOL)0;
|
||
|
|
nimln_(27, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
alen = (a ? a->Sup.len : 0);
|
||
|
|
nimln_(28, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
blen = (b ? b->Sup.len : 0);
|
||
|
|
nimln_(29, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
{
|
||
|
|
if (!(alen == blen)) goto LA3_;
|
||
|
|
nimln_(30, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
{
|
||
|
|
if (!(alen == ((NI) 0))) goto LA7_;
|
||
|
|
result = NIM_TRUE;
|
||
|
|
goto BeforeRet_;
|
||
|
|
}
|
||
|
|
LA7_: ;
|
||
|
|
nimln_(31, "/home/yyoncho/Sources/nim/Nim/lib/system/strmantle.nim");
|
||
|
|
result = equalMem__system_1735(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
|
||
|
|
goto BeforeRet_;
|
||
|
|
}
|
||
|
|
LA3_: ;
|
||
|
|
}BeforeRet_: ;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isCustomTask__nimblepkgZnimscriptwrapper_26)(NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
NIM_BOOL T1_;
|
||
|
|
nimfr_("isCustomTask", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = (NIM_BOOL)0;
|
||
|
|
nimln_(26, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T1_ = (NIM_BOOL)0;
|
||
|
|
T1_ = ((*options).action.typ == ((tyEnum_ActionType__w1V3R82mpkCDejycxLFPdg) 13));
|
||
|
|
if (!(T1_)) goto LA2_;
|
||
|
|
T1_ = !(eqStrings(actionName, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_15)));
|
||
|
|
LA2_: ;
|
||
|
|
result = T1_;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, needsLiveOutput__nimblepkgZnimscriptwrapper_34)(NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
NIM_BOOL isCustomTask;
|
||
|
|
NIM_BOOL T1_;
|
||
|
|
NIM_BOOL T2_;
|
||
|
|
nimfr_("needsLiveOutput", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{ result = (NIM_BOOL)0;
|
||
|
|
nimln_(29, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
isCustomTask = isCustomTask__nimblepkgZnimscriptwrapper_26(actionName, options);
|
||
|
|
nimln_(30, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T1_ = (NIM_BOOL)0;
|
||
|
|
T2_ = (NIM_BOOL)0;
|
||
|
|
T2_ = isCustomTask;
|
||
|
|
if (T2_) goto LA3_;
|
||
|
|
T2_ = isHook;
|
||
|
|
LA3_: ;
|
||
|
|
T1_ = T2_;
|
||
|
|
if (T1_) goto LA4_;
|
||
|
|
T1_ = ((actionName ? actionName->Sup.len : 0) == 0);
|
||
|
|
LA4_: ;
|
||
|
|
result = T1_;
|
||
|
|
goto BeforeRet_;
|
||
|
|
}BeforeRet_: ;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execNimscript__nimblepkgZnimscriptwrapper_44)(NimStringDesc* nimbleFile, NimStringDesc* nimsFile, NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook, tyTuple__f6XOx6Jh9bkmpGISrrHtyAg* Result) {
|
||
|
|
NimStringDesc* outFile;
|
||
|
|
NimStringDesc* T1_;
|
||
|
|
NimStringDesc* T2_;
|
||
|
|
NIM_BOOL isCustomTask;
|
||
|
|
NimStringDesc* compFlags;
|
||
|
|
NimStringDesc* cmd;
|
||
|
|
tyArray__DLxB9cOndPvLDyky9bY9ccM3g T9_;
|
||
|
|
NimStringDesc* T10_;
|
||
|
|
NimStringDesc* T11_;
|
||
|
|
NimStringDesc* T29_;
|
||
|
|
nimfr_("execNimscript", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
unsureAsgnRef((void**)&(*Result).Field0, NIM_NIL);
|
||
|
|
(*Result).Field1 = 0;
|
||
|
|
unsureAsgnRef((void**)&(*Result).Field2, NIM_NIL);
|
||
|
|
nimln_(45, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T1_ = NIM_NIL;
|
||
|
|
T2_ = NIM_NIL;
|
||
|
|
T2_ = getNimbleTempDir__nimblepkgZtools_120();
|
||
|
|
T1_ = rawNewString((T2_ ? T2_->Sup.len : 0) + 4);
|
||
|
|
appendString(T1_, T2_);
|
||
|
|
appendString(T1_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_14));
|
||
|
|
outFile = T1_;
|
||
|
|
nimln_(46, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
isCustomTask = isCustomTask__nimblepkgZnimscriptwrapper_26(actionName, options);
|
||
|
|
nimln_(47, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T7_;
|
||
|
|
if (!isCustomTask) goto LA5_;
|
||
|
|
T7_ = NIM_NIL;
|
||
|
|
T7_ = getCompilationFlags__nimblepkgZoptions_2200(options);
|
||
|
|
compFlags = nsuJoinSep(T7_->data, (T7_ ? T7_->Sup.len : 0), ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_16));
|
||
|
|
}
|
||
|
|
goto LA3_;
|
||
|
|
LA5_: ;
|
||
|
|
{
|
||
|
|
compFlags = ((NimStringDesc*) NIM_NIL);
|
||
|
|
}
|
||
|
|
LA3_: ;
|
||
|
|
nimln_(50, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(51, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)T9_, sizeof(tyArray__DLxB9cOndPvLDyky9bY9ccM3g));
|
||
|
|
nimln_(52, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T10_ = NIM_NIL;
|
||
|
|
T10_ = getNimBin__nimblepkgZoptions_244(options);
|
||
|
|
T9_[0] = nospquoteShell(T10_);
|
||
|
|
T9_[1] = copyString(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_18));
|
||
|
|
T9_[2] = copyString(compFlags);
|
||
|
|
nimln_(55, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T9_[3] = nospquoteShell(nimsFile);
|
||
|
|
nimln_(56, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T9_[4] = nospquoteShell(nimbleFile);
|
||
|
|
nimln_(57, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T9_[5] = nospquoteShell(outFile);
|
||
|
|
T9_[6] = copyString(actionName);
|
||
|
|
nimln_(51, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T11_ = NIM_NIL;
|
||
|
|
T11_ = nsuFormatOpenArray(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_17), T9_, 7);
|
||
|
|
nimln_(60, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
cmd = nsuStrip(T11_, NIM_TRUE, NIM_TRUE, TM__PUcv9cmWFUbRqCh9ctEyhSMQ_19);
|
||
|
|
nimln_(62, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NimStringDesc* T27_;
|
||
|
|
NimStringDesc* T28_;
|
||
|
|
if (!isCustomTask) goto LA14_;
|
||
|
|
{
|
||
|
|
NimStringDesc** i;
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* colontmp_;
|
||
|
|
NI i_2;
|
||
|
|
NI L;
|
||
|
|
NI T17_;
|
||
|
|
i = (NimStringDesc**)0;
|
||
|
|
colontmp_ = NIM_NIL;
|
||
|
|
nimln_(63, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
if (!(((8192 &((NU32)1<<((NU)((*options).action.typ)&31U)))!=0))) { raiseFieldError2(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_20), reprDiscriminant(((NI)(*options).action.typ) + (NI)IL64(0), (&NTIactiontype__w1V3R82mpkCDejycxLFPdg_))); }
|
||
|
|
colontmp_ = (*options).action._typ_9.arguments;
|
||
|
|
nimln_(238, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
i_2 = ((NI) 0);
|
||
|
|
nimln_(239, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
T17_ = (colontmp_ ? colontmp_->Sup.len : 0);
|
||
|
|
L = T17_;
|
||
|
|
{
|
||
|
|
nimln_(240, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
while (1) {
|
||
|
|
NimStringDesc* T20_;
|
||
|
|
NimStringDesc* T21_;
|
||
|
|
NI TM__PUcv9cmWFUbRqCh9ctEyhSMQ_21;
|
||
|
|
if (!(i_2 < L)) goto LA19;
|
||
|
|
nimln_(63, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
if (i_2 < 0 || i_2 >= (colontmp_ ? colontmp_->Sup.len : 0)){ raiseIndexError2(i_2,(colontmp_ ? colontmp_->Sup.len : 0)-1); }
|
||
|
|
i = (&colontmp_->data[i_2]);
|
||
|
|
T20_ = NIM_NIL;
|
||
|
|
nimln_(64, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T21_ = NIM_NIL;
|
||
|
|
T21_ = nospquoteShell((*i));
|
||
|
|
T20_ = rawNewString((T21_ ? T21_->Sup.len : 0) + 1);
|
||
|
|
appendString(T20_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_16));
|
||
|
|
appendString(T20_, T21_);
|
||
|
|
cmd = resizeString(cmd, (T20_ ? T20_->Sup.len : 0) + 0);
|
||
|
|
appendString(cmd, T20_);
|
||
|
|
nimln_(242, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_21)) { raiseOverflow(); };
|
||
|
|
i_2 = (NI)(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_21);
|
||
|
|
nimln_(243, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
{
|
||
|
|
NI T24_;
|
||
|
|
T24_ = (colontmp_ ? colontmp_->Sup.len : 0);
|
||
|
|
if (!!((T24_ == L))) goto LA25_;
|
||
|
|
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_22));
|
||
|
|
}
|
||
|
|
LA25_: ;
|
||
|
|
} LA19: ;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
nimln_(65, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T27_ = NIM_NIL;
|
||
|
|
if (!(((8192 &((NU32)1<<((NU)((*options).action.typ)&31U)))!=0))) { raiseFieldError2(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_23), reprDiscriminant(((NI)(*options).action.typ) + (NI)IL64(0), (&NTIactiontype__w1V3R82mpkCDejycxLFPdg_))); }
|
||
|
|
T28_ = NIM_NIL;
|
||
|
|
T28_ = nsuJoinSep((*options).action._typ_9.custRunFlags->data, ((*options).action._typ_9.custRunFlags ? (*options).action._typ_9.custRunFlags->Sup.len : 0), ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_16));
|
||
|
|
T27_ = rawNewString((T28_ ? T28_->Sup.len : 0) + 1);
|
||
|
|
appendString(T27_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_16));
|
||
|
|
appendString(T27_, T28_);
|
||
|
|
cmd = resizeString(cmd, (T27_ ? T27_->Sup.len : 0) + 0);
|
||
|
|
appendString(cmd, T27_);
|
||
|
|
}
|
||
|
|
LA14_: ;
|
||
|
|
nimln_(67, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T29_ = NIM_NIL;
|
||
|
|
T29_ = rawNewString((cmd ? cmd->Sup.len : 0) + 10);
|
||
|
|
appendString(T29_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_24));
|
||
|
|
appendString(T29_, cmd);
|
||
|
|
displayDebug__nimblepkgZcli_697(T29_);
|
||
|
|
nimln_(69, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T32_;
|
||
|
|
T32_ = (NIM_BOOL)0;
|
||
|
|
T32_ = needsLiveOutput__nimblepkgZnimscriptwrapper_34(actionName, options, isHook);
|
||
|
|
if (!T32_) goto LA33_;
|
||
|
|
nimln_(70, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
(*Result).Field1 = nospexecCmd(cmd);
|
||
|
|
}
|
||
|
|
goto LA30_;
|
||
|
|
LA33_: ;
|
||
|
|
{
|
||
|
|
tyTuple__XOVT24GHXwqiEj5GCsEGCA _;
|
||
|
|
nimZeroMem((void*)(&_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
|
||
|
|
nimln_(74, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
execCmdEx__pureZosproc_1209(cmd, 10, ((tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg*) NIM_NIL), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) NIM_NIL), (&_));
|
||
|
|
unsureAsgnRef((void**) (&(*Result).Field2), copyString(_.Field0));
|
||
|
|
(*Result).Field1 = _.Field1;
|
||
|
|
}
|
||
|
|
LA30_: ;
|
||
|
|
nimln_(75, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T38_;
|
||
|
|
T38_ = (NIM_BOOL)0;
|
||
|
|
T38_ = nosfileExists(outFile);
|
||
|
|
if (!T38_) goto LA39_;
|
||
|
|
nimln_(76, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
unsureAsgnRef((void**) (&(*Result).Field0), readFile__stdZsyncio_472(outFile));
|
||
|
|
nimln_(77, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T43_;
|
||
|
|
NIM_BOOL T46_;
|
||
|
|
T43_ = (NIM_BOOL)0;
|
||
|
|
T43_ = shouldRemoveTmp__nimblepkgZoptions_2183(options, outFile);
|
||
|
|
if (!T43_) goto LA44_;
|
||
|
|
nimln_(78, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T46_ = (NIM_BOOL)0;
|
||
|
|
T46_ = nostryRemoveFile(outFile);
|
||
|
|
(void)(T46_);
|
||
|
|
}
|
||
|
|
LA44_: ;
|
||
|
|
}
|
||
|
|
LA39_: ;
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, writeExecutionOutput__nimblepkgZnimscriptwrapper_40)(NimStringDesc* data) {
|
||
|
|
nimfr_("writeExecutionOutput", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(36, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
display__nimblepkgZcli_156(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_25), data, ((tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA) 4), ((tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ) 2));
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getIniFile__nimblepkgZnimscriptwrapper_76)(NimStringDesc* scriptName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options) {
|
||
|
|
NimStringDesc* result;
|
||
|
|
NimStringDesc* nimsFile;
|
||
|
|
NIM_BOOL isIniResultCached;
|
||
|
|
NIM_BOOL T1_;
|
||
|
|
tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T3_;
|
||
|
|
tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T4_;
|
||
|
|
nimfr_("getIniFile", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = NIM_NIL;
|
||
|
|
nimln_(124, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimsFile = getNimsFile__nimblepkgZnimscriptwrapper_63(scriptName, options);
|
||
|
|
nimln_(126, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = noschangeFileExt(nimsFile, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_13));
|
||
|
|
nimln_(129, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(130, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T1_ = (NIM_BOOL)0;
|
||
|
|
T1_ = nosfileExists(result);
|
||
|
|
if (!(T1_)) goto LA2_;
|
||
|
|
nimln_(131, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T3_ = nosgetLastModificationTime(scriptName);
|
||
|
|
nimln_(130, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T4_ = nosgetLastModificationTime(result);
|
||
|
|
T1_ = ntLtTime(T3_, T4_);
|
||
|
|
LA2_: ;
|
||
|
|
isIniResultCached = T1_;
|
||
|
|
nimln_(133, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
tyTuple__f6XOx6Jh9bkmpGISrrHtyAg T9_;
|
||
|
|
NimStringDesc* output;
|
||
|
|
NI exitCode;
|
||
|
|
NimStringDesc* stdout_1;
|
||
|
|
if (!!(isIniResultCached)) goto LA7_;
|
||
|
|
nimln_(134, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)(&T9_), sizeof(tyTuple__f6XOx6Jh9bkmpGISrrHtyAg));
|
||
|
|
execNimscript__nimblepkgZnimscriptwrapper_44(scriptName, nimsFile, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_15), options, NIM_FALSE, (&T9_));
|
||
|
|
output = NIM_NIL;
|
||
|
|
output = T9_.Field0;
|
||
|
|
exitCode = (NI)0;
|
||
|
|
exitCode = T9_.Field1;
|
||
|
|
stdout_1 = NIM_NIL;
|
||
|
|
stdout_1 = T9_.Field2;
|
||
|
|
nimln_(138, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T12_;
|
||
|
|
T12_ = (NIM_BOOL)0;
|
||
|
|
T12_ = (exitCode == ((NI) 0));
|
||
|
|
if (!(T12_)) goto LA13_;
|
||
|
|
T12_ = !(((output ? output->Sup.len : 0) == ((NI) 0)));
|
||
|
|
LA13_: ;
|
||
|
|
if (!T12_) goto LA14_;
|
||
|
|
nimln_(139, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
writeFile__stdZsyncio_477(result, output);
|
||
|
|
nimln_(140, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
writeExecutionOutput__nimblepkgZnimscriptwrapper_40(stdout_1);
|
||
|
|
}
|
||
|
|
goto LA10_;
|
||
|
|
LA14_: ;
|
||
|
|
{
|
||
|
|
NimStringDesc* T17_;
|
||
|
|
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ* T18_;
|
||
|
|
nimln_(142, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T17_ = NIM_NIL;
|
||
|
|
T17_ = rawNewString((stdout_1 ? stdout_1->Sup.len : 0) + 22);
|
||
|
|
appendString(T17_, stdout_1);
|
||
|
|
appendString(T17_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_26));
|
||
|
|
T18_ = NIM_NIL;
|
||
|
|
T18_ = nimbleError__nimblepkgZcommon_26(T17_, ((NimStringDesc*) NIM_NIL), ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) NIM_NIL));
|
||
|
|
raiseExceptionEx((Exception*)T18_, "NimbleError", "getIniFile", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim", 142);
|
||
|
|
}
|
||
|
|
LA10_: ;
|
||
|
|
}
|
||
|
|
LA7_: ;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, X5BX5D___pureZjson_3069)(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* node, NimStringDesc* name) {
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* result;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** T9_;
|
||
|
|
nimfr_("[]", "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
result = NIM_NIL;
|
||
|
|
nimln_(512, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
{
|
||
|
|
if (!!(!((node == 0)))) goto LA3_;
|
||
|
|
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_36));
|
||
|
|
}
|
||
|
|
LA3_: ;
|
||
|
|
nimln_(513, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
{
|
||
|
|
if (!!(((*node).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 5)))) goto LA7_;
|
||
|
|
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_37));
|
||
|
|
}
|
||
|
|
LA7_: ;
|
||
|
|
nimln_(516, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
if (!(((32 &((NU8)1<<((NU)((*node).kind)&7U)))!=0))) { raiseFieldError2(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_38), reprDiscriminant(((NI)(*node).kind) + (NI)IL64(0), (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))); }
|
||
|
|
T9_ = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
|
||
|
|
T9_ = X5BX5D___pureZjson_2663((&(*node)._kind_6.fields), name);
|
||
|
|
result = (*T9_);
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(NI, minuspercent___system_716)(NI x, NI y) {
|
||
|
|
NI result;
|
||
|
|
nimfr_("-%", "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
|
||
|
|
result = (NI)0;
|
||
|
|
nimln_(414, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
|
||
|
|
nimln_(418, "/home/yyoncho/Sources/nim/Nim/lib/system/arithmetics.nim");
|
||
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
nimfr_("<%", "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
|
||
|
|
result = (NIM_BOOL)0;
|
||
|
|
nimln_(186, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
|
||
|
|
nimln_(188, "/home/yyoncho/Sources/nim/Nim/lib/system/comparisons.nim");
|
||
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(void, rtlAddZCT__system_5903)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
||
|
|
nimfr_("rtlAddZCT", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
nimln_(243, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
addZCT__system_5854((&gch__system_5793.zct), c);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
static N_INLINE(void, decRef__system_5905)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
||
|
|
nimfr_("decRef", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
nimln_(248, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
(*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8));
|
||
|
|
nimln_(249, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T3_;
|
||
|
|
T3_ = (NIM_BOOL)0;
|
||
|
|
T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8));
|
||
|
|
if (!T3_) goto LA4_;
|
||
|
|
nimln_(250, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
rtlAddZCT__system_5903(c);
|
||
|
|
}
|
||
|
|
LA4_: ;
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__system_5860)(void* usr) {
|
||
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
|
||
|
|
NI T1_;
|
||
|
|
nimfr_("usrToCell", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
||
|
|
nimln_(177, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
T1_ = (NI)0;
|
||
|
|
T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16));
|
||
|
|
result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
|
||
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
||
|
|
nimfr_("nimGCunrefNoCycle", "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
nimln_(276, "/home/yyoncho/Sources/nim/Nim/lib/system/gc.nim");
|
||
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
||
|
|
T1_ = usrToCell__system_5860(p);
|
||
|
|
decRef__system_5905(T1_);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
static N_INLINE(NI, len__pureZjson_2165)(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg* t) {
|
||
|
|
NI result;
|
||
|
|
nimfr_("len", "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
result = (NI)0;
|
||
|
|
nimln_(1508, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
result = (*t).counter;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
static N_INLINE(NIM_BOOL, isFilled__pureZcollectionsZtables_31)(NI hcode) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
nimfr_("isFilled", "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/hashcommon.nim");
|
||
|
|
result = (NIM_BOOL)0;
|
||
|
|
nimln_(26, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/hashcommon.nim");
|
||
|
|
result = !((hcode == ((NI) 0)));
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execScript__nimblepkgZnimscriptwrapper_94)(NimStringDesc* scriptName, NimStringDesc* actionName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, NIM_BOOL isHook, tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA* Result) {
|
||
|
|
NimStringDesc* nimsFile;
|
||
|
|
tyTuple__f6XOx6Jh9bkmpGISrrHtyAg T1_;
|
||
|
|
NimStringDesc* output;
|
||
|
|
NI exitCode;
|
||
|
|
NimStringDesc* stdout_1;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* j;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T17_;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T18_;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T76_;
|
||
|
|
nimfr_("execScript", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
(*Result).success = 0;
|
||
|
|
unsureAsgnRef((void**)&(*Result).command, NIM_NIL);
|
||
|
|
unsureAsgnRef((void**)&(*Result).arguments, NIM_NIL);
|
||
|
|
unsureAsgnRef((void**)&(*Result).flags, NIM_NIL);
|
||
|
|
(*Result).retVal = 0;
|
||
|
|
unsureAsgnRef((void**)&(*Result).stdout_0, NIM_NIL);
|
||
|
|
nimln_(147, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimsFile = getNimsFile__nimblepkgZnimscriptwrapper_63(scriptName, options);
|
||
|
|
nimln_(149, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(150, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)(&T1_), sizeof(tyTuple__f6XOx6Jh9bkmpGISrrHtyAg));
|
||
|
|
execNimscript__nimblepkgZnimscriptwrapper_44(scriptName, nimsFile, actionName, options, isHook, (&T1_));
|
||
|
|
output = NIM_NIL;
|
||
|
|
output = T1_.Field0;
|
||
|
|
exitCode = (NI)0;
|
||
|
|
exitCode = T1_.Field1;
|
||
|
|
stdout_1 = NIM_NIL;
|
||
|
|
stdout_1 = T1_.Field2;
|
||
|
|
nimln_(154, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NimStringDesc* errMsg;
|
||
|
|
tyObject_NimbleError__6rmfqzY5PO7blXdlEs8gjQ* T11_;
|
||
|
|
if (!!((exitCode == ((NI) 0)))) goto LA4_;
|
||
|
|
nimln_(155, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(156, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
if (!!(((stdout_1 ? stdout_1->Sup.len : 0) == ((NI) 0)))) goto LA8_;
|
||
|
|
errMsg = stdout_1;
|
||
|
|
}
|
||
|
|
goto LA6_;
|
||
|
|
LA8_: ;
|
||
|
|
{
|
||
|
|
errMsg = copyString(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_31));
|
||
|
|
}
|
||
|
|
LA6_: ;
|
||
|
|
nimln_(160, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T11_ = NIM_NIL;
|
||
|
|
T11_ = nimbleError__nimblepkgZcommon_26(errMsg, ((NimStringDesc*) NIM_NIL), ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) NIM_NIL));
|
||
|
|
raiseExceptionEx((Exception*)T11_, "NimbleError", "execScript", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim", 160);
|
||
|
|
}
|
||
|
|
LA4_: ;
|
||
|
|
nimln_(163, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(164, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
if (!!(((output ? output->Sup.len : 0) == ((NI) 0)))) goto LA14_;
|
||
|
|
nimln_(165, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
j = parseJson__pureZjson_5292(output, NIM_FALSE, NIM_FALSE);
|
||
|
|
}
|
||
|
|
goto LA12_;
|
||
|
|
LA14_: ;
|
||
|
|
{
|
||
|
|
nimln_(167, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
j = parseJson__pureZjson_5292(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_32), NIM_FALSE, NIM_FALSE);
|
||
|
|
}
|
||
|
|
LA12_: ;
|
||
|
|
nimln_(169, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
unsureAsgnRef((void**) (&(*Result).flags), newTable__pureZhttpcore_120(((NI) 32)));
|
||
|
|
nimln_(170, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T17_ = NIM_NIL;
|
||
|
|
T17_ = X7BX7D___pureZjson_3602(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_33));
|
||
|
|
(*Result).success = getBool__pureZjson_185(T17_, NIM_FALSE);
|
||
|
|
nimln_(171, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T18_ = NIM_NIL;
|
||
|
|
T18_ = X7BX7D___pureZjson_3602(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_34));
|
||
|
|
unsureAsgnRef((void**) (&(*Result).command), getStr__pureZjson_144(T18_, ((NimStringDesc*) NIM_NIL)));
|
||
|
|
nimln_(172, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T21_;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* T24_;
|
||
|
|
NimStringDesc* T25_;
|
||
|
|
NI T26_;
|
||
|
|
NimStringDesc* T27_;
|
||
|
|
T21_ = (NIM_BOOL)0;
|
||
|
|
T21_ = contains__pureZjson_3244(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_35));
|
||
|
|
if (!T21_) goto LA22_;
|
||
|
|
nimln_(173, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T24_ = NIM_NIL;
|
||
|
|
T24_ = X5BX5D___pureZjson_3069(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_35));
|
||
|
|
T25_ = NIM_NIL;
|
||
|
|
T25_ = getStr__pureZjson_144(T24_, ((NimStringDesc*) NIM_NIL));
|
||
|
|
unsureAsgnRef((void**) (&(*Result).arguments), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*Result).arguments), (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_)));
|
||
|
|
T26_ = (*Result).arguments->Sup.len++;
|
||
|
|
T27_ = NIM_NIL;
|
||
|
|
T27_ = (*Result).arguments->data[T26_]; (*Result).arguments->data[T26_] = copyStringRC1(T25_);
|
||
|
|
if (T27_) nimGCunrefNoCycle(T27_);
|
||
|
|
}
|
||
|
|
LA22_: ;
|
||
|
|
nimln_(174, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T30_;
|
||
|
|
T30_ = (NIM_BOOL)0;
|
||
|
|
T30_ = contains__pureZjson_3244(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_39));
|
||
|
|
if (!T30_) goto LA31_;
|
||
|
|
{
|
||
|
|
NimStringDesc* flag;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* vals;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* colontmp_;
|
||
|
|
flag = NIM_NIL;
|
||
|
|
vals = NIM_NIL;
|
||
|
|
colontmp_ = NIM_NIL;
|
||
|
|
nimln_(175, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
colontmp_ = X5BX5D___pureZjson_3069(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_39));
|
||
|
|
nimln_(836, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
{
|
||
|
|
NimStringDesc* T38_;
|
||
|
|
if (!!(((*colontmp_).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 5)))) goto LA36_;
|
||
|
|
T38_ = NIM_NIL;
|
||
|
|
T38_ = rawNewString((reprEnum((NI)(*colontmp_).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)(*colontmp_).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 125);
|
||
|
|
appendString(T38_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_40));
|
||
|
|
appendString(T38_, reprEnum((NI)(*colontmp_).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)));
|
||
|
|
failedAssertImpl__stdZassertions_56(T38_);
|
||
|
|
}
|
||
|
|
LA36_: ;
|
||
|
|
{
|
||
|
|
NimStringDesc* key;
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* val;
|
||
|
|
tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg colontmp__2;
|
||
|
|
NI L;
|
||
|
|
key = NIM_NIL;
|
||
|
|
val = NIM_NIL;
|
||
|
|
nimZeroMem((void*)(&colontmp__2), sizeof(tyObject_OrderedTable__ZZvSdVkA2s2sIyifu4cpkg));
|
||
|
|
nimln_(837, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
if (!(((32 &((NU8)1<<((NU)((*colontmp_).kind)&7U)))!=0))) { raiseFieldError2(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_38), reprDiscriminant(((NI)(*colontmp_).kind) + (NI)IL64(0), (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))); }
|
||
|
|
colontmp__2.data = (*colontmp_)._kind_6.fields.data;
|
||
|
|
colontmp__2.counter = (*colontmp_)._kind_6.fields.counter;
|
||
|
|
colontmp__2.first = (*colontmp_)._kind_6.fields.first;
|
||
|
|
colontmp__2.last = (*colontmp_)._kind_6.fields.last;
|
||
|
|
nimln_(1716, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
L = len__pureZjson_2165((&colontmp__2));
|
||
|
|
nimln_(1717, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
{
|
||
|
|
NI h;
|
||
|
|
nimln_(1297, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
if (!(((NI) 0) < colontmp__2.counter)) goto LA42_;
|
||
|
|
nimln_(1298, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
h = colontmp__2.first;
|
||
|
|
{
|
||
|
|
nimln_(1299, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
while (1) {
|
||
|
|
NI nxt;
|
||
|
|
if (!(((NI) 0) <= h)) goto LA45;
|
||
|
|
nimln_(1300, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
if (h < 0 || h >= (colontmp__2.data ? colontmp__2.data->Sup.len : 0)){ raiseIndexError2(h,(colontmp__2.data ? colontmp__2.data->Sup.len : 0)-1); }
|
||
|
|
nxt = colontmp__2.data->data[h].Field1;
|
||
|
|
nimln_(1301, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
{
|
||
|
|
NIM_BOOL T48_;
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T51_;
|
||
|
|
if (h < 0 || h >= (colontmp__2.data ? colontmp__2.data->Sup.len : 0)){ raiseIndexError2(h,(colontmp__2.data ? colontmp__2.data->Sup.len : 0)-1); }
|
||
|
|
T48_ = (NIM_BOOL)0;
|
||
|
|
T48_ = isFilled__pureZcollectionsZtables_31(colontmp__2.data->data[h].Field0);
|
||
|
|
if (!T48_) goto LA49_;
|
||
|
|
nimln_(837, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
if (h < 0 || h >= (colontmp__2.data ? colontmp__2.data->Sup.len : 0)){ raiseIndexError2(h,(colontmp__2.data ? colontmp__2.data->Sup.len : 0)-1); }
|
||
|
|
key = colontmp__2.data->data[h].Field2;
|
||
|
|
if (h < 0 || h >= (colontmp__2.data ? colontmp__2.data->Sup.len : 0)){ raiseIndexError2(h,(colontmp__2.data ? colontmp__2.data->Sup.len : 0)-1); }
|
||
|
|
val = colontmp__2.data->data[h].Field3;
|
||
|
|
nimln_(175, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
flag = key;
|
||
|
|
vals = val;
|
||
|
|
T51_ = NIM_NIL;
|
||
|
|
T51_ = NIM_NIL;
|
||
|
|
X5BX5Deq___pureZhttpcore_2122((*Result).flags, flag, T51_);
|
||
|
|
{
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* val_2;
|
||
|
|
val_2 = NIM_NIL;
|
||
|
|
nimln_(823, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
{
|
||
|
|
NimStringDesc* T57_;
|
||
|
|
if (!!(((*vals).kind == ((tyEnum_JsonNodeKind__RUngo7nCHe6O8aBGIcrhtg) 6)))) goto LA55_;
|
||
|
|
T57_ = NIM_NIL;
|
||
|
|
T57_ = rawNewString((reprEnum((NI)(*vals).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)) ? reprEnum((NI)(*vals).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))->Sup.len : 0) + 124);
|
||
|
|
appendString(T57_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_41));
|
||
|
|
appendString(T57_, reprEnum((NI)(*vals).kind, (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_)));
|
||
|
|
failedAssertImpl__stdZassertions_56(T57_);
|
||
|
|
}
|
||
|
|
LA55_: ;
|
||
|
|
{
|
||
|
|
tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q** i;
|
||
|
|
tySequence__oLpBKXzW3hF9aCVMo5EymfQ* colontmp__3;
|
||
|
|
NI i_2;
|
||
|
|
NI L_2;
|
||
|
|
NI T59_;
|
||
|
|
i = (tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q**)0;
|
||
|
|
colontmp__3 = NIM_NIL;
|
||
|
|
nimln_(824, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
if (!(((64 &((NU8)1<<((NU)((*vals).kind)&7U)))!=0))) { raiseFieldError2(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_42), reprDiscriminant(((NI)(*vals).kind) + (NI)IL64(0), (&NTIjsonnodekind__RUngo7nCHe6O8aBGIcrhtg_))); }
|
||
|
|
colontmp__3 = (*vals)._kind_7.elems;
|
||
|
|
nimln_(238, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
i_2 = ((NI) 0);
|
||
|
|
nimln_(239, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
T59_ = (colontmp__3 ? colontmp__3->Sup.len : 0);
|
||
|
|
L_2 = T59_;
|
||
|
|
{
|
||
|
|
nimln_(240, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
while (1) {
|
||
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ** T62_;
|
||
|
|
NimStringDesc* T63_;
|
||
|
|
NI T64_;
|
||
|
|
NimStringDesc* T65_;
|
||
|
|
NI TM__PUcv9cmWFUbRqCh9ctEyhSMQ_43;
|
||
|
|
if (!(i_2 < L_2)) goto LA61;
|
||
|
|
nimln_(824, "/home/yyoncho/Sources/nim/Nim/lib/pure/json.nim");
|
||
|
|
if (i_2 < 0 || i_2 >= (colontmp__3 ? colontmp__3->Sup.len : 0)){ raiseIndexError2(i_2,(colontmp__3 ? colontmp__3->Sup.len : 0)-1); }
|
||
|
|
i = &colontmp__3->data[i_2];
|
||
|
|
nimln_(177, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
val_2 = (*i);
|
||
|
|
nimln_(178, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T62_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ**)0;
|
||
|
|
T62_ = X5BX5D___pureZhttpcore_1883((*Result).flags, flag);
|
||
|
|
nimln_(177, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T63_ = NIM_NIL;
|
||
|
|
T63_ = getStr__pureZjson_144(val_2, ((NimStringDesc*) NIM_NIL));
|
||
|
|
unsureAsgnRef((void**) (&(*T62_)), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*T62_)), (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_)));
|
||
|
|
T64_ = (*T62_)->Sup.len++;
|
||
|
|
T65_ = NIM_NIL;
|
||
|
|
T65_ = (*T62_)->data[T64_]; (*T62_)->data[T64_] = copyStringRC1(T63_);
|
||
|
|
if (T65_) nimGCunrefNoCycle(T65_);
|
||
|
|
nimln_(242, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_43)) { raiseOverflow(); };
|
||
|
|
i_2 = (NI)(TM__PUcv9cmWFUbRqCh9ctEyhSMQ_43);
|
||
|
|
nimln_(243, "/home/yyoncho/Sources/nim/Nim/lib/system/iterators.nim");
|
||
|
|
{
|
||
|
|
NI T68_;
|
||
|
|
T68_ = (colontmp__3 ? colontmp__3->Sup.len : 0);
|
||
|
|
if (!!((T68_ == L_2))) goto LA69_;
|
||
|
|
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_22));
|
||
|
|
}
|
||
|
|
LA69_: ;
|
||
|
|
} LA61: ;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
nimln_(1719, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
{
|
||
|
|
NI T73_;
|
||
|
|
T73_ = (NI)0;
|
||
|
|
T73_ = len__pureZjson_2165((&colontmp__2));
|
||
|
|
if (!!((T73_ == L))) goto LA74_;
|
||
|
|
failedAssertImpl__stdZassertions_56(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_44));
|
||
|
|
}
|
||
|
|
LA74_: ;
|
||
|
|
}
|
||
|
|
LA49_: ;
|
||
|
|
nimln_(1303, "/home/yyoncho/Sources/nim/Nim/lib/pure/collections/tables.nim");
|
||
|
|
h = nxt;
|
||
|
|
} LA45: ;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
LA42_: ;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
LA31_: ;
|
||
|
|
nimln_(179, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T76_ = NIM_NIL;
|
||
|
|
T76_ = X7BX7D___pureZjson_3602(j, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_45));
|
||
|
|
(*Result).retVal = getBool__pureZjson_185(T76_, NIM_FALSE);
|
||
|
|
nimln_(181, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
writeExecutionOutput__nimblepkgZnimscriptwrapper_40(stdout_1);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execHook__nimblepkgZnimscriptwrapper_255)(NimStringDesc* scriptName, NimStringDesc* actionName, NIM_BOOL before, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA* Result) {
|
||
|
|
NimStringDesc* hookName;
|
||
|
|
tyArray__Re75IspeoxXy2oCZHwcRrA T10_;
|
||
|
|
NimStringDesc* T11_;
|
||
|
|
nimfr_("execHook", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(199, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(200, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{
|
||
|
|
NimStringDesc* T5_;
|
||
|
|
NimStringDesc* T6_;
|
||
|
|
if (!before) goto LA3_;
|
||
|
|
T5_ = NIM_NIL;
|
||
|
|
T6_ = NIM_NIL;
|
||
|
|
T6_ = nsuToLowerAsciiStr(actionName);
|
||
|
|
T5_ = rawNewString((T6_ ? T6_->Sup.len : 0) + 6);
|
||
|
|
appendString(T5_, T6_);
|
||
|
|
appendString(T5_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_27));
|
||
|
|
hookName = T5_;
|
||
|
|
}
|
||
|
|
goto LA1_;
|
||
|
|
LA3_: ;
|
||
|
|
{
|
||
|
|
NimStringDesc* T8_;
|
||
|
|
NimStringDesc* T9_;
|
||
|
|
nimln_(201, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
T8_ = NIM_NIL;
|
||
|
|
T9_ = NIM_NIL;
|
||
|
|
T9_ = nsuToLowerAsciiStr(actionName);
|
||
|
|
T8_ = rawNewString((T9_ ? T9_->Sup.len : 0) + 5);
|
||
|
|
appendString(T8_, T9_);
|
||
|
|
appendString(T8_, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_28));
|
||
|
|
hookName = T8_;
|
||
|
|
}
|
||
|
|
LA1_: ;
|
||
|
|
nimln_(202, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)T10_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
|
||
|
|
T10_[0] = copyString(hookName);
|
||
|
|
T10_[1] = copyString(scriptName);
|
||
|
|
T11_ = NIM_NIL;
|
||
|
|
T11_ = nsuFormatOpenArray(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_30), T10_, 2);
|
||
|
|
display__nimblepkgZcli_156(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_29), T11_, ((tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA) 4), ((tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ) 2));
|
||
|
|
nimln_(205, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
execScript__nimblepkgZnimscriptwrapper_94(scriptName, hookName, options, NIM_TRUE, Result);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, listTasks__nimblepkgZnimscriptwrapper_274)(NimStringDesc* scriptName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options) {
|
||
|
|
tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA T1_;
|
||
|
|
nimfr_("listTasks", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(212, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)(&T1_), sizeof(tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA));
|
||
|
|
execScript__nimblepkgZnimscriptwrapper_94(scriptName, ((NimStringDesc*) NIM_NIL), options, NIM_FALSE, (&T1_));
|
||
|
|
(void)(T1_);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(void, execTask__nimblepkgZnimscriptwrapper_240)(NimStringDesc* scriptName, NimStringDesc* taskName, tyObject_Options__LR5gStV09bAFaOqz9agkkZxQ* options, tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA* Result) {
|
||
|
|
tyArray__Re75IspeoxXy2oCZHwcRrA T1_;
|
||
|
|
NimStringDesc* T2_;
|
||
|
|
nimfr_("execTask", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimln_(188, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
nimZeroMem((void*)T1_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
|
||
|
|
T1_[0] = copyString(taskName);
|
||
|
|
T1_[1] = copyString(scriptName);
|
||
|
|
T2_ = NIM_NIL;
|
||
|
|
T2_ = nsuFormatOpenArray(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_47), T1_, 2);
|
||
|
|
display__nimblepkgZcli_156(((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_46), T2_, ((tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA) 4), ((tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ) 3));
|
||
|
|
nimln_(191, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
execScript__nimblepkgZnimscriptwrapper_94(scriptName, taskName, options, NIM_FALSE, Result);
|
||
|
|
popFrame();
|
||
|
|
}
|
||
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasTaskRequestedCommand__nimble_22175)(tyObject_ExecutionResult__Zdd9cqIzKOwKqMMP9bfCl8PA* execResult) {
|
||
|
|
NIM_BOOL result;
|
||
|
|
nimfr_("hasTaskRequestedCommand", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
{ result = (NIM_BOOL)0;
|
||
|
|
nimln_(209, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/nimscriptwrapper.nim");
|
||
|
|
result = !(eqStrings((*execResult).command, ((NimStringDesc*) &TM__PUcv9cmWFUbRqCh9ctEyhSMQ_48)));
|
||
|
|
goto BeforeRet_;
|
||
|
|
}BeforeRet_: ;
|
||
|
|
popFrame();
|
||
|
|
return result;
|
||
|
|
}
|