version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_shstr_c = | | * static char *rcsid_shstr_c = |
* "$Id: shstr.c,v 1.9 2006/03/12 17:03:35 tchize Exp $"; | | * "$Id: shstr.c,v 1.10 2006/03/18 17:15:24 ryo_saeba Exp $"; |
* | | * |
* shstr.c | | * shstr.c |
* | | * |
| | |
add_refcount(const char *str) { | | add_refcount(const char *str) { |
GATHER(add_ref_stats.calls); | | GATHER(add_ref_stats.calls); |
++(SS(str)->refcount); | | ++(SS(str)->refcount); |
/* This function should be declared | | return str; |
* const char *add_refcount(const char *) | | |
* Unfortunately, that would require changing a lot of structs | | |
* | | |
* Yup, many changes, but may have make some bugs more visible :) | | |
* -- Ryo 2005-08-12 | | |
*/ | | |
return (char*)str; | | |
} | | } |
| | |
/* | | /* |