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.13 by root, Sun Sep 10 16:00:23 2006 UTC vs.
Revision 1.15 by root, Tue Sep 12 00:26:16 2006 UTC

43 shstr::null = makevec ("<nil>"); 43 shstr::null = makevec ("<nil>");
44 44
45// what weird misoptimisation is this again? 45// what weird misoptimisation is this again?
46const shstr undead_name ("undead"); 46const shstr undead_name ("undead");
47 47
48shstr skill_names[NUM_SKILLS];
49
48const char * 50const char *
49shstr::find (const char *s) 51shstr::find (const char *s)
50{ 52{
51 if (!s) 53 if (!s)
52 return s; 54 return s;
76// periodically test refcounts == 0 for a few strings 78// periodically test refcounts == 0 for a few strings
77// this is the ONLY thing that erases stuff from ht. keep it that way. 79// this is the ONLY thing that erases stuff from ht. keep it that way.
78void 80void
79shstr::gc () 81shstr::gc ()
80{ 82{
83return; //D
84//D currently disabled: some datastructures might still store them
85//D but their pointers will become invalidated
81 static const char *curpos; 86 static const char *curpos;
82 87
83 HT::iterator i = curpos ? ht.find (curpos) : ht.begin (); 88 HT::iterator i = curpos ? ht.find (curpos) : ht.begin ();
84 89
85 if (i == ht.end ()) 90 if (i == ht.end ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines