home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / gas / hash.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  46 lines

  1. /* hash.h - for hash.c
  2.    Copyright (C) 1987, 1992 Free Software Foundation, Inc.
  3.  
  4.    This file is part of GAS, the GNU Assembler.
  5.  
  6.    GAS is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2, or (at your option)
  9.    any later version.
  10.  
  11.    GAS is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with GAS; see the file COPYING.  If not, write to
  18.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. #ifndef hashH
  21. #define hashH
  22.  
  23. struct hash_control;
  24.  
  25. /* returns control block */
  26. struct hash_control *hash_new PARAMS ((void));
  27. void hash_die PARAMS ((struct hash_control *));
  28. /* returns previous value */
  29. PTR hash_delete PARAMS ((struct hash_control *, const char *str));
  30. /* returns previous value */
  31. PTR hash_replace PARAMS ((struct hash_control *, const char *str, PTR val));
  32. /* returns error string or null */
  33. const char *hash_insert PARAMS ((struct hash_control *, const char *str,
  34.                  PTR val));
  35. /* returns value */
  36. PTR hash_find PARAMS ((struct hash_control *, const char *str));
  37. /* returns error text or null (internal) */
  38. const char *hash_jam PARAMS ((struct hash_control *, const char *str,
  39.                   PTR val));
  40.  
  41. void hash_print_statistics PARAMS ((FILE *, const char *,
  42.                     struct hash_control *));
  43. #endif /* #ifdef hashH */
  44.  
  45. /* end of hash.c */
  46.