aboutsummaryrefslogtreecommitdiffstats
path: root/libversit/vobject.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-04-26 09:07:44 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-04-26 09:07:44 +0800
commit36cac270be19b769530a7b68ca6d4e3b79452e41 (patch)
tree6130550502a82dada101bc0b19a8155c6cd49403 /libversit/vobject.h
parent4994d35be03b281011c6ce5e8ff5489eed7486d6 (diff)
downloadgsoc2013-evolution-36cac270be19b769530a7b68ca6d4e3b79452e41.tar.gz
gsoc2013-evolution-36cac270be19b769530a7b68ca6d4e3b79452e41.tar.zst
gsoc2013-evolution-36cac270be19b769530a7b68ca6d4e3b79452e41.zip
Modified to match e_strv_get behaviour. Assert on bad cases, and return ""
2001-04-26 Not Zed <NotZed@Ximian.com> * e-memory.c (e_poolv_get): Modified to match e_strv_get behaviour. Assert on bad cases, and return "" rather than NULL for empty/unset strings. (e_poolv_new): Simplify the mutex cases, only have a single mutex for mempool and hashtable references. (e_poolv_set): Simplify mutex code. Fixed a #ifdef orde prob in profile stuff. Always copy string to our own memory when we add it to the hash, even if we free it; I think this would have led to dangling references otherwise. (e_poolv_destroy): Renamed from poolv_free, for consistency with the rest of the allocators here. (e_poolv_set): Add optional refcounting code here, not currently enabled/used, but should make proper string collection work easily. (e_poolv_destroy): Unrefcount the strings here. (e_poolv_cpy): Add refcounting code here. * e-memory.[ch]: Applied Jacob's patches <jacob@ximian.com> for 'e-poolv' type, added his name to the authors list. svn path=/trunk/; revision=9570
Diffstat (limited to 'libversit/vobject.h')
0 files changed, 0 insertions, 0 deletions