23 lines
501 B
C
23 lines
501 B
C
#ifndef IVY_IDENT_H_
|
|
#define IVY_IDENT_H_
|
|
|
|
#include <blue/core/queue.h>
|
|
#include <ivy/misc.h>
|
|
#include <stddef.h>
|
|
|
|
struct ivy_ident_part {
|
|
char *p_str;
|
|
b_queue_entry p_entry;
|
|
};
|
|
|
|
struct ivy_ident {
|
|
b_queue id_parts;
|
|
};
|
|
|
|
IVY_API struct ivy_ident *ivy_ident_create(void);
|
|
IVY_API void ivy_ident_destroy(struct ivy_ident *ident);
|
|
|
|
IVY_API void ivy_ident_add_part(struct ivy_ident *ident, const char *s);
|
|
IVY_API size_t ivy_ident_to_string(const struct ivy_ident *ident, char *out, size_t max);
|
|
|
|
#endif |