Skip to content
Snippets Groups Projects
Commit 68ef3c39 authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

CritBit: Be a little more friendly to MS cpp implementations.

parent e70f0786
Branches
No related tags found
No related merge requests found
#ifndef CB_GC_RECURSE_KEY
# define CB_GC_RECURSE_KEY(X)
#endif
#ifndef CB_GC_CHECK_KEY
# define CB_GC_CHECK_KEY(X)
#endif
INIT { INIT {
THIS->tree.root = NULL; THIS->tree.root = NULL;
THIS->encode_fun = find_identifier THIS->encode_fun = find_identifier
...@@ -671,9 +678,7 @@ range_do_clone: ...@@ -671,9 +678,7 @@ range_do_clone:
if (!node) return; if (!node) return;
WALK_FORWARD(node, { WALK_FORWARD(node, {
if (CB_HAS_VALUE(_)) { if (CB_HAS_VALUE(_)) {
#ifdef CB_GC_CHECK_KEY
CB_GC_CHECK_KEY(_->key); CB_GC_CHECK_KEY(_->key);
#endif
debug_gc_check_svalues(&_->value, 1, " as a CritBit node value"); debug_gc_check_svalues(&_->value, 1, " as a CritBit node value");
} }
}); });
...@@ -684,9 +689,7 @@ range_do_clone: ...@@ -684,9 +689,7 @@ range_do_clone:
if (!node) return; if (!node) return;
WALK_FORWARD(node, { WALK_FORWARD(node, {
if (CB_HAS_VALUE(_)) { if (CB_HAS_VALUE(_)) {
#ifdef CB_GC_RECURSE_KEY
CB_GC_RECURSE_KEY(_->key); CB_GC_RECURSE_KEY(_->key);
#endif
gc_recurse_svalues(&_->value, 1); gc_recurse_svalues(&_->value, 1);
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment