io-data.red 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. %
  2. % IO-DATA.RED - Data structures used by input and output
  3. %
  4. % Author: Eric Benson
  5. % Symbolic Computation Group
  6. % Computer Science Dept.
  7. % University of Utah
  8. % Date: 21 September 1981
  9. % Copyright (c) 1981 University of Utah
  10. %
  11. % <PSL.KERNEL-20>IO-DATA.RED.2, 29-Dec-82 12:19:36, Edit by PERDUE
  12. % Added PagePosition array to support LPOSN
  13. on SysLisp;
  14. internal WConst MaxTokenSize = 5000;
  15. exported WString TokenBuffer[MaxTokenSize];
  16. exported WConst MaxChannels = 31;
  17. exported WArray ReadFunction = ['TerminalInputHandler,
  18. 'WriteOnlyChannel,
  19. 'WriteOnlyChannel,
  20. 'CompressReadChar,
  21. 'WriteOnlyChannel,
  22. 'ChannelNotOpen,
  23. 'ChannelNotOpen,
  24. 'ChannelNotOpen,
  25. 'ChannelNotOpen,
  26. 'ChannelNotOpen,
  27. 'ChannelNotOpen,
  28. 'ChannelNotOpen,
  29. 'ChannelNotOpen,
  30. 'ChannelNotOpen,
  31. 'ChannelNotOpen,
  32. 'ChannelNotOpen,
  33. 'ChannelNotOpen,
  34. 'ChannelNotOpen,
  35. 'ChannelNotOpen,
  36. 'ChannelNotOpen,
  37. 'ChannelNotOpen,
  38. 'ChannelNotOpen,
  39. 'ChannelNotOpen,
  40. 'ChannelNotOpen,
  41. 'ChannelNotOpen,
  42. 'ChannelNotOpen,
  43. 'ChannelNotOpen,
  44. 'ChannelNotOpen,
  45. 'ChannelNotOpen,
  46. 'ChannelNotOpen,
  47. 'ChannelNotOpen,
  48. 'ChannelNotOpen],
  49. WriteFunction = ['ReadOnlyChannel,
  50. 'Dec20WriteChar,
  51. 'ToStringWriteChar,
  52. 'ExplodeWriteChar,
  53. 'FlatSizeWriteChar,
  54. 'ChannelNotOpen,
  55. 'ChannelNotOpen,
  56. 'ChannelNotOpen,
  57. 'ChannelNotOpen,
  58. 'ChannelNotOpen,
  59. 'ChannelNotOpen,
  60. 'ChannelNotOpen,
  61. 'ChannelNotOpen,
  62. 'ChannelNotOpen,
  63. 'ChannelNotOpen,
  64. 'ChannelNotOpen,
  65. 'ChannelNotOpen,
  66. 'ChannelNotOpen,
  67. 'ChannelNotOpen,
  68. 'ChannelNotOpen,
  69. 'ChannelNotOpen,
  70. 'ChannelNotOpen,
  71. 'ChannelNotOpen,
  72. 'ChannelNotOpen,
  73. 'ChannelNotOpen,
  74. 'ChannelNotOpen,
  75. 'ChannelNotOpen,
  76. 'ChannelNotOpen,
  77. 'ChannelNotOpen,
  78. 'ChannelNotOpen,
  79. 'ChannelNotOpen,
  80. 'ChannelNotOpen],
  81. CloseFunction = ['IllegalStandardChannelClose,
  82. 'IllegalStandardChannelClose,
  83. 'IllegalStandardChannelClose,
  84. 'IllegalStandardChannelClose,
  85. 'IllegalStandardChannelClose,
  86. 'ChannelNotOpen,
  87. 'ChannelNotOpen,
  88. 'ChannelNotOpen,
  89. 'ChannelNotOpen,
  90. 'ChannelNotOpen,
  91. 'ChannelNotOpen,
  92. 'ChannelNotOpen,
  93. 'ChannelNotOpen,
  94. 'ChannelNotOpen,
  95. 'ChannelNotOpen,
  96. 'ChannelNotOpen,
  97. 'ChannelNotOpen,
  98. 'ChannelNotOpen,
  99. 'ChannelNotOpen,
  100. 'ChannelNotOpen,
  101. 'ChannelNotOpen,
  102. 'ChannelNotOpen,
  103. 'ChannelNotOpen,
  104. 'ChannelNotOpen,
  105. 'ChannelNotOpen,
  106. 'ChannelNotOpen,
  107. 'ChannelNotOpen,
  108. 'ChannelNotOpen,
  109. 'ChannelNotOpen,
  110. 'ChannelNotOpen,
  111. 'ChannelNotOpen,
  112. 'ChannelNotOpen],
  113. UnReadBuffer[MaxChannels],
  114. LinePosition[MaxChannels],
  115. PagePosition[MaxChannels],
  116. MaxLine = [0, 80,80, 10000, 10000,
  117. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  118. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  119. JFNOfChannel = [8#100,8#101,-1,-1,-1,
  120. 0,0,0,0,0,0,0,0,0,0,0,
  121. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
  122. off SysLisp;
  123. global '(!$EOL!$);
  124. LoadTime(!$EOL!$ := '!
  125. );
  126. END;