comparison src/stringref.h @ 7791:21be2d9e8399

[gaim-migrate @ 8437] what I came up with while disconnected committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 07 Dec 2003 18:44:49 +0000
parents 203a18e56dc6
children fa6395637e2c
comparison
equal deleted inserted replaced
7790:c2e391c480b6 7791:21be2d9e8399
31 * @note For this structure to be useful, the string contained within 31 * @note For this structure to be useful, the string contained within
32 * it must be immutable -- for this reason, do _not_ access it 32 * it must be immutable -- for this reason, do _not_ access it
33 * directly! 33 * directly!
34 */ 34 */
35 typedef struct _GaimStringref { 35 typedef struct _GaimStringref {
36 unsigned int ref; /**< The reference count of this string. 36 guint32 ref; /**< The reference count of this string.
37 * Note that reference counts are only 37 * Note that reference counts are only
38 * 31 bits, and the high-order bit 38 * 31 bits, and the high-order bit
39 * indicates whether this string is up 39 * indicates whether this string is up
40 * for GC at the next idle handler... 40 * for GC at the next idle handler...
41 * But you aren't going to touch this 41 * But you aren't going to touch this
42 * anyway, right? */ 42 * anyway, right? */
43 char value[0]; /**< The string contained in this ref. 43 char value[0]; /**< The string contained in this ref.
44 * Notice that it is simply "hanging 44 * Notice that it is simply "hanging
45 * off the end" of the ref ... this 45 * off the end" of the ref ... this
46 * is to save an allocation. */ 46 * is to save an allocation. */
47 } GaimStringref; 47 } GaimStringref;
48 48
49 /** 49 /**
50 * Creates an immutable reference-counted string object. The newly 50 * Creates an immutable reference-counted string object. The newly
51 * created object will have a reference count of 1. 51 * created object will have a reference count of 1.