NDXFILES.LST 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Listing:
  2. 1 DEFINITION MODULE NdxFiles;
  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/defs/ndxfiles.dev 1.4 30 Dec 1990 18:02:44 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 FROM SYSTEM IMPORT BYTE, ADDRESS;
  18. 17 FROM GenLists IMPORT GenList;
  19. 18 FROM NdxTypes IMPORT NdxFileType;
  20. 19
  21. 20
  22. 21 PROCEDURE CreateNdxFile( VAR NdxFile:
  23. 22 NdxFileType; fname, Structure: ARRAY OF CHAR
  24. ***** ^ not supported yet
  25. 23 );
  26. 24
  27. 25 PROCEDURE CloseNdxFile( VAR NdxFile: NdxFileType
  28. 26 );
  29. 27
  30. 28 PROCEDURE DeleteRecord( VAR NdxFile:
  31. 29 NdxFileType; RecName: ARRAY OF CHAR ):
  32. ***** ^ not supported yet
  33. 30 BOOLEAN;
  34. 31
  35. 32 PROCEDURE WriteRecord( VAR NdxFile: NdxFileType;
  36. 33 RecName: ARRAY OF CHAR ): BOOLEAN;
  37. ***** ^ not supported yet
  38. 34
  39. 35 PROCEDURE GetField( VAR NdxFile: NdxFileType;
  40. 36 RecName, FieldName: ARRAY OF CHAR; VAR
  41. ***** ^ not supported yet
  42. 37 TheType: CARDINAL; VAR TheField: ARRAY OF
  43. 38 BYTE ): BOOLEAN;
  44. ***** ^ not supported yet
  45. 39
  46. 40 PROCEDURE PutField( VAR NdxFile: NdxFileType;
  47. 41 RecName, FieldName: ARRAY OF CHAR; TheType:
  48. ***** ^ not supported yet
  49. 42 CARDINAL; TheField: ARRAY OF BYTE ):
  50. ***** ^ not supported yet
  51. 43 BOOLEAN;
  52. 44
  53. 45 PROCEDURE GetFieldAdr( VAR NdxFile: NdxFileType;
  54. 46 RecName, FieldName: ARRAY OF CHAR; VAR
  55. ***** ^ not supported yet
  56. 47 TheType: CARDINAL; VAR TheFieldAdr: ADDRESS;
  57. 48 VAR TheFieldSize: CARDINAL ): BOOLEAN;
  58. 49
  59. 50 PROCEDURE PutFieldAdr( VAR NdxFile: NdxFileType;
  60. 51 RecName, FieldName: ARRAY OF CHAR; TheType:
  61. ***** ^ not supported yet
  62. 52 CARDINAL; TheFieldAdr: ADDRESS;
  63. 53 TheFieldSize: CARDINAL ): BOOLEAN;
  64. 54
  65. 55 PROCEDURE FileStructure( NdxFile: NdxFileType;
  66. 56 VAR Structure: ARRAY OF CHAR );
  67. ***** ^ not supported yet
  68. 57
  69. 58 PROCEDURE RecordExists( NdxFile: NdxFileType;
  70. 59 VAR RecName: ARRAY OF CHAR ): BOOLEAN;
  71. ***** ^ not supported yet
  72. 60
  73. 61 PROCEDURE SafetyOn( VAR NdxFile: NdxFileType );
  74. 62
  75. 63 PROCEDURE SafetyOff( VAR NdxFile: NdxFileType );
  76. 64
  77. 65 PROCEDURE InsertNdxEntry( RecName: ARRAY OF
  78. 66 CHAR; VAR FilePos: LONGINT; UsedChars:
  79. ***** ^ not supported yet
  80. 67 CARDINAL; VAR AllocatedChars: CARDINAL; VAR
  81. 68 NdxFile: NdxFileType ): BOOLEAN;
  82. 69
  83. 70 PROCEDURE ChangeNdxEntry( OldRecName,
  84. 71 NewRecName: ARRAY OF CHAR; FilePos: LONGINT;
  85. ***** ^ not supported yet
  86. 72 NumUsed: CARDINAL; VAR NdxFile: NdxFileType
  87. 73 ): BOOLEAN;
  88. 74
  89. 75 (*=====================================================
  90. 76 Following routines exported only for Repertoire's
  91. 77 own use.
  92. 78 =====================================================*)
  93. 79
  94. 80 PROCEDURE FindField( StruList: GenList;
  95. 81 FieldName: ARRAY OF CHAR; VAR DataList:
  96. ***** ^ not supported yet
  97. 82 GenList; VAR spot: CARDINAL): BOOLEAN;
  98. 83
  99. 84 PROCEDURE WriteNdx( NdxFile: NdxFileType );
  100. 85
  101. 86 PROCEDURE SetFileUpdate( handle: CARDINAL;
  102. 87 GbgByte: CHAR);
  103. 88
  104. 89 PROCEDURE Init();
  105. 90
  106. 91 END NdxFiles.
  107. ***** ^ not supported yet
  108. 15 errors