fpc/rtl/inc/textrec.inc
michael 71318f202b + Removed FPC_HASUSERDATA32 define
git-svn-id: trunk@254 -
2005-06-07 21:02:43 +00:00

47 lines
1.2 KiB
PHP

{
This file is part of the Free Pascal run time library.
Copyright (c) 1999-2000 by the Free Pascal development team
Textrec record definition
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{
This file contains the definition of the textrec record.
It is put separately, so it is available outside the system
unit without sacrificing TP compatibility.
}
const
TextRecNameLength = 256;
TextRecBufSize = 256;
type
TLineEndStr = string [3];
TextBuf = array[0..TextRecBufSize-1] of char;
TextRec = Packed Record
Handle : THandle;
Mode : longint;
bufsize : SizeInt;
_private : SizeInt;
bufpos,
bufend : SizeInt;
bufptr : ^textbuf;
openfunc,
inoutfunc,
flushfunc,
closefunc : pointer;
UserData : array[1..32] of byte;
name : array[0..textrecnamelength-1] of char;
LineEnd : TLineEndStr;
buffer : textbuf;
End;