home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / modula2 / modprint / hashtabl.def < prev    next >
Encoding:
Modula Definition  |  1994-09-22  |  487 b   |  18 lines

  1. DEFINITION MODULE HashTable;
  2. (*
  3.  * This module implements a hash table with strings as keys.  
  4.  * It could easily be modified to have additional elements.
  5.  *
  6.  * Usage assumptions:
  7.  * The calling module MUST have created a heap before calling these routines!!
  8.  * 
  9.  *)
  10.  
  11. (* Inserts a string into the hash table *)
  12. PROCEDURE InsertElem( Elem: ARRAY OF CHAR );
  13.  
  14. (* Looks for a string in the hash table *)
  15. PROCEDURE LookupElem( Elem: ARRAY OF CHAR ): BOOLEAN;
  16.  
  17. END HashTable.
  18.