summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stc/ccommon.h12
-rw-r--r--include/stc/priv/template.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index 77f754fa..2528b94f 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -124,12 +124,12 @@ typedef long long _llong;
#define c_litstrlen(literal) (c_sizeof("" literal) - 1)
#define c_arraylen(a) (intptr_t)(sizeof(a)/sizeof 0[a])
-// Non-owning c-string
-typedef const char* crawstr;
-#define crawstr_clone(s) (s)
-#define crawstr_drop(p) ((void)p)
-#define crawstr_cmp(xp, yp) strcmp(*(xp), *(yp))
-#define crawstr_hash(p) cstrhash(*(p))
+// Non-owning c-string "class"
+typedef const char* ccharptr;
+#define ccharptr_cmp(xp, yp) strcmp(*(xp), *(yp))
+#define ccharptr_hash(p) cstrhash(*(p))
+#define ccharptr_clone(s) (s)
+#define ccharptr_drop(p) ((void)p)
#define c_sv(...) c_MACRO_OVERLOAD(c_sv, __VA_ARGS__)
#define c_sv_1(lit) c_sv_2(lit, c_litstrlen(lit))
diff --git a/include/stc/priv/template.h b/include/stc/priv/template.h
index 0f4ac893..49b4d8da 100644
--- a/include/stc/priv/template.h
+++ b/include/stc/priv/template.h
@@ -111,7 +111,7 @@
#if defined i_key_str
#define i_keyclass cstr
- #define i_rawclass crawstr
+ #define i_rawclass ccharptr
#ifndef i_tag
#define i_tag str
#endif