summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-25 14:53:00 +0100
committerAraq <rumpf_a@web.de>2013-12-25 14:53:00 +0100
commit9e92455a534956bfbb0a7ec5e6f2bdffd7268818 (patch)
tree30e405f1340f8ffc146dcc420304bf305d38de8f /lib/system/sysio.nim
parent4d01408a4643a482af59c620add2a9e59f45c8f4 (diff)
downloadNim-9e92455a534956bfbb0a7ec5e6f2bdffd7268818.tar.gz
templates can access hidden fields
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r--lib/system/sysio.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim
index 41dbcd817..82b4b183a 100644
--- a/lib/system/sysio.nim
+++ b/lib/system/sysio.nim
@@ -106,7 +106,7 @@ proc write(f: TFile, b: bool) =
 proc write(f: TFile, r: float32) = fprintf(f, "%g", r)
 proc write(f: TFile, r: biggestFloat) = fprintf(f, "%g", r)
 
-proc write(f: TFile, c: Char) = putc(c, f)
+proc write(f: TFile, c: char) = putc(c, f)
 proc write(f: TFile, a: varargs[string, `$`]) =
   for x in items(a): write(f, x)
 
@@ -184,7 +184,7 @@ when defined(windows) and not defined(useWinAnsi):
   proc wfreopen(filename, mode: widecstring, stream: TFile): TFile {.
     importc: "_wfreopen", nodecl.}
 
-  proc fopen(filename, mode: CString): pointer =
+  proc fopen(filename, mode: cstring): pointer =
     var f = newWideCString(filename)
     var m = newWideCString(mode)
     result = wfopen(f, m)
@@ -195,7 +195,7 @@ when defined(windows) and not defined(useWinAnsi):
     result = wfreopen(f, m, stream)
 
 else:
-  proc fopen(filename, mode: CString): pointer {.importc: "fopen", noDecl.}
+  proc fopen(filename, mode: cstring): pointer {.importc: "fopen", noDecl.}
   proc freopen(filename, mode: cstring, stream: TFile): TFile {.
     importc: "freopen", nodecl.}
 
@@ -229,7 +229,7 @@ proc open(f: var TFile, filehandle: TFileHandle, mode: TFileMode): bool =
   f = fdopen(filehandle, FormatOpen[mode])
   result = f != nil
 
-proc fwrite(buf: Pointer, size, n: int, f: TFile): int {.
+proc fwrite(buf: pointer, size, n: int, f: TFile): int {.
   importc: "fwrite", noDecl.}
 
 proc readBuffer(f: TFile, buffer: pointer, len: int): int =