19990502 sourceware import
[deliverable/binutils-gdb.git] / gas / hash.h
CommitLineData
252b5132
RH
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
23struct hash_control;
24
25/* returns control block */
26struct hash_control *hash_new PARAMS ((void));
27void hash_die PARAMS ((struct hash_control *));
28/* returns previous value */
29PTR hash_delete PARAMS ((struct hash_control *, const char *str));
30/* returns previous value */
31PTR hash_replace PARAMS ((struct hash_control *, const char *str, PTR val));
32/* returns error string or null */
33const char *hash_insert PARAMS ((struct hash_control *, const char *str,
34 PTR val));
35/* returns value */
36PTR hash_find PARAMS ((struct hash_control *, const char *str));
37/* returns error text or null (internal) */
38const char *hash_jam PARAMS ((struct hash_control *, const char *str,
39 PTR val));
40
41void hash_print_statistics PARAMS ((FILE *, const char *,
42 struct hash_control *));
43#endif /* #ifdef hashH */
44
45/* end of hash.c */
This page took 0.024772 seconds and 4 git commands to generate.