… | |
… | |
166 | static const char *find (const char *s); |
166 | static const char *find (const char *s); |
167 | static const char *intern (const char *s); |
167 | static const char *intern (const char *s); |
168 | |
168 | |
169 | static void gc (); // garbage collect a few strings |
169 | static void gc (); // garbage collect a few strings |
170 | |
170 | |
|
|
171 | shstr (const shstr &sh) |
|
|
172 | : shstr_tmp (sh) |
|
|
173 | { |
|
|
174 | ++refcnt (); |
|
|
175 | } |
|
|
176 | |
171 | shstr (const shstr_tmp &sh) |
177 | shstr (const shstr_tmp &sh) |
172 | : shstr_tmp (sh) |
178 | : shstr_tmp (sh) |
173 | { |
179 | { |
174 | ++refcnt (); |
180 | ++refcnt (); |
175 | } |
181 | } |