Last active
August 29, 2015 14:01
-
-
Save flaviut/c34396eab67a83a99546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before auto | |
// after auto | |
struct tslice475623 { | |
NIM_CHAR A; | |
NIM_CHAR B; | |
}; | |
N_NIMCALL(NimStringDesc*, manglefield_475609)(NimStringDesc* name) { | |
NimStringDesc* result; | |
nimfr("mangleField", "ccgtypes.nim") | |
result = 0; | |
// result = mangle(name) | |
nimln(15, "ccgtypes.nim"); | |
result = mangle_470684(name); | |
// echo "before ", result | |
nimln(16, "ccgtypes.nim"); | |
printf("%s%s\012", (((NimStringDesc*) &TMP6305))->data, (result)->data); | |
// if name[0] in 'a'..'z': | |
nimln(17, "ccgtypes.nim"); | |
{ | |
tslice475623 LOC3; | |
NIM_BOOL LOC4; | |
// if name[0] in 'a'..'z': | |
nimln(17, "ccgtypes.nim"); | |
// if name[0] in 'a'..'z': | |
nimln(17, "ccgtypes.nim"); | |
LOC3 = HEX2EHEX2E_475614(97, 122); | |
if ((NU)(0) > (NU)(name->Sup.len)) raiseIndexError(); | |
LOC4 = 0; | |
LOC4 = contains_475632(LOC3, name->data[0]); | |
if (!LOC4) goto LA5; | |
// result[0] = name[0].toUpper | |
nimln(18, "ccgtypes.nim"); | |
if ((NU)(0) > (NU)(result->Sup.len)) raiseIndexError(); | |
if ((NU)(0) > (NU)(name->Sup.len)) raiseIndexError(); | |
result->data[0] = nsuToUpperChar(name->data[0]); | |
} | |
LA5: ; | |
// echo "after ", result | |
nimln(19, "ccgtypes.nim"); | |
printf("%s%s\012", (((NimStringDesc*) &TMP6306))->data, (result)->data); | |
popFrame(); | |
return result; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N_NIMCALL(NimStringDesc*, manglefield_92041)(NimStringDesc* name) { | |
NimStringDesc* result; | |
nimfr("mangleField", "ifrange.nim") | |
result = 0; | |
// result = mangle(name) | |
nimln(25, "ifrange.nim"); | |
result = mangle_92002(name); | |
// if name[0] in Letters: | |
nimln(26, "ifrange.nim"); | |
{ | |
// if name[0] in Letters: | |
nimln(26, "ifrange.nim"); | |
if ((NU)(0) > (NU)(name->Sup.len)) raiseIndexError(); | |
if (!(((NU8)(name->data[0])) >= ((NU8)(65)) && ((NU8)(name->data[0])) <= ((NU8)(90)) || ((NU8)(name->data[0])) >= ((NU8)(97)) && ((NU8)(name->data[0])) <= ((NU8)(122)))) goto LA3; | |
// result[0] = name[0].toUpper | |
nimln(27, "ifrange.nim"); | |
if ((NU)(0) > (NU)(result->Sup.len)) raiseIndexError(); | |
if ((NU)(0) > (NU)(name->Sup.len)) raiseIndexError(); | |
result->data[0] = nsuToUpperChar(name->data[0]); | |
} | |
LA3: ; | |
popFrame(); | |
return result; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment