remove system/ansi_c include from os
This commit is contained in:
parent
64b0485207
commit
fe2b39f007
5 changed files with 19 additions and 31 deletions
|
|
@ -85,7 +85,7 @@ proc toNimStr(str: cstring, len: int): NimString {.compilerProc.} =
|
|||
copyMem(addr(result.data), str, len + 1)
|
||||
|
||||
proc cstrToNimstr(str: cstring): NimString {.compilerRtl.} =
|
||||
result = toNimStr(str, c_strlen(str))
|
||||
result = toNimStr(str, str.len)
|
||||
|
||||
proc copyString(src: NimString): NimString {.compilerRtl.} =
|
||||
if src != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue