From f4e38fd061a158ecb94881273c6db6e6a332f61d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Aug 2025 20:35:09 -0400 Subject: =?UTF-8?q?Switch=20from=20using=20dollar=20signs=20as=20namespace?= =?UTF-8?q?=20delimiters=20to=20using=20=E3=80=85,=20=E3=83=BD,=20and=20?= =?UTF-8?q?=E3=80=87.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/naming.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/naming.h') 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); -- cgit v1.2.3