bearch: Disallow passing Projs to get_irn_ops().
[libfirm] / ir / ident / ident_t.h
index 2fbf2d6..3b72e30 100644 (file)
@@ -1,40 +1,31 @@
 /*
- * Project:     libFIRM
- * File name:   ir/common/ident_t.h
- * Purpose:     Hash table to store names -- private header.
- * Author:      Goetz Lindenmaier
- * Modified by:
- * Created:
- * CVS-ID:      $Id$
- * Copyright:   (c) 1999-2003 Universität Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ * This file is part of libFirm.
+ * Copyright (C) 2012 University of Karlsruhe.
  */
 
-# ifndef _IDENT_T_H_
-# define _IDENT_T_H_
+/**
+ * @file
+ * @brief    Hash table to store names -- private header.
+ * @author   Goetz Lindenmaier
+ */
+#ifndef FIRM_IDENT_IDENT_T_H
+#define FIRM_IDENT_IDENT_T_H
 
-# include "ident.h"
+#include "ident.h"
 
 /**
  * Initialize the ident module.
- *
- * @param id_if             The ident module interface, if NULL, the default
- *                          libFirm ident module will be used.
- * @param initial_n_idents  Only used in the default libFirm ident module, initial
- *                          number of entries in the hash table.
  */
-void init_ident (ident_if_t *id_if, int initial_n_idents);
+void init_ident(void);
 
 /**
  * Finishes the ident module, frees all entries.
  */
-void finish_ident (void);
+void finish_ident(void);
+
+/** initializes the name mangling code */
+void firm_init_mangle(void);
 
-/** The hash function of the internal ident module implementation. */
-#define ID_HASH(type, str, len) \
-  (((  ((type *)(str))[0] * 33 \
-     + ((type *)(str))[(len)>>1]) * 31 \
-    + ((type *)(str))[(len)-1]) * 9 \
-   + (len))
+void firm_finish_mangle(void);
 
-# endif /* _IDENT_T_H_ */
+#endif