libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 #include "begin.h"
18 
34 FIRM_API ident *new_id_from_str(const char *str);
35 
45 FIRM_API ident *new_id_from_chars(const char *str, size_t len);
46 
52 FIRM_API ident *new_id_fmt(char const *fmt, ...);
53 
63 FIRM_API const char *get_id_str(ident *id);
64 
69 FIRM_API ident *id_unique(const char *tag);
70 
73 #include "end.h"
74 
75 #endif
const char * get_id_str(ident *id)
Returns a string represented by an ident.
ident * id_unique(const char *tag)
helper function for creating unique idents.
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
ident * new_id_from_chars(const char *str, size_t len)
Store a string and create an ident.