remove system/ansi_c include from os

This commit is contained in:
Jacek Sieka 2016-06-05 20:16:26 +08:00
commit fe2b39f007
5 changed files with 19 additions and 31 deletions

View file

@ -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: