ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/shstr.C
(Generate patch)

Comparing deliantra/server/common/shstr.C (file contents):
Revision 1.18 by root, Tue Sep 12 20:55:40 2006 UTC vs.
Revision 1.19 by root, Wed Sep 13 23:39:27 2006 UTC

1
2/* 1/*
3 * shstr.C 2 * shstr.C
4 */ 3 */
5 4
6#include <cstring> 5#include <cstring>
72// periodically test refcounts == 0 for a few strings 71// periodically test refcounts == 0 for a few strings
73// this is the ONLY thing that erases stuff from ht. keep it that way. 72// this is the ONLY thing that erases stuff from ht. keep it that way.
74void 73void
75shstr::gc () 74shstr::gc ()
76{ 75{
77return; //D
78//D currently disabled: some datastructures might still store them
79//D but their pointers will become invalidated
80 static const char *curpos; 76 static const char *curpos;
81 77
82 HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); 78 HT::iterator i = curpos ? ht.find (curpos) : ht.begin ();
83 79
84 if (i == ht.end ()) 80 if (i == ht.end ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines