small improvements
This commit is contained in:
parent
b4232a672f
commit
8090b6c027
2 changed files with 6 additions and 2 deletions
|
|
@ -38,7 +38,10 @@ proc newSysType(kind: TTypeKind, size: int): PType =
|
||||||
|
|
||||||
proc getSysSym(name: string): PSym =
|
proc getSysSym(name: string): PSym =
|
||||||
result = StrTableGet(systemModule.tab, getIdent(name))
|
result = StrTableGet(systemModule.tab, getIdent(name))
|
||||||
if result == nil: rawMessage(errSystemNeeds, name)
|
if result == nil:
|
||||||
|
rawMessage(errSystemNeeds, name)
|
||||||
|
result = newSym(skError, getIdent(name), systemModule, systemModule.info)
|
||||||
|
result.typ = newType(tyError, systemModule)
|
||||||
if result.kind == skStub: loadStub(result)
|
if result.kind == skStub: loadStub(result)
|
||||||
|
|
||||||
proc sysTypeFromName*(name: string): PType =
|
proc sysTypeFromName*(name: string): PType =
|
||||||
|
|
|
||||||
|
|
@ -465,6 +465,7 @@ proc MainCommand =
|
||||||
of "cpp", "compiletocpp":
|
of "cpp", "compiletocpp":
|
||||||
extccomp.cExt = ".cpp"
|
extccomp.cExt = ".cpp"
|
||||||
gCmd = cmdCompileToCpp
|
gCmd = cmdCompileToCpp
|
||||||
|
if cCompiler == ccGcc: setCC("gpp")
|
||||||
wantMainModule()
|
wantMainModule()
|
||||||
DefineSymbol("cpp")
|
DefineSymbol("cpp")
|
||||||
CommandCompileToC()
|
CommandCompileToC()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue