summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--stc/cdefs.h6
-rw-r--r--stc/cmap.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/stc/cdefs.h b/stc/cdefs.h
index 45692286..909ba69e 100644
--- a/stc/cdefs.h
+++ b/stc/cdefs.h
@@ -99,12 +99,6 @@ enum {_c_max_buffer = 512};
ctype##_push_n(self, __arr, sizeof __arr/sizeof *__arr); \
} while (0)
-#define c_emplace_items(self, ctype, ...) do { \
- const ctype##_input_t __arr[] = __VA_ARGS__; \
- for (size_t __i=0;__i<sizeof __arr/sizeof *__arr; ++__i) \
- ctype##_emplace(self, __arr[__i]); \
-} while (0)
-
#define c_del(ctype, ...) do { \
ctype##_t* __arr[] = {__VA_ARGS__}; \
for (size_t __i=0; __i<sizeof __arr/sizeof *__arr; ++__i) \
diff --git a/stc/cmap.h b/stc/cmap.h
index e0b85d99..b602f6f4 100644
--- a/stc/cmap.h
+++ b/stc/cmap.h
@@ -65,6 +65,12 @@ int main(void) {
if (__r.second) __r.first->second = val; \
} while (0)
+#define c_insert_items(self, ctype, ...) do { \
+ const ctype##_input_t __arr[] = __VA_ARGS__; \
+ for (size_t __i=0;__i<sizeof __arr/sizeof *__arr; ++__i) \
+ ctype##_insert(self, __arr[__i]); \
+} while (0)
+
/* https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction */
#define chash_reduce(x, N) ((uint32_t) (((uint64_t) (x) * (N)) >> 32))
#define chash_entry_index(h, entryPtr) ((entryPtr) - (h).table)