N_NIMCALL(void, readconfigfile_186522)(NimStringDesc* filename) { Tlexer181185 L; Ttoken181181 tok; Tllstream178204* stream; memset((void*)(&L), 0, sizeof(L)); L.Sup.Sup.m_type = (&NTI181185); memset((void*)(&tok), 0, sizeof(tok)); stream = 0; stream = llstreamopen_178256(filename, ((NU8) 0)); { if (!!((stream == NIM_NIL))) goto LA3; inittoken_181369((&tok)); openlexer_181412((&L), filename, stream); tok.toktype = ((NU8) 1); conftok_186379((&L), (&tok)); { while (1) { if (!!((tok.toktype == ((NU8) 1)))) goto LA6; parseassignment_186441((&L), (&tok)); } LA6: ; } { if (!(((NI) 0) < (condstack_186188 ? condstack_186188->Sup.len : 0))) goto LA9; lexmessage_181483((&L), ((NU16) 23), ((NimStringDesc*) &TMP1881)); } LA9: ; closelexer_181424((&L)); { if (!(((NI) 1) <= gverbosity_154137)) goto LA13; rawmessage_164970(((NU16) 272), filename); } LA13: ; } LA3: ; }
N_NIMCALL(void, readconfigfile_186520)(NimStringDesc* filename) { Tlexer181185 L; Ttoken181181 tok; Tllstream178204* stream; nimfr("readConfigFile", "nimconf.nim") memset((void*)(&L), 0, sizeof(L)); L.Sup.Sup.m_type = (&NTI181185); memset((void*)(&tok), 0, sizeof(tok)); stream = 0; nimln(205, "nimconf.nim"); stream = llstreamopen_178256(filename, ((NU8) 0)); nimln(206, "nimconf.nim"); { if (!!((stream == NIM_NIL))) goto LA3; nimln(207, "nimconf.nim"); inittoken_181369((&tok)); nimln(208, "nimconf.nim"); openlexer_181412((&L), filename, stream); nimln(209, "nimconf.nim"); tok.toktype = ((NU8) 1); nimln(210, "nimconf.nim"); conftok_186377((&L), (&tok)); { nimln(211, "nimconf.nim"); while (1) { if (!!((tok.toktype == ((NU8) 1)))) goto LA6; parseassignment_186439((&L), (&tok)); } LA6: ; } nimln(212, "nimconf.nim"); { if (!(((NI) 0) < (condstack_186186 ? condstack_186186->Sup.len : 0))) goto LA9; lexmessage_181483((&L), ((NU16) 23), ((NimStringDesc*) &TMP2485)); } LA9: ; nimln(213, "nimconf.nim"); closelexer_181424((&L)); nimln(214, "nimconf.nim"); { if (!(((NI) 1) <= gverbosity_154137)) goto LA13; rawmessage_164960(((NU16) 272), filename); } LA13: ; } LA3: ; popFrame(); }