summaryrefslogtreecommitdiffhomepage
path: root/include/stc/priv
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-20 15:17:07 +0200
committerTyge Løvset <[email protected]>2023-06-20 15:17:07 +0200
commitb617eded8cee98dd3ff9ac896328b172d37fcf91 (patch)
tree0675a59ef9a00762a4e87cff7c1598e38d3f4f8d /include/stc/priv
parent3f919a3b38a88e1c96399cd6096dec16060802a1 (diff)
downloadSTC-modified-b617eded8cee98dd3ff9ac896328b172d37fcf91.tar.gz
STC-modified-b617eded8cee98dd3ff9ac896328b172d37fcf91.zip
Minor internals.
Diffstat (limited to 'include/stc/priv')
-rw-r--r--include/stc/priv/template.h10
-rw-r--r--include/stc/priv/template2.h2
2 files changed, 5 insertions, 7 deletions
diff --git a/include/stc/priv/template.h b/include/stc/priv/template.h
index f70281c7..b3f3eabe 100644
--- a/include/stc/priv/template.h
+++ b/include/stc/priv/template.h
@@ -112,7 +112,6 @@
#if defined i_key_str
#define i_keyclass cstr
#define i_rawclass crawstr
- #define i_keyfrom cstr_from
#ifndef i_tag
#define i_tag str
#endif
@@ -188,7 +187,7 @@
#ifndef i_keyfrom
#define i_keyfrom c_default_clone
#else
- #define _i_has_from
+ #define i_has_emplace
#endif
#ifndef i_keyto
#define i_keyto c_default_toraw
@@ -225,8 +224,7 @@
#ifdef i_val_str
#define i_valclass cstr
- #define i_valraw crawstr
- #define i_valfrom cstr_from
+ #define i_valraw const char*
#elif defined i_val_ssv
#define i_valclass cstr
#define i_valraw csview
@@ -266,7 +264,7 @@
#ifndef i_valfrom
#define i_valfrom c_default_clone
#else
- #define _i_has_from
+ #define i_has_emplace
#endif
#ifndef i_valto
#define i_valto c_default_toraw
@@ -286,7 +284,7 @@
#ifndef i_valraw
#define i_valraw i_keyraw
#endif
-#ifndef _i_has_from
+#ifndef i_has_emplace
#define i_no_emplace
#endif
#endif
diff --git a/include/stc/priv/template2.h b/include/stc/priv/template2.h
index 75402150..4604e610 100644
--- a/include/stc/priv/template2.h
+++ b/include/stc/priv/template2.h
@@ -72,10 +72,10 @@
#undef i_no_clone
#undef i_no_emplace
#undef i_is_forward
+#undef i_has_emplace
#undef _i_prefix
#undef _i_expandby
-#undef _i_has_from
#undef _i_has_eq
#undef _i_has_cmp
#undef _i_template