mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 14:59:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			62 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
 | 
						|
  TextBuf = array[0..TextRecBufSize-1] of char;
 | 
						|
  TextRec = Packed Record
 | 
						|
    Handle    : THandle;
 | 
						|
    Mode      : longint;
 | 
						|
    bufsize,
 | 
						|
    _private,
 | 
						|
    bufpos,
 | 
						|
    bufend    : SizeInt;
 | 
						|
    bufptr    : ^textbuf;
 | 
						|
    openfunc,
 | 
						|
    inoutfunc,
 | 
						|
    flushfunc,
 | 
						|
    closefunc : pointer;
 | 
						|
    UserData  : array[1..16] of byte;
 | 
						|
    name      : array[0..textrecnamelength-1] of char;
 | 
						|
    buffer    : textbuf;
 | 
						|
  End;
 | 
						|
 | 
						|
{
 | 
						|
  $Log$
 | 
						|
  Revision 1.6  2004-05-18 20:16:23  peter
 | 
						|
    * unix thandle is always 32bit
 | 
						|
    * textrec fixed for 64bit
 | 
						|
 | 
						|
  Revision 1.5  2004/02/05 01:16:12  florian
 | 
						|
    + completed x86-64/linux system unit
 | 
						|
 | 
						|
  Revision 1.4  2003/11/03 09:42:28  marco
 | 
						|
   * Peter's Cardinal<->Longint fixes patch
 | 
						|
 | 
						|
  Revision 1.3  2002/09/07 15:07:46  peter
 | 
						|
    * old logs removed and tabs fixed
 | 
						|
 | 
						|
}
 |