bugfix
[libfirm] / ir / tr / type_or_entity.h
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 * All rights reserved.
3 */
4
5 /**
6  * @file type_or_entity.h
7  *
8  * Provides a datatype to treat types and entities as the same.
9  *
10  * @author Goetz Lindenmaier
11  */
12
13 /* $Id$ */
14
15
16 # ifndef _TYPE_OR_ENTITY_H_
17 # define _TYPE_OR_ENTITY_H_
18
19 /** A datatype to treat types and entities as the same. */
20 typedef union {
21   struct type   *typ;     /**< points to a type */
22   struct entity *ent;     /**< points to an entity */
23 } type_or_ent;
24
25
26 # endif /* _TYPE_OR_ENTITY_H_ */