fix
[libfirm] / ir / tr / type_identify.h
index 608c1c7..0b4612a 100644 (file)
@@ -1,26 +1,32 @@
-/**
- * @file type.h
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
  *
- * Project:     libFIRM                                                   <br>
- * File name:   ir/tr/type.h                                              <br>
- * Purpose:     Representation of types.                                  <br>
- * Author:      Goetz Lindenmaier                                         <br>
- * Modified by:                                                           <br>
- * Created:                                                               <br>
- * Copyright:   (c) 2001-2003 Universität Karlsruhe                       <br>
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE. <br>
- * CVS-ID:      $Id$
+ * 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.
  */
 
-# ifndef _TYPE_IDENTIFY_H_
-# define _TYPE_IDENTIFY_H_
+/**
+ * @file    type_identify.h
+ * @brief   Representation of types.
+ * @author  Goetz Lindenmaier
+ * @version $Id$
+ */
+#ifndef FIRM_TR_TYPE_IDENTIFY_H
+#define FIRM_TR_TYPE_IDENTIFY_H
 
-#ifndef _TYPE_TYPEDEF_
-#define _TYPE_TYPEDEF_
-typedef struct type type;
-#endif
+#include "firm_types.h"
 
 /* ------------------------------------------------------------------------ */
 
@@ -50,13 +56,13 @@ int compare_strict (const void *tp1, const void *tp2);
  *
  *   @param tp The type to compute a hash for.
  */
-typedef int (hash_types_func_t)(type *tp);
+typedef int (hash_types_func_t)(ir_type *tp);
 
 /** Computes a hash value by the type name.
  *
  * Uses the name of the type and the type opcode to compute the hash.
  */
-int firm_hash_name (type *tp);
+int firm_hash_name (ir_type *tp);
 
 /* ------------------------------------------------------------------------ */
 
@@ -78,7 +84,7 @@ int firm_hash_name (type *tp);
  *
  * @param tp     The type to mature.
  */
-type *       mature_type(type *tp);
+ir_type *    mature_type(ir_type *tp);
 
 /** Finalize type construction.
  *
@@ -92,7 +98,7 @@ type *       mature_type(type *tp);
  *
  * @param tp     The type to mature.
  */
-type *       mature_type_free(type *tp);
+ir_type *    mature_type_free(ir_type *tp);
 
 /** Finalize type construction.
  *
@@ -109,16 +115,16 @@ type *       mature_type_free(type *tp);
  *
  * @param tp     The type to mature.
  */
-type *       mature_type_free_entities(type *tp);
+ir_type *    mature_type_free_entities(ir_type *tp);
 
 /**
  * The interface type for the type identify module;
  */
 typedef struct _type_identify_if_t {
-  compare_types_func_t *cmp;    /**< The function that should be used to compare two types.
-                                     If NULL, compare_strict() will be used. */
-  hash_types_func_t *hash;      /**< The function that should be used to calculate a hash
-                                     value of a type. If NULL, hash_name() will be used. */
+       compare_types_func_t *cmp;    /**< The function that should be used to compare two types.
+                                          If NULL, compare_strict() will be used. */
+       hash_types_func_t *hash;      /**< The function that should be used to calculate a hash
+                                          value of a type. If NULL, hash_name() will be used. */
 } type_identify_if_t;
 
 /**
@@ -131,4 +137,4 @@ typedef struct _type_identify_if_t {
  */
 void init_type_identify(type_identify_if_t *ti_if);
 
-# endif /* _TYPE_IDENTIFY_H_ */
+#endif /* FIRM_TR_TYPE_IDENTIFY_H */