/ nimble-linux / @mnimblepkg@sinit.nim.c
@mnimblepkg@sinit.nim.c
1 /* Generated by Nim Compiler v1.6.11 */ 2 #define NIM_INTBITS 64 3 4 #include "nimbase.h" 5 #include <string.h> 6 #undef LANGUAGE_C 7 #undef MIPSEB 8 #undef MIPSEL 9 #undef PPC 10 #undef R3000 11 #undef R4000 12 #undef i386 13 #undef linux 14 #undef mips 15 #undef near 16 #undef far 17 #undef powerpc 18 #undef unix 19 # define nimfr_(proc, file) \ 20 TFrame FR_; \ 21 FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); 22 23 # define nimfrs_(proc, file, slots, length) \ 24 struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ 25 FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); 26 27 # define nimln_(n, file) \ 28 FR_.line = n; FR_.filename = file; 29 typedef struct tyTuple__m4dgv18KkMuujpHOVANHbw tyTuple__m4dgv18KkMuujpHOVANHbw; 30 typedef struct NimStringDesc NimStringDesc; 31 typedef struct TGenericSeq TGenericSeq; 32 struct TGenericSeq { 33 NI len; 34 NI reserved; 35 }; 36 struct NimStringDesc { 37 TGenericSeq Sup; 38 NIM_CHAR data[SEQ_DECL_SIZE]; 39 }; 40 struct tyTuple__m4dgv18KkMuujpHOVANHbw { 41 NimStringDesc* Field0; 42 NimStringDesc* Field1; 43 NimStringDesc* Field2; 44 NimStringDesc* Field3; 45 NimStringDesc* Field4; 46 NimStringDesc* Field5; 47 NimStringDesc* Field6; 48 NimStringDesc* Field7; 49 }; 50 typedef NU8 tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA; 51 typedef NU8 tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ; 52 typedef NimStringDesc* tyArray__DLxB9cOndPvLDyky9bY9ccM3g[7]; 53 N_LIB_PRIVATE N_NIMCALL(void, createDirD__nimblepkgZtools_94)(NimStringDesc* dir); 54 static N_INLINE(NimStringDesc*, slash___pureZos_121)(NimStringDesc* head, NimStringDesc* tail); 55 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosjoinPath)(NimStringDesc* head, NimStringDesc* tail); 56 static N_INLINE(void, nimFrame)(TFrame* s); 57 N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); 58 static N_INLINE(void, popFrame)(void); 59 static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b); 60 static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size); 61 static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size); 62 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext); 63 N_LIB_PRIVATE N_NIMCALL(void, writeExampleIfNonExistent__nimblepkgZinit_22)(NimStringDesc* file, NimStringDesc* content); 64 N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosfileExists)(NimStringDesc* filename); 65 N_LIB_PRIVATE N_NIMCALL(void, writeFile__systemZio_477)(NimStringDesc* filename, NimStringDesc* content); 66 N_LIB_PRIVATE N_NIMCALL(void, display__nimblepkgZcli_156)(NimStringDesc* category, NimStringDesc* msg, tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA displayType, tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ priority); 67 static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src); 68 static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size); 69 static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size); 70 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space); 71 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a); 72 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen); 73 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosaddFileExt)(NimStringDesc* filename, NimStringDesc* ext); 74 N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); 75 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src); 76 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0); 77 static N_INLINE(void, nimZeroMem)(void* p, NI size); 78 static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size); 79 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuEscape)(NimStringDesc* s, NimStringDesc* prefix, NimStringDesc* suffix); 80 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s, NimStringDesc* sub, NimStringDesc* by); 81 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_2, "binary", 6); 82 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_3, "library", 7); 83 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_4, "hybrid", 6); 84 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_5, "nim", 3); 85 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_6, "Info:", 5); 86 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_7, "File ", 5); 87 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_8, " already exists, did not write example code", 43); 88 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_9, "# This is just an example to get you started. A typical binary package\012# uses this file as the main entry point of the application.\012\012when isMainModule:\012 echo(\"Hello, World!\")\012", 176); 89 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_10, "bin = @[\"$1\"]\012", 24); 90 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_11, "# This is just an example to get you started. A typical library package\012# exports the main API in this file. Note that you cannot rename this file\012# but you can remove it if you wish.\012\012proc add*(x, y: int): int =\012 ## Adds two numbers together.\012 return x + y\012", 260); 91 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_12, "submodule", 9); 92 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_13, "# This is just an example to get you started. Users of your library will\012# import this file by writing ``import $1/submodule``. Feel free to rename or\012# remove this file altogether. You may create additional modules alongside\012# this file as required.\012\012type\012 Submodule* = object\012 name*: string\012\012proc initSubmodule*(): Submodule =\012 ## Initialises a new ``Submodule`` object.\012 Submodule(name: \"Anonymous\")\012", 409); 93 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_14, "# This is just an example to get you started. A typical hybrid package\012# uses this file as the main entry point of the application.\012\012import $1pkg/submodule\012\012when isMainModule:\012 echo(getWelcomeMessage())\012", 204); 94 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_15, "pkg", 3); 95 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_16, "# This is just an example to get you started. Users of your hybrid library will\012# import this file by writing ``import $1pkg/submodule``. Feel free to rename or\012# remove this file altogether. You may create additional modules alongside\012# this file as required.\012\012proc getWelcomeMessage*(): string = \"Hello, World!\"\012", 314); 96 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_17, "installExt = @[\"nim\"]\012", 25); 97 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_18, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim(105, 12) `false` Invalid package type specified.", 104); 98 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_19, "tests", 5); 99 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_20, "config", 6); 100 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_21, "nims", 4); 101 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_22, "switch(\"path\", \"$$projectDir/../$#\")", 36); 102 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_23, "test1", 5); 103 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_24, "# This is just an example to get you started. You may wish to put all of your\012# tests into a single file, or separate them into multiple `test1`, `test2`\012# etc. files (better names are recommended, just make sure the name starts with\012# the letter \'t\').\012#\012# To run these tests, simply execute `nimble test`.\012\012import unittest\012\012import $1\012test \"can add\":\012 check add(5, 5) == 10\012", 375); 104 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_25, "# This is just an example to get you started. You may wish to put all of your\012# tests into a single file, or separate them into multiple `test1`, `test2`\012# etc. files (better names are recommended, just make sure the name starts with\012# the letter \'t\').\012#\012# To run these tests, simply execute `nimble test`.\012\012import unittest\012\012import $1pkg/submodule\012test \"correct welcome\":\012 check getWelcomeMessage() == \"Hello, World!\"\012", 419); 105 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_26, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim(155, 12) `false` Invalid package type specified.", 104); 106 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_27, "nimble", 6); 107 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_28, "# Package\012\012version = $#\012author = \"$#\"\012description = \"$#\"\012license = $#\012srcDir = $#\012$#\012\012# Dependencies\012\012requires \"nim >= $#\"\012", 151); 108 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_29, "\"", 1); 109 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_30, "\\\"", 2); 110 STRING_LITERAL(TM__74Ly1Pltw9bii2XReJC59cDg_31, "Nimble file created successfully", 32); 111 extern TFrame* framePtr__system_2564; 112 extern TFrame* framePtr__system_2564; 113 extern TFrame* framePtr__system_2564; 114 extern TFrame* framePtr__system_2564; 115 extern TFrame* framePtr__system_2564; 116 extern TFrame* framePtr__system_2564; 117 static N_INLINE(void, nimFrame)(TFrame* s) { 118 { 119 if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; 120 (*s).calldepth = ((NI16) 0); 121 } 122 goto LA1_; 123 LA3_: ; 124 { 125 (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); 126 } 127 LA1_: ; 128 (*s).prev = framePtr__system_2564; 129 framePtr__system_2564 = s; 130 { 131 if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; 132 callDepthLimitReached__system_2997(); 133 } 134 LA8_: ; 135 } 136 static N_INLINE(void, popFrame)(void) { 137 framePtr__system_2564 = (*framePtr__system_2564).prev; 138 } 139 static N_INLINE(NimStringDesc*, slash___pureZos_121)(NimStringDesc* head, NimStringDesc* tail) { 140 NimStringDesc* result; 141 nimfr_("/", "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim"); 142 result = NIM_NIL; 143 nimln_(234, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/pure/os.nim"); 144 result = nosjoinPath(head, tail); 145 popFrame(); 146 return result; 147 } 148 static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { 149 int result; 150 result = (int)0; 151 result = memcmp(a, b, ((size_t) (size))); 152 return result; 153 } 154 static N_INLINE(NIM_BOOL, equalMem__system_1735)(void* a, void* b, NI size) { 155 NIM_BOOL result; 156 int T1_; 157 result = (NIM_BOOL)0; 158 T1_ = (int)0; 159 T1_ = nimCmpMem(a, b, size); 160 result = (T1_ == ((NI32) 0)); 161 return result; 162 } 163 static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { 164 NIM_BOOL result; 165 NI alen; 166 NI blen; 167 nimfr_("eqStrings", "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 168 { result = (NIM_BOOL)0; 169 nimln_(27, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 170 alen = (a ? a->Sup.len : 0); 171 nimln_(28, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 172 blen = (b ? b->Sup.len : 0); 173 nimln_(29, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 174 { 175 if (!(alen == blen)) goto LA3_; 176 nimln_(30, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 177 { 178 if (!(alen == ((NI) 0))) goto LA7_; 179 result = NIM_TRUE; 180 goto BeforeRet_; 181 } 182 LA7_: ; 183 nimln_(31, "/home/yyoncho/.choosenim/toolchains/nim-#version-1-6/lib/system/strmantle.nim"); 184 result = equalMem__system_1735(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); 185 goto BeforeRet_; 186 } 187 LA3_: ; 188 }BeforeRet_: ; 189 popFrame(); 190 return result; 191 } 192 static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { 193 void* T1_; 194 T1_ = (void*)0; 195 T1_ = memcpy(dest, source, ((size_t) (size))); 196 } 197 static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size) { 198 nimCopyMem(dest, source, size); 199 } 200 static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) { 201 { 202 if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_; 203 copyMem__system_1727(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1))))); 204 (*dest).Sup.len += (*src).Sup.len; 205 } 206 LA3_: ; 207 } 208 N_LIB_PRIVATE N_NIMCALL(void, writeExampleIfNonExistent__nimblepkgZinit_22)(NimStringDesc* file, NimStringDesc* content) { 209 nimfr_("writeExampleIfNonExistent", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 210 nimln_(17, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 211 { 212 NIM_BOOL T3_; 213 T3_ = (NIM_BOOL)0; 214 T3_ = nosfileExists(file); 215 if (!!(T3_)) goto LA4_; 216 nimln_(18, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 217 writeFile__systemZio_477(file, content); 218 } 219 goto LA1_; 220 LA4_: ; 221 { 222 NimStringDesc* T7_; 223 nimln_(20, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 224 T7_ = NIM_NIL; 225 T7_ = rawNewString((file ? file->Sup.len : 0) + 48); 226 appendString(T7_, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_7)); 227 appendString(T7_, file); 228 appendString(T7_, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_8)); 229 display__nimblepkgZcli_156(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_6), T7_, ((tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA) 4), ((tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ) 3)); 230 } 231 LA1_: ; 232 popFrame(); 233 } 234 static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) { 235 void* T1_; 236 T1_ = (void*)0; 237 T1_ = memset(a, v, ((size_t) (size))); 238 } 239 static N_INLINE(void, nimZeroMem)(void* p, NI size) { 240 nimSetMem__systemZmemory_7(p, ((int) 0), size); 241 } 242 N_LIB_PRIVATE N_NIMCALL(void, createPkgStructure__nimblepkgZinit_25)(tyTuple__m4dgv18KkMuujpHOVANHbw* info, NimStringDesc* pkgRoot) { 243 NimStringDesc* T1_; 244 NimStringDesc* nimbleFileOptions; 245 NimStringDesc* pkgTestDir; 246 NimStringDesc* nimbleFile; 247 NimStringDesc* T60_; 248 tyArray__DLxB9cOndPvLDyky9bY9ccM3g T61_; 249 NimStringDesc* T62_; 250 nimfr_("createPkgStructure", "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 251 nimln_(25, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 252 T1_ = NIM_NIL; 253 T1_ = slash___pureZos_121(pkgRoot, (*info).Field5); 254 createDirD__nimblepkgZtools_94(T1_); 255 nimln_(28, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 256 nimbleFileOptions = ((NimStringDesc*) NIM_NIL); 257 nimln_(29, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 258 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_2))) goto LA2_; 259 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_3))) goto LA3_; 260 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_4))) goto LA4_; 261 goto LA5_; 262 LA2_: ; 263 { 264 NimStringDesc* mainFile; 265 NimStringDesc* T8_; 266 NimStringDesc* T9_; 267 NimStringDesc* T10_; 268 nimln_(31, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 269 T8_ = NIM_NIL; 270 T8_ = slash___pureZos_121(pkgRoot, (*info).Field5); 271 T9_ = NIM_NIL; 272 T9_ = noschangeFileExt((*info).Field0, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 273 mainFile = slash___pureZos_121(T8_, T9_); 274 nimln_(32, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 275 writeExampleIfNonExistent__nimblepkgZinit_22(mainFile, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_9)); 276 nimln_(41, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 277 T10_ = NIM_NIL; 278 T10_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_10), (*info).Field0); 279 nimbleFileOptions = resizeString(nimbleFileOptions, (T10_ ? T10_->Sup.len : 0) + 0); 280 appendString(nimbleFileOptions, T10_); 281 } 282 goto LA6_; 283 LA3_: ; 284 { 285 NimStringDesc* mainFile_2; 286 NimStringDesc* T12_; 287 NimStringDesc* T13_; 288 NimStringDesc* T14_; 289 NimStringDesc* T15_; 290 NimStringDesc* submodule; 291 NimStringDesc* T16_; 292 NimStringDesc* T17_; 293 NimStringDesc* T18_; 294 NimStringDesc* T19_; 295 nimln_(43, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 296 T12_ = NIM_NIL; 297 T12_ = slash___pureZos_121(pkgRoot, (*info).Field5); 298 T13_ = NIM_NIL; 299 T13_ = noschangeFileExt((*info).Field0, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 300 mainFile_2 = slash___pureZos_121(T12_, T13_); 301 nimln_(44, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 302 writeExampleIfNonExistent__nimblepkgZinit_22(mainFile_2, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_11)); 303 nimln_(56, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 304 T14_ = NIM_NIL; 305 T14_ = slash___pureZos_121(pkgRoot, (*info).Field5); 306 T15_ = NIM_NIL; 307 T15_ = slash___pureZos_121(T14_, (*info).Field0); 308 createDirD__nimblepkgZtools_94(T15_); 309 nimln_(57, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 310 T16_ = NIM_NIL; 311 T16_ = slash___pureZos_121(pkgRoot, (*info).Field5); 312 T17_ = NIM_NIL; 313 T17_ = slash___pureZos_121(T16_, (*info).Field0); 314 nimln_(58, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 315 T18_ = NIM_NIL; 316 T18_ = nosaddFileExt(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_12), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 317 nimln_(57, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 318 submodule = slash___pureZos_121(T17_, T18_); 319 nimln_(59, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 320 nimln_(73, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 321 T19_ = NIM_NIL; 322 T19_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_13), (*info).Field0); 323 nimln_(59, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 324 writeExampleIfNonExistent__nimblepkgZinit_22(submodule, T19_); 325 } 326 goto LA6_; 327 LA4_: ; 328 { 329 NimStringDesc* mainFile_3; 330 NimStringDesc* T21_; 331 NimStringDesc* T22_; 332 NimStringDesc* T23_; 333 NimStringDesc* pkgSubDir; 334 NimStringDesc* T24_; 335 NimStringDesc* T25_; 336 NimStringDesc* T26_; 337 NimStringDesc* submodule_2; 338 NimStringDesc* T27_; 339 NimStringDesc* T28_; 340 NimStringDesc* T29_; 341 nimln_(76, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 342 T21_ = NIM_NIL; 343 T21_ = slash___pureZos_121(pkgRoot, (*info).Field5); 344 T22_ = NIM_NIL; 345 T22_ = noschangeFileExt((*info).Field0, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 346 mainFile_3 = slash___pureZos_121(T21_, T22_); 347 nimln_(77, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 348 nimln_(86, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 349 T23_ = NIM_NIL; 350 T23_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_14), (*info).Field0); 351 nimln_(77, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 352 writeExampleIfNonExistent__nimblepkgZinit_22(mainFile_3, T23_); 353 nimln_(89, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 354 T24_ = NIM_NIL; 355 T25_ = NIM_NIL; 356 T25_ = slash___pureZos_121(pkgRoot, (*info).Field5); 357 T26_ = NIM_NIL; 358 T26_ = slash___pureZos_121(T25_, (*info).Field0); 359 T24_ = rawNewString((T26_ ? T26_->Sup.len : 0) + 3); 360 appendString(T24_, T26_); 361 appendString(T24_, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_15)); 362 pkgSubDir = T24_; 363 nimln_(90, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 364 createDirD__nimblepkgZtools_94(pkgSubDir); 365 nimln_(91, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 366 T27_ = NIM_NIL; 367 T27_ = nosaddFileExt(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_12), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 368 submodule_2 = slash___pureZos_121(pkgSubDir, T27_); 369 nimln_(92, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 370 nimln_(100, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 371 T28_ = NIM_NIL; 372 T28_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_16), (*info).Field0); 373 nimln_(92, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 374 writeExampleIfNonExistent__nimblepkgZinit_22(submodule_2, T28_); 375 nimln_(102, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 376 nimbleFileOptions = resizeString(nimbleFileOptions, 25); 377 appendString(nimbleFileOptions, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_17)); 378 nimln_(103, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 379 T29_ = NIM_NIL; 380 T29_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_10), (*info).Field0); 381 nimbleFileOptions = resizeString(nimbleFileOptions, (T29_ ? T29_->Sup.len : 0) + 0); 382 appendString(nimbleFileOptions, T29_); 383 } 384 goto LA6_; 385 LA5_: ; 386 { 387 nimln_(105, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 388 { 389 if (!NIM_TRUE) goto LA33_; 390 failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_18)); 391 } 392 LA33_: ; 393 } 394 LA6_: ; 395 nimln_(107, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 396 pkgTestDir = copyString(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_19)); 397 nimln_(109, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 398 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_2))) goto LA35_; 399 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_4))) goto LA36_; 400 if (eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_3))) goto LA36_; 401 goto LA37_; 402 LA35_: ; 403 { 404 } 405 goto LA38_; 406 LA36_: ; 407 { 408 NimStringDesc* pkgTestPath; 409 NimStringDesc* T41_; 410 NimStringDesc* T42_; 411 NimStringDesc* T43_; 412 nimln_(113, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 413 pkgTestPath = slash___pureZos_121(pkgRoot, pkgTestDir); 414 nimln_(114, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 415 createDirD__nimblepkgZtools_94(pkgTestPath); 416 nimln_(116, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 417 T41_ = NIM_NIL; 418 T41_ = nosaddFileExt(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_20), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_21)); 419 T42_ = NIM_NIL; 420 T42_ = slash___pureZos_121(pkgTestPath, T41_); 421 nimln_(117, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 422 T43_ = NIM_NIL; 423 T43_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_22), (*info).Field5); 424 nimln_(116, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 425 writeFile__systemZio_477(T42_, T43_); 426 nimln_(120, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 427 { 428 NimStringDesc* T48_; 429 NimStringDesc* T49_; 430 NimStringDesc* T50_; 431 if (!eqStrings((*info).Field7, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_3))) goto LA46_; 432 nimln_(121, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 433 T48_ = NIM_NIL; 434 T48_ = nosaddFileExt(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_23), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 435 T49_ = NIM_NIL; 436 T49_ = slash___pureZos_121(pkgTestPath, T48_); 437 nimln_(135, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 438 T50_ = NIM_NIL; 439 T50_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_24), (*info).Field0); 440 nimln_(121, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 441 writeExampleIfNonExistent__nimblepkgZinit_22(T49_, T50_); 442 } 443 goto LA44_; 444 LA46_: ; 445 { 446 NimStringDesc* T52_; 447 NimStringDesc* T53_; 448 NimStringDesc* T54_; 449 nimln_(138, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 450 T52_ = NIM_NIL; 451 T52_ = nosaddFileExt(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_23), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_5)); 452 T53_ = NIM_NIL; 453 T53_ = slash___pureZos_121(pkgTestPath, T52_); 454 nimln_(152, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 455 T54_ = NIM_NIL; 456 T54_ = nsuFormatSingleElem(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_25), (*info).Field0); 457 nimln_(138, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 458 writeExampleIfNonExistent__nimblepkgZinit_22(T53_, T54_); 459 } 460 LA44_: ; 461 } 462 goto LA38_; 463 LA37_: ; 464 { 465 nimln_(155, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 466 { 467 if (!NIM_TRUE) goto LA58_; 468 failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_26)); 469 } 470 LA58_: ; 471 } 472 LA38_: ; 473 nimln_(158, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 474 T60_ = NIM_NIL; 475 T60_ = noschangeFileExt((*info).Field0, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_27)); 476 nimbleFile = slash___pureZos_121(pkgRoot, T60_); 477 nimln_(159, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 478 nimln_(171, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 479 nimZeroMem((void*)T61_, sizeof(tyArray__DLxB9cOndPvLDyky9bY9ccM3g)); 480 nimln_(172, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 481 T61_[0] = nsuEscape((*info).Field1, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29)); 482 T61_[1] = nsuReplaceStr((*info).Field2, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_30)); 483 T61_[2] = nsuReplaceStr((*info).Field3, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_30)); 484 nimln_(173, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 485 T61_[3] = nsuEscape((*info).Field4, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29)); 486 T61_[4] = nsuEscape((*info).Field5, ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_29)); 487 T61_[5] = copyString(nimbleFileOptions); 488 T61_[6] = copyString((*info).Field6); 489 nimln_(171, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 490 T62_ = NIM_NIL; 491 T62_ = nsuFormatOpenArray(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_28), T61_, 7); 492 nimln_(159, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 493 writeFile__systemZio_477(nimbleFile, T62_); 494 nimln_(178, "/home/yyoncho/Sources/nim/nimble/src/nimblepkg/init.nim"); 495 display__nimblepkgZcli_156(((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_6), ((NimStringDesc*) &TM__74Ly1Pltw9bii2XReJC59cDg_31), ((tyEnum_DisplayType__HypVeg1P09aXzPaqyobO7xA) 4), ((tyEnum_Priority__8lOyDpa4mymX3OHP5fBsAQ) 2)); 496 popFrame(); 497 }