mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 05:29:34 +02:00
60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
{
|
|
$Id$
|
|
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;
|
|
{$IFDEF FPC_LINEEND_IN_TEXTREC}
|
|
_private : SizeInt;
|
|
{$ELSE FPC_LINEEND_IN_TEXTREC}
|
|
LineEnd : TLineEndStr;
|
|
{$ENDIF FPC_LINEEND_IN_TEXTREC}
|
|
bufpos,
|
|
bufend : SizeInt;
|
|
bufptr : ^textbuf;
|
|
openfunc,
|
|
inoutfunc,
|
|
flushfunc,
|
|
closefunc : pointer;
|
|
UserData : array[1..16] of byte;
|
|
name : array[0..textrecnamelength-1] of char;
|
|
{$IFDEF FPC_LINEEND_IN_TEXTREC}
|
|
LineEnd : TLineEndStr;
|
|
{$ENDIF FPC_LINEEND_IN_TEXTREC}
|
|
buffer : textbuf;
|
|
End;
|
|
|
|
{
|
|
$Log$
|
|
Revision 1.8 2005-02-14 17:13:29 peter
|
|
* truncate log
|
|
|
|
}
|