libFirm
|
Typedefs | |
typedef const char | ident |
Identifier. More... | |
Functions | |
ident * | new_id_from_str (const char *str) |
Store a string and create an ident. More... | |
ident * | new_id_from_chars (const char *str, size_t len) |
Store a string and create an ident. More... | |
ident * | new_id_fmt (char const *fmt,...) |
Create an ident from a format string. More... | |
const char * | get_id_str (ident *id) |
Returns a string represented by an ident. More... | |
ident * | id_unique (const char *tag) |
helper function for creating unique idents. More... | |
typedef const char ident |
Identifier.
Definition at line 50 of file firm_types.h.
const char* get_id_str | ( | ident * | id | ) |
Returns a string represented by an ident.
Returns the string represented by id. This string is NULL terminated. The string may not be changed.
id | the ident |
ident* id_unique | ( | const char * | tag | ) |
helper function for creating unique idents.
It contains an internal counter and replaces a "%u" inside the tag with the counter.
ident* new_id_fmt | ( | char const * | fmt, |
... | |||
) |
Create an ident from a format string.
ident* new_id_from_chars | ( | const char * | str, |
size_t | len | ||
) |
Store a string and create an ident.
Stores a string in the ident module and returns a handle for the string. Copies the string. This version takes non-zero-terminated strings.
str | the string (or whatever) which shall be stored |
len | the length of the data in bytes |
ident* new_id_from_str | ( | const char * | str | ) |
Store a string and create an ident.
Stores a string in the ident module and returns a handle for the string.
Copies the string. str
must be zero terminated
str | the string which shall be stored |