aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-07 16:14:18 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-07 16:14:18 -0500
commit43b0a91664fc0b9a5222805c68c3505fd9634689 (patch)
tree91108b51d0dbc9b6be67e78837d40f15f4dd310a
parent48491f94c96615e8055bcf72ed9009b1d921467f (diff)
Remove debug code
-rw-r--r--src/naming.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/naming.c b/src/naming.c
index 9c0f09e4..d7bb0fb9 100644
--- a/src/naming.c
+++ b/src/naming.c
@@ -94,16 +94,12 @@ Text_t valid_c_name(const char *name) {
return Text$from_str(name);
}
-#include "stdlib/stdlib.h"
public
Text_t CONSTFUNC namespace_name(env_t *env, namespace_t *ns, Text_t name) {
- if (Text$has(name, Text("\n"))) fail("WTF??");
for (; ns; ns = ns->parent) {
- if (strchr(ns->name, '\n')) fail("WTF");
name = Texts(ns->name, "$", name);
}
if (env->id_suffix.length > 0) name = Texts(name, env->id_suffix);
- if (Text$has(env->id_suffix, Text("\n"))) fail("WTF?????");
return name;
}