2000-06-27
2000-06-27 15:24:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
2a515a633a85748339a4091281983c59d530b68b
(22 lines)
(+15/-7)
[
Show
| Annotate
]
Branch: 7.9
Fixed warning.
Rev: src/stralloc.c:1.83
25:
#define HUGE HUGE_VAL
#endif /*!HUGE*/
- RCSID("$Id: stralloc.c,v 1.82 2000/04/15 05:05:28 hubbe Exp $");
+ RCSID("$Id: stralloc.c,v 1.83 2000/06/27 15:24:34 grubba Exp $");
#define BEGIN_HASH_SIZE 997
#define MAX_AVG_LINK_LENGTH 3
596:
default:
fatal("Unknown string width!\n");
}
+ /* NOT REACHED */
+ return NULL; /* Keep the compiler happy */
}
struct pike_string * debug_make_shared_pcharp(const PCHARP str)
717: Inside #if defined(PIKE_DEBUG)
{
#ifdef PIKE_DEBUG
extern int d_flag;
+ if (d_flag) {
+ if (s->refs) {
+ fatal("Freeing string with references!\n");
+ }
if(d_flag > 2)
{
if(s->next == (struct pike_string *)-1)
725: Inside #if defined(PIKE_DEBUG)
if(((long)s->next) & 1)
fatal("Freeing shared string again, memory corrupt or other bug!\n");
}
+ }
#endif
unlink_pike_string(s);
debug_free((char *)s,DMALLOC_LOCATION(),1);