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

@ -108,8 +108,8 @@ proc fileMatches(c, bp: cstring): bool =
# and the character for the suffix does not exist or
# is one of: \ / :
# depending on the OS case does not matter!
var blen: int = c_strlen(bp)
var clen: int = c_strlen(c)
var blen: int = bp.len
var clen: int = c.len
if blen > clen: return false
# check for \ / :
if clen-blen-1 >= 0 and c[clen-blen-1] notin {'\\', '/', ':'}: