incompleteStruct pragma for C's FILE

This commit is contained in:
Araq 2013-01-27 00:42:14 +01:00
commit 541ba485c2

View file

@ -1,7 +1,7 @@
# #
# #
# Nimrod's Runtime Library # Nimrod's Runtime Library
# (c) Copyright 2012 Andreas Rumpf # (c) Copyright 2013 Andreas Rumpf
# #
# See the file "copying.txt", included in this # See the file "copying.txt", included in this
# distribution, for details about the copyright. # distribution, for details about the copyright.
@ -1760,8 +1760,7 @@ when not defined(EcmaScript): #and not defined(NimrodVM):
# ----------------- IO Part ------------------------------------------------ # ----------------- IO Part ------------------------------------------------
type type
CFile {.importc: "FILE", nodecl, final.} = object # empty record for CFile {.importc: "FILE", nodecl, final, incompletestruct.} = object
# data hiding
TFile* = ptr CFile ## The type representing a file handle. TFile* = ptr CFile ## The type representing a file handle.
TFileMode* = enum ## The file mode when opening a file. TFileMode* = enum ## The file mode when opening a file.