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.7 by root, Sun Sep 3 23:33:00 2006 UTC vs.
Revision 1.8 by root, Mon Sep 4 11:07:59 2006 UTC

57 shstr::length (v) = len; 57 shstr::length (v) = len;
58 shstr::refcnt (v) = 1; 58 shstr::refcnt (v) = 1;
59 59
60 memcpy ((char *)v, s, len + 1); 60 memcpy ((char *)v, s, len + 1);
61 61
62 return s; 62 return v;
63} 63}
64 64
65const char *shstr::null = makevec ("<nil>"); 65const char *shstr::null = makevec ("<nil>");
66
67// what weird misoptimisation is this again?
68const shstr undead_name ("undead");
66 69
67const char * 70const char *
68shstr::find (const char *s) 71shstr::find (const char *s)
69{ 72{
70 if (!s) 73 if (!s)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines