diff options
Diffstat (limited to 'src/naming.h')
| -rw-r--r-- | src/naming.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/naming.h b/src/naming.h index 30d4d061..aa06ea92 100644 --- a/src/naming.h +++ b/src/naming.h @@ -5,6 +5,13 @@ #include "environment.h" #include "stdlib/datatypes.h" +extern const Text_t SEP; +extern const Text_t ID_PREFIX; +extern const Text_t INTERNAL_PREFIX; + +#define INTERNAL_ID(id) Textヽconcat(INTERNAL_PREFIX, _Generic(id, const char*: Textヽfrom_str, char*: Textヽfrom_str, Text_t: Text_from_text)(id)) +#define USER_ID(id) Textヽconcat(ID_PREFIX, _Generic(id, const char*: Textヽfrom_str, char*: Textヽfrom_str, Text_t: Text_from_text)(id)) + Text_t valid_c_name(const char *name); Text_t namespace_name(env_t *env, namespace_t *ns, Text_t name); Text_t get_id_suffix(const char *filename); |
