node = _eina_share_common_node_from_str(str, share->node_magic);
if (!node) return str;
node->references++;
- DBG("str=%p refs=%u", str, node->references);
eina_lock_release(&_mutex_big);
if (node->references > 1)
{
node->references--;
- DBG("str=%p refs=%u", str, node->references);
eina_lock_release(&_mutex_big);
return;
}
- DBG("str=%p refs=0, delete.", str);
node->references = 0;
hash = eina_hash_superfast(str, slen);
eina_stringshare_del(const char *str)
{
int slen;
- DBG("str=%p (%s)", str, str ? str : "");
+
if (!str)
return;
EAPI const char *
eina_stringshare_add_length(const char *str, unsigned int slen)
{
- DBG("str=%p (%.*s), slen=%u", str, slen, str ? str : "", slen);
-
if ((!str) || (slen <= 0))
return "";
else if (slen == 1)
eina_stringshare_ref(const char *str)
{
int slen;
- DBG("str=%p (%s)", str, str ? str : "");
if (!str)
return eina_share_common_ref(stringshare_share, str);