added irgopt.h to files to be installed
[libfirm] / ir / ident / ident.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 # ifndef _IDENT_H_
11 # define _IDENT_H_
12
13 # include "assert.h"
14
15 /* Identifiers */
16 typedef const struct set_entry ident;
17
18 /* Stores a string in the ident module and returns a handle for
19    the string. */
20 inline ident      *id_from_str (char *str, int len);
21 /* Returns the string represented by id.  This string is not Null
22    terminated! */
23 inline const char *id_to_str   (ident *id);
24 /* Returns the length of the string represented by id. */
25 inline int         id_to_strlen(ident *id);
26
27 # endif /* _IDENT_H_ */