COREFILE.LST 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * COREFILE.DEF - Modula-2 core file definitions *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# call(o_a_size => off,o_a_copy=>off,c_conv=>on,result_optional=>on) *)
  13. 12 (*# module(implementation=>off, init_code => off) *)
  14. 13 (*# name(prefix => c) *)
  15. 14
  16. 15 DEFINITION MODULE CoreFile;
  17. 16
  18. 17 TYPE
  19. 18 File = CARDINAL;
  20. 19 StreamPtr = POINTER TO CHAR;
  21. ***** ^ not supported yet
  22. 20 CStream = RECORD
  23. 21 Ptr : StreamPtr; (* current char pointer *)
  24. 22 Cnt : INTEGER; (* buffer free space *)
  25. 23 Size : INTEGER; (* buffer size *)
  26. 24 Base : StreamPtr; (* buffer address *)
  27. 25 Flag : BITSET; (* file attrib flag *)
  28. ***** ^ undeclared identifier
  29. 26 Handle : INTEGER; (* file handle *)
  30. 27 Pback : INTEGER; (* ungot char if no buf *)
  31. 28 Sem : LONGCARD;
  32. ***** ^ undeclared identifier
  33. 29 Ctrl : SHORTCARD;
  34. 30 SCnt : SHORTCARD;
  35. 31 END; (*CStream*)
  36. ***** ^ not supported yet
  37. 32 FileInf = POINTER TO CStream;
  38. ***** ^ not supported yet
  39. 33
  40. 34 CONST
  41. 35 MaxHandles = 20; (* must change if you alter CoreFile.a *)
  42. 36
  43. 37 VAR
  44. 38 _openfd : ARRAY [0..MaxHandles-1] OF BITSET;
  45. ***** ^ not supported yet
  46. ***** ^ undeclared identifier
  47. 39 _iob : ARRAY [0..MaxHandles-1] OF CStream;
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 40 _open_max : CARDINAL;
  51. 41 BufInf : ARRAY [0..MaxHandles-1] OF FileInf;
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. 42 _tmpfiles : ARRAY [0..MaxHandles-1] OF ADDRESS;
  55. ***** ^ not supported yet
  56. ***** ^ undeclared identifier
  57. 43 _tmpfptrs : ARRAY [0..MaxHandles-1] OF FileInf;
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. 44
  61. 45 END CoreFile.
  62. ***** ^ not supported yet
  63. 16 errors