diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index 18d2091b9fa9..9094462ffce7 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -114,19 +114,19 @@ when not defined(js): template `rawType=`(x: var Any, p: PNimType) = x.rawTypePtr = cast[pointer](p) -proc genericAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.} +proc genericAssign(dest, src: pointer, mt: PNimType) {.importcompilerproc.} when not defined(gcDestructors): - proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.} - proc incrSeq(seq: PGenSeq, elemSize, elemAlign: int): PGenSeq {.importCompilerProc.} - proc newObj(typ: PNimType, size: int): pointer {.importCompilerProc.} - proc newSeq(typ: PNimType, len: int): pointer {.importCompilerProc.} - proc objectInit(dest: pointer, typ: PNimType) {.importCompilerProc.} + proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.importcompilerproc.} + proc incrSeq(seq: PGenSeq, elemSize, elemAlign: int): PGenSeq {.importcompilerproc.} + proc newObj(typ: PNimType, size: int): pointer {.importcompilerproc.} + proc newSeq(typ: PNimType, len: int): pointer {.importcompilerproc.} + proc objectInit(dest: pointer, typ: PNimType) {.importcompilerproc.} else: - proc nimNewObj(size, align: int): pointer {.importCompilerProc.} - proc newSeqPayload(cap, elemSize, elemAlign: int): pointer {.importCompilerProc.} + proc nimNewObj(size, align: int): pointer {.importcompilerproc.} + proc newSeqPayload(cap, elemSize, elemAlign: int): pointer {.importcompilerproc.} proc prepareSeqAdd(len: int; p: pointer; addlen, elemSize, elemAlign: int): pointer {. - importCompilerProc.} + importcompilerproc.} template `+!!`(a, b): untyped = cast[pointer](cast[ByteAddress](a) + b) diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim index f346d84cbb6d..03cbf5220ebe 100644 --- a/lib/impure/nre.nim +++ b/lib/impure/nre.nim @@ -281,7 +281,7 @@ proc matchesCrLf(pattern: Regex): bool = let newlineFlags = flags and (pcre.NEWLINE_CRLF or pcre.NEWLINE_ANY or pcre.NEWLINE_ANYCRLF) - if newLineFlags > 0u32: + if newlineFlags > 0u32: return true # get flags from build config diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 9b08fe2e1435..81b432d7f42c 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -2888,7 +2888,7 @@ when defined(nimdoc): elif defined(nimscript): discard elif defined(nodejs): - type Argv = object of JSRoot + type Argv = object of JsRoot let argv {.importjs: "process.argv".} : Argv proc len(argv: Argv): int {.importjs: "#.length".} proc `[]`(argv: Argv, i: int): cstring {.importjs: "#[#]".}