preprocessor flag for node_nr
[libfirm] / ir / ident / ident_t.h
index 6cdb55c..2aa1947 100644 (file)
 
 # include "ident.h"
 
-void id_init (int initial_n_idents);
+/**
+ * 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);
+
+/**
+ * Finishes the ident module, frees all entries.
+ */
+void finish_ident (void);
 
+/** The hash function of the internal ident module implementation. */
 #define ID_HASH(str, len) \
   (((  ((unsigned char *)(str))[0] * 33 \
      + ((unsigned char *)(str))[(len)>>1]) * 31 \