textrec.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by the Free Pascal development team
  5. Textrec record definition
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. This file contains the definition of the textrec record.
  14. It is put separately, so it is available outside the system
  15. unit without sacrificing TP compatibility.
  16. }
  17. const
  18. TextRecNameLength = 256;
  19. TextRecBufSize = 256;
  20. type
  21. TextBuf = array[0..TextRecBufSize-1] of char;
  22. TextRec = Packed Record
  23. Handle : THandle;
  24. Mode,
  25. bufsize,
  26. _private,
  27. bufpos,
  28. bufend : longint;
  29. bufptr : ^textbuf;
  30. openfunc,
  31. inoutfunc,
  32. flushfunc,
  33. closefunc : pointer;
  34. UserData : array[1..16] of byte;
  35. name : array[0..textrecnamelength-1] of char;
  36. buffer : textbuf;
  37. End;
  38. {
  39. $Log$
  40. Revision 1.4 2003-11-03 09:42:28 marco
  41. * Peter's Cardinal<->Longint fixes patch
  42. Revision 1.3 2002/09/07 15:07:46 peter
  43. * old logs removed and tabs fixed
  44. }