Added static to many static routines
[libfirm] / ir / ident / ident_t.h
1 /* Declarations for ident.
2    Copyright (C) 1995, 1996 Markus Armbruster */
3
4 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
5 ** All rights reserved.
6 **
7 ** Authors: Martin Trapp, Christian Schaefer
8 */
9
10 /* $Id$ */
11
12 # ifndef _IDENT_T_H_
13 # define _IDENT_T_H_
14
15 # include "ident.h"
16
17 # include "xprintf.h"
18 # include "xp_help.h"
19
20 void id_init (void);
21 int ident_print (XP_PAR1, const xprintf_info *, XP_PARN);
22
23 /* @@@ tune */
24 #define ID_HASH(str, len) \
25   (((  ((unsigned char *)(str))[0] * 33 \
26      + ((unsigned char *)(str))[(len)>>1]) * 31 \
27     + ((unsigned char *)(str))[(len)-1]) * 9 \
28    + (len))
29
30 # endif /* _IDENT_T_H_ */