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.1.1.2 by elmex, Wed Mar 15 14:04:38 2006 UTC vs.
Revision 1.2 by elmex, Sun Aug 13 17:16:01 2006 UTC

1/* 1/*
2 * static char *rcsid_shstr_c = 2 * static char *rcsid_shstr_c =
3 * "$Id: shstr.c,v 1.1.1.2 2006/03/15 14:04:38 elmex Exp $"; 3 * "$Id: shstr.c,v 1.2 2006/08/13 17:16:01 elmex dead $";
4 * 4 *
5 * shstr.c 5 * shstr.c
6 * 6 *
7 * This is a simple shared strings package with a simple interface. 7 * This is a simple shared strings package with a simple interface.
8 * 8 *
220 * - length 220 * - length
221 */ 221 */
222 222
223int 223int
224query_refcount(const char *str) { 224query_refcount(const char *str) {
225 return (SS(str)->refcount) & ~TOPBIT; 225 return SS(str)->refcount;
226} 226}
227 227
228/* 228/*
229 * Description: 229 * Description:
230 * This will see if str is in the hash table, and return the address 230 * This will see if str is in the hash table, and return the address

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines