fixes the remaining fixable Nimrod->Nim renamings; closes #2032
This commit is contained in:
parent
7ace82440f
commit
7278f28740
4 changed files with 14 additions and 14 deletions
|
|
@ -39,24 +39,24 @@ proc setupEnvironment =
|
||||||
|
|
||||||
addIncludePath(gTinyC, libpath)
|
addIncludePath(gTinyC, libpath)
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
addSysincludePath(gTinyC, nimrodDir / "tinyc/win32/include")
|
addSysincludePath(gTinyC, nimDir / "tinyc/win32/include")
|
||||||
addSysincludePath(gTinyC, nimrodDir / "tinyc/include")
|
addSysincludePath(gTinyC, nimDir / "tinyc/include")
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
defineSymbol(gTinyC, "_WIN32", nil)
|
defineSymbol(gTinyC, "_WIN32", nil)
|
||||||
# we need Mingw's headers too:
|
# we need Mingw's headers too:
|
||||||
var gccbin = getConfigVar("gcc.path") % ["nim", nimDir]
|
var gccbin = getConfigVar("gcc.path") % ["nim", nimDir]
|
||||||
addSysincludePath(gTinyC, gccbin /../ "include")
|
addSysincludePath(gTinyC, gccbin /../ "include")
|
||||||
#addFile(nimrodDir / r"tinyc\win32\wincrt1.o")
|
#addFile(nimDir / r"tinyc\win32\wincrt1.o")
|
||||||
addFile(nimrodDir / r"tinyc\win32\alloca86.o")
|
addFile(nimDir / r"tinyc\win32\alloca86.o")
|
||||||
addFile(nimrodDir / r"tinyc\win32\chkstk.o")
|
addFile(nimDir / r"tinyc\win32\chkstk.o")
|
||||||
#addFile(nimrodDir / r"tinyc\win32\crt1.o")
|
#addFile(nimDir / r"tinyc\win32\crt1.o")
|
||||||
|
|
||||||
#addFile(nimrodDir / r"tinyc\win32\dllcrt1.o")
|
#addFile(nimDir / r"tinyc\win32\dllcrt1.o")
|
||||||
#addFile(nimrodDir / r"tinyc\win32\dllmain.o")
|
#addFile(nimDir / r"tinyc\win32\dllmain.o")
|
||||||
addFile(nimrodDir / r"tinyc\win32\libtcc1.o")
|
addFile(nimDir / r"tinyc\win32\libtcc1.o")
|
||||||
|
|
||||||
#addFile(nimrodDir / r"tinyc\win32\lib\crt1.c")
|
#addFile(nimDir / r"tinyc\win32\lib\crt1.c")
|
||||||
#addFile(nimrodDir / r"tinyc\lib\libtcc1.c")
|
#addFile(nimDir / r"tinyc\lib\libtcc1.c")
|
||||||
else:
|
else:
|
||||||
addSysincludePath(gTinyC, "/usr/include")
|
addSysincludePath(gTinyC, "/usr/include")
|
||||||
when defined(amd64):
|
when defined(amd64):
|
||||||
|
|
|
||||||
|
|
@ -820,7 +820,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
||||||
regs[ra].intVal = ord((regs[rb].node.kind == nkNilLit and
|
regs[ra].intVal = ord((regs[rb].node.kind == nkNilLit and
|
||||||
regs[rc].node.kind == nkNilLit) or
|
regs[rc].node.kind == nkNilLit) or
|
||||||
regs[rb].node == regs[rc].node)
|
regs[rb].node == regs[rc].node)
|
||||||
of opcEqNimrodNode:
|
of opcEqNimNode:
|
||||||
decodeBC(rkInt)
|
decodeBC(rkInt)
|
||||||
regs[ra].intVal =
|
regs[ra].intVal =
|
||||||
ord(exprStructuralEquivalent(regs[rb].node, regs[rc].node,
|
ord(exprStructuralEquivalent(regs[rb].node, regs[rc].node,
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ type
|
||||||
opcBitandInt, opcBitorInt, opcBitxorInt, opcAddu, opcSubu, opcMulu,
|
opcBitandInt, opcBitorInt, opcBitxorInt, opcAddu, opcSubu, opcMulu,
|
||||||
opcDivu, opcModu, opcEqInt, opcLeInt, opcLtInt, opcEqFloat,
|
opcDivu, opcModu, opcEqInt, opcLeInt, opcLtInt, opcEqFloat,
|
||||||
opcLeFloat, opcLtFloat, opcLeu, opcLtu,
|
opcLeFloat, opcLtFloat, opcLeu, opcLtu,
|
||||||
opcEqRef, opcEqNimrodNode, opcSameNodeType,
|
opcEqRef, opcEqNimNode, opcSameNodeType,
|
||||||
opcXor, opcNot, opcUnaryMinusInt, opcUnaryMinusFloat, opcBitnotInt,
|
opcXor, opcNot, opcUnaryMinusInt, opcUnaryMinusFloat, opcBitnotInt,
|
||||||
opcEqStr, opcLeStr, opcLtStr, opcEqSet, opcLeSet, opcLtSet,
|
opcEqStr, opcLeStr, opcLtStr, opcEqSet, opcLeSet, opcLtSet,
|
||||||
opcMulSet, opcPlusSet, opcMinusSet, opcSymdiffSet, opcConcatStr,
|
opcMulSet, opcPlusSet, opcMinusSet, opcSymdiffSet, opcConcatStr,
|
||||||
|
|
|
||||||
|
|
@ -1178,7 +1178,7 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
|
||||||
of mNBindSym: genBindSym(c, n, dest)
|
of mNBindSym: genBindSym(c, n, dest)
|
||||||
of mStrToIdent: genUnaryABC(c, n, dest, opcStrToIdent)
|
of mStrToIdent: genUnaryABC(c, n, dest, opcStrToIdent)
|
||||||
of mEqIdent: genBinaryABC(c, n, dest, opcEqIdent)
|
of mEqIdent: genBinaryABC(c, n, dest, opcEqIdent)
|
||||||
of mEqNimrodNode: genBinaryABC(c, n, dest, opcEqNimrodNode)
|
of mEqNimrodNode: genBinaryABC(c, n, dest, opcEqNimNode)
|
||||||
of mSameNodeType: genBinaryABC(c, n, dest, opcSameNodeType)
|
of mSameNodeType: genBinaryABC(c, n, dest, opcSameNodeType)
|
||||||
of mNLineInfo:
|
of mNLineInfo:
|
||||||
case n[0].sym.name.s
|
case n[0].sym.name.s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue