textrec.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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,
  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.9 2000-02-09 16:59:31 peter
  41. * truncated log
  42. Revision 1.8 2000/01/07 16:41:37 daniel
  43. * copyright 2000
  44. Revision 1.7 2000/01/07 16:32:25 daniel
  45. * copyright 2000 added
  46. }