diff options
author | Araq <rumpf_a@web.de> | 2013-12-23 01:17:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-12-23 01:17:48 +0100 |
commit | 9145bcfbb680d653f167a1a12f7830025aa951a5 (patch) | |
tree | cb620a359c73662d488d156e1fa7c7e28d39af0f /lib/system/sysio.nim | |
parent | e2a4d591e5f34685071985cb4070e96b7e053a1a (diff) | |
download | Nim-9145bcfbb680d653f167a1a12f7830025aa951a5.tar.gz |
new VM: some progress for the FFI support
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r-- | lib/system/sysio.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index a877f8b28..5af1c96d4 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -194,9 +194,9 @@ const # should not be translated. -proc Open(f: var TFile, filename: string, +proc open(f: var TFile, filename: string, mode: TFileMode = fmRead, - bufSize: int = -1): Bool = + bufSize: int = -1): bool = var p: pointer = fopen(filename, FormatOpen[mode]) result = (p != nil) f = cast[TFile](p) |