* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / gas / hash.h
CommitLineData
fecd2382 1/* hash.h - for hash.c
6594d6b9
KR
2 Copyright (C) 1987, 1992 Free Software Foundation, Inc.
3
a39116f1 4 This file is part of GAS, the GNU Assembler.
6594d6b9 5
a39116f1
RP
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.
6594d6b9 10
a39116f1
RP
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.
6594d6b9 15
a39116f1
RP
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
6594d6b9 18 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
fecd2382
RP
19
20#ifndef hashH
21#define hashH
22
23struct hash_entry
24{
6594d6b9
KR
25 const char *hash_string; /* points to where the symbol string is */
26 /* NULL means slot is not used */
27 /* DELETED means slot was deleted */
28 PTR hash_value; /* user's datum, associated with symbol */
29 unsigned long h;
fecd2382
RP
30};
31
32
6594d6b9 33struct hash_control;
fecd2382 34
6594d6b9
KR
35/* returns control block */
36struct hash_control *hash_new PARAMS ((void));
37void hash_die PARAMS ((struct hash_control *));
38/* returns previous value */
39PTR hash_delete PARAMS ((struct hash_control *, const char *str));
40/* returns previous value */
41PTR hash_replace PARAMS ((struct hash_control *, const char *str, PTR val));
42/* returns error string or null */
43const char *hash_insert PARAMS ((struct hash_control *, const char *str,
44 PTR val));
45/* returns value */
46PTR hash_find PARAMS ((struct hash_control *, const char *str));
47/* returns error text or null (internal) */
48const char *hash_jam PARAMS ((struct hash_control *, const char *str,
49 PTR val));
fecd2382 50
6594d6b9
KR
51void hash_print_statistics PARAMS ((FILE *, const char *,
52 struct hash_control *));
53#endif /* #ifdef hashH */
fecd2382 54
8b228fe9 55/* end of hash.c */
This page took 0.239899 seconds and 4 git commands to generate.