aboutsummaryrefslogtreecommitdiff
path: root/src/naming.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-17 20:35:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-17 20:35:09 -0400
commitf4e38fd061a158ecb94881273c6db6e6a332f61d (patch)
tree9179cb312dcc1b24d806dfb65694c25580d1ed8b /src/naming.h
parent602cedd03b0c3d6ef176efafb08f51bde9bfe543 (diff)
Switch from using dollar signs as namespace delimiters to using 々, ヽ, andunicode-identifiers
〇.
Diffstat (limited to 'src/naming.h')
-rw-r--r--src/naming.h7
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);