-/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
-** All rights reserved.
-**
-** Author: Goetz Lindenmaier
-**
-*/
+/**
+ * @file
+ * @brief Provides a datatype to treat types and entities as the same.
+ * @author Goetz Lindenmaier
+ * @version $Id$
+ */
+#ifndef FIRM_TR_TYPE_OR_ENTITY_H
+#define FIRM_TR_TYPE_OR_ENTITY_H
-/* A datatype to treat types and entities as the same. */
-
-# ifndef _TYPE_OR_ENTITY_H_
-# define _TYPE_OR_ENTITY_H_
+#include "firm_types.h"
+/** A data type to treat types and entities as the same. */
typedef union {
- type *typ;
- entity *ent;
+ ir_type *typ; /**< points to a type */
+ ir_entity *ent; /**< points to an entity */
} type_or_ent;
-# endif /* _TYPE_OR_ENTITY_H_ */
+# endif /* FIRM_TR_TYPE_OR_ENTITY_H */