libFirm
Loading...
Searching...
No Matches
ident.h
1/*
2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
4 */
5
12#ifndef FIRM_IDENT_H
13#define FIRM_IDENT_H
14
15#include <stddef.h>
16#include "firm_types.h"
17
18#include "begin.h"
19
35FIRM_API ident *new_id_from_str(const char *str);
36
46FIRM_API ident *new_id_from_chars(const char *str, size_t len);
47
53FIRM_API ident *new_id_fmt(char const *fmt, ...);
54
64FIRM_API const char *get_id_str(ident *id);
65
70FIRM_API ident *id_unique(const char *tag);
71
74#include "end.h"
75
76#endif
ident * id_unique(const char *tag)
helper function for creating unique idents.
ident * new_id_from_chars(const char *str, size_t len)
Store a string and create an ident.
const char * get_id_str(ident *id)
Returns a string represented by an ident.
ident * new_id_fmt(char const *fmt,...)
Create an ident from a format string.
ident * new_id_from_str(const char *str)
Store a string and create an ident.
const char ident
Identifier.
Definition firm_types.h:50