home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / cperf-2.1 / src / hashtable.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-11  |  1.3 KB  |  38 lines

  1. /* Hash table used to check for duplicate keyword entries.
  2.  
  3.    Copyright (C) 1989 Free Software Foundation, Inc.
  4.    written by Douglas C. Schmidt (schmidt@ics.uci.edu)
  5.  
  6. This file is part of GNU GPERF.
  7.  
  8. GNU GPERF is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 1, or (at your option)
  11. any later version.
  12.  
  13. GNU GPERF is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU GPERF; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. #ifndef _hashtable_h
  23. #define _hashtable_h
  24. #include "keylist.h"
  25. #include "prototype.h"
  26.  
  27. typedef struct hash_table 
  28. {
  29.   LIST_NODE **table; /* Vector of pointers to linked lists of List_Node's. */
  30.   int         size;  /* Size of the vector. */
  31. } HASH_TABLE;
  32.  
  33. extern void       hash_table_init P ((LIST_NODE **table, int size));
  34. extern void       hash_table_destroy P ((void));
  35. extern LIST_NODE *retrieve P ((LIST_NODE *item, int ignore_length));
  36.  
  37. #endif /* _hashtable_h */
  38.