summaryrefslogtreecommitdiffhomepage
path: root/ir/ident/ident_t.h
blob: 9e64532484b56ac9f98be19a272a031e6fb206c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @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"

#define get_id_str(x)   get_id_str_(x)

static inline const char *get_id_str_(ident *ident)
{
	return ident;
}

/**
 * Initialize the ident module.
 */
void init_ident(void);

/**
 * Finishes the ident module, frees all entries.
 */
void finish_ident(void);

#define NEW_IDENT(x) new_id_from_chars((x), sizeof(x) - 1)

#endif