NDXTYPES.LST 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Listing:
  2. 1 IMPLEMENTATION MODULE NdxTypes;
  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/ndxtypes.mov 1.5 10 Mar 1991 15:30:48 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 IMPORT ErrorNames;
  18. 17 IMPORT GenLists;
  19. 18 IMPORT VStorage;
  20. 19 IMPORT Numbers;
  21. 20
  22. 21 FROM SYSTEM IMPORT TSIZE;
  23. 22
  24. 23
  25. 24 VAR
  26. 25 Initialized : BOOLEAN;
  27. 26
  28. 27 PROCEDURE Init();
  29. 28 BEGIN
  30. 29 IF Initialized THEN
  31. 30 RETURN;
  32. 31 ELSE
  33. 32 Initialized := TRUE;
  34. 33 END;
  35. 34 ErrorNames.Init();
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. 35 GenLists.Init();
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. 36 Numbers.Init();
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. 37 VStorage.Init();
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. 38 END Init;
  52. ***** ^ not supported yet
  53. 39
  54. 40 CONST
  55. 41 InitKey = 46102;
  56. 42 (*Arbitrary value.*)
  57. 43
  58. 44 PROCEDURE CheckInit( NdxFile: NdxFileType );
  59. ***** ^ undeclared identifier
  60. 45 BEGIN
  61. 46 IF (NdxFile = NIL) OR
  62. ***** ^ not supported yet
  63. 47 (NdxFile^.InitCheck # InitKey) THEN
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. 48 ErrorNames.WarningName('BadNdx');
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. 49 END;
  71. 50 END CheckInit;
  72. ***** ^ not supported yet
  73. 51
  74. 52 PROCEDURE InitNdxFile( VAR NdxFile: NdxFileType );
  75. ***** ^ undeclared identifier
  76. 53 BEGIN
  77. 54 VStorage.DosAlloc( NdxFile, TSIZE(NdxRecord) );
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. ***** ^ undeclared identifier
  83. 55 NdxFile^.name := '';
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 56 NdxFile^.handle := 0;
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. 57 NdxFile^.SafetyOn := FALSE;
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. 58 NdxFile^.InitCheck := InitKey;
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. 59 NdxFile^.NdxFilePtr := Numbers.Lc( 0 );
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 60 NdxFile^.UpdateNeeded := FALSE;
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. 61 NdxFile^.BufRecName := '';
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. 62 GenLists.NilList( NdxFile^.Ndx );
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. 63 GenLists.NilList( NdxFile^.AltKeys );
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. 64 GenLists.NilList( NdxFile^.ListBuf );
  118. ***** ^ not supported yet
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. 65 GenLists.NilList( NdxFile^.StructLst );
  123. ***** ^ not supported yet
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 66 NdxFile^.FileBufPtr := NIL;
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. 67 NdxFile^.BufSizeNow := 0;
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. 68 END InitNdxFile;
  134. ***** ^ not supported yet
  135. 69
  136. 70 BEGIN
  137. 71 Initialized := FALSE;
  138. 72 Init();
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. 73 END NdxTypes.
  142. ***** ^ not supported yet
  143. 68 errors