textrec.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993-98 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,
  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.6 1998-09-14 10:48:25 peter
  41. * FPC_ names
  42. * Heap manager is now system independent
  43. Revision 1.5 1998/09/08 10:14:07 peter
  44. + textrecbufsize
  45. Revision 1.4 1998/09/04 18:16:15 peter
  46. * uniform filerec/textrec (with recsize:longint and name:0..255)
  47. Revision 1.3 1998/05/21 15:37:19 carl
  48. + working version now ok
  49. }