Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/data Modified Files: evas_stringshare.c Log Message: stringshare works! :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/data/evas_stringshare.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_stringshare.c 29 Nov 2005 03:01:56 -0000 1.2 +++ evas_stringshare.c 30 Nov 2005 08:45:20 -0000 1.3 @@ -11,8 +11,8 @@ struct _Evas_Stringshare_El { - int references; Evas_Stringshare_El *next, *prev; + int references; }; static inline int _evas_stringshare_hash_gen(const char *str); @@ -73,6 +73,7 @@ if (el->next) el->next->prev = el->prev; el->prev = NULL; el->next = share.buckets[hash_num]; + el->next->prev = el; share.buckets[hash_num] = el; } el->references++; @@ -85,6 +86,7 @@ el->references = 1; el->prev = NULL; el->next = share.buckets[hash_num]; + if (el->next) el->next->prev = el; share.buckets[hash_num] = el; return el_str; } @@ -108,7 +110,6 @@ if (el->next) el->next->prev = el->prev; if (el->prev) el->prev->next = el->next; else share.buckets[hash_num] = el->next; - share.buckets[hash_num] = evas_object_list_remove(share.buckets[hash_num], el); free(el); } else @@ -119,6 +120,7 @@ if (el->next) el->next->prev = el->prev; el->prev = NULL; el->next = share.buckets[hash_num]; + el->next->prev = el; share.buckets[hash_num] = el; } } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs