ERRSTRGS.LST 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ErrStrgs;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1992 PMI
  8. 7 * Green Bay, Wisconsin
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 * $Header: D:/logfiles/mods/errstrgs.mov 1.5 10 Mar 1991 15:27:24 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 IMPORT StrConv;
  18. 17 IMPORT StrEdit;
  19. 18 IMPORT StringIO;
  20. 19 IMPORT M2Strings;
  21. 20
  22. 21 VAR
  23. 22 Initialized : BOOLEAN;
  24. 23
  25. 24 PROCEDURE Init();
  26. 25 BEGIN
  27. 26 IF Initialized THEN
  28. 27 RETURN;
  29. 28 ELSE
  30. 29 Initialized := TRUE;
  31. 30 END;
  32. 31 StrConv.Init();
  33. ***** ^ not supported yet
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. 32 StrEdit.Init();
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. 33 StringIO.Init();
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. 34 M2Strings.Init();
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. 35 END Init;
  49. ***** ^ not supported yet
  50. 36
  51. 37 PROCEDURE NumToStr( ErrorNumber: CARDINAL;
  52. 38 VAR TheStr: ARRAY OF CHAR );
  53. ***** ^ not supported yet
  54. 39 BEGIN
  55. 40 CASE ErrorNumber OF
  56. 41 0 :
  57. 42 StrEdit.AssignStr( 'No error', TheStr );
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 43 | 1 :
  63. 44 StrEdit.AssignStr( 'Invalid function number', TheStr );
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 45 | 2 :
  69. 46 StrEdit.AssignStr( 'File not found', TheStr );
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. 47 | 3 :
  75. 48 StrEdit.AssignStr( 'Path not found', TheStr );
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. 49 | 4 :
  81. 50 StrEdit.AssignStr( 'No handles left', TheStr );
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 51 | 5 :
  87. 52 StrEdit.AssignStr( 'Access denied', TheStr );
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. 53 | 6 :
  93. 54 StrEdit.AssignStr( 'Invalid handle', TheStr );
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. 55 | 7 :
  99. 56 StrEdit.AssignStr( 'Memory control blocks destroyed', TheStr );
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. 57 | 8 :
  105. 58 StrEdit.AssignStr( 'Insufficient memory', TheStr );
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. 59 | 9 :
  111. 60 StrEdit.AssignStr( 'Invalid memory block address', TheStr );
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. ***** ^ not supported yet
  116. 61 | 10 :
  117. 62 StrEdit.AssignStr( 'Invalid environment', TheStr );
  118. ***** ^ not supported yet
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. 63 | 11 :
  123. 64 StrEdit.AssignStr( 'Invalid format', TheStr );
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. 65 | 12 :
  129. 66 StrEdit.AssignStr( 'Invalid access code', TheStr );
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. 67 | 13 :
  135. 68 StrEdit.AssignStr( 'Invalid data', TheStr );
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. ***** ^ not supported yet
  140. 69 | 14 :
  141. 70 StrEdit.AssignStr( 'Missing message 14', TheStr );
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. ***** ^ not supported yet
  145. ***** ^ not supported yet
  146. 71 | 15 :
  147. 72 StrEdit.AssignStr( 'Invalid drive was specified', TheStr );
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. 73 | 16 :
  153. 74 StrEdit.AssignStr( 'Attempt to remove current dir', TheStr );
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. ***** ^ not supported yet
  158. 75 | 17 :
  159. 76 StrEdit.AssignStr( 'Different device', TheStr );
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. 77 | 18 :
  165. 78 StrEdit.AssignStr( 'No more files', TheStr );
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. ***** ^ not supported yet
  170. 79 | 19 :
  171. 80 StrEdit.AssignStr( 'Write protection error', TheStr );
  172. ***** ^ not supported yet
  173. ***** ^ not supported yet
  174. ***** ^ not supported yet
  175. ***** ^ not supported yet
  176. 81 | 20 :
  177. 82 StrEdit.AssignStr( 'Bad unit number', TheStr );
  178. ***** ^ not supported yet
  179. ***** ^ not supported yet
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. 83 ELSE
  183. 84 StrConv.CardinalToStr( ORD(ErrorNumber), 0, TheStr );
  184. ***** ^ not supported yet
  185. ***** ^ not supported yet
  186. ***** ^ undeclared identifier
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. 85 M2Strings.Insert( "OS/2 error ", TheStr, 0 );
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. 86 END;
  196. 87
  197. 88 END NumToStr;
  198. ***** ^ not supported yet
  199. 89
  200. 90
  201. 91 PROCEDURE WriteErrToHandle( TheHandle, ErrorNumber:
  202. 92 CARDINAL );
  203. 93 VAR
  204. 94 LocalStr: ARRAY [0..79] OF CHAR;
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. 95 BEGIN
  208. 96 IF ErrorNumber = 0 THEN
  209. 97 RETURN;
  210. 98 END;
  211. 99 NumToStr( ErrorNumber, LocalStr );
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. 100 StringIO.WriteEol( TheHandle, '' );
  215. ***** ^ not supported yet
  216. ***** ^ not supported yet
  217. ***** ^ not supported yet
  218. 101 StringIO.WriteStr( TheHandle, LocalStr );
  219. ***** ^ not supported yet
  220. ***** ^ not supported yet
  221. ***** ^ not supported yet
  222. 102 END WriteErrToHandle;
  223. ***** ^ not supported yet
  224. 103
  225. 104 BEGIN
  226. 105 Initialized := FALSE;
  227. 106 Init();
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 107 END ErrStrgs.
  231. ***** ^ not supported yet
  232. 123 errors