diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/csmap.h | 6 | ||||
| -rw-r--r-- | include/stc/forward.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/stc/csmap.h b/include/stc/csmap.h index 5fa2063d..9896340c 100644 --- a/include/stc/csmap.h +++ b/include/stc/csmap.h @@ -316,7 +316,7 @@ cx_memb(_next)(cx_iter_t *it) { it->ref = NULL;
}
-static cx_memb(_size_t)
+STC_DEF cx_memb(_size_t)
cx_memb(_skew_)(cx_node_t *d, cx_memb(_size_t) tn) {
if (tn && d[d[tn].link[0]].level == d[tn].level) {
cx_memb(_size_t) tmp = d[tn].link[0];
@@ -327,7 +327,7 @@ cx_memb(_skew_)(cx_node_t *d, cx_memb(_size_t) tn) { return tn;
}
-static cx_memb(_size_t)
+STC_DEF cx_memb(_size_t)
cx_memb(_split_)(cx_node_t *d, cx_memb(_size_t) tn) {
if (d[d[d[tn].link[1]].link[1]].level == d[tn].level) {
cx_memb(_size_t) tmp = d[tn].link[1];
@@ -442,7 +442,7 @@ cx_memb(_erase_range)(Self* self, cx_iter_t it1, cx_iter_t it2) { }
}
-static cx_memb(_size_t)
+STC_DEF cx_memb(_size_t)
cx_memb(_clone_r_)(Self* self, cx_node_t* src, cx_memb(_size_t) sn) {
if (sn == 0) return 0;
cx_memb(_size_t) tx, tn = cx_memb(_node_new_)(self, src[sn].level);
diff --git a/include/stc/forward.h b/include/stc/forward.h index be05108a..c2ac5e39 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -101,6 +101,7 @@ typedef KEY SELF##_key_t; \
typedef VAL SELF##_mapped_t; \
typedef MAP_SIZE_T SELF##_size_t; \
+ typedef struct SELF##_node_t SELF##_node_t; \
\
typedef SET_ONLY( SELF##_key_t ) \
MAP_ONLY( struct SELF##_value_t ) \
@@ -111,8 +112,6 @@ bool inserted; \
} SELF##_result_t; \
\
- typedef struct SELF##_node_t SELF##_node_t; \
-\
typedef struct { \
SELF##_value_t *ref; \
SELF##_node_t *_d; \
|
