+2005-04-11 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * xmalloc.c (register_ptr): Warn the user to increase SZ prior to
+ aborting.
+
2005-04-11 Hrvoje Niksic <hniksic@xemacs.org>
* convert.c (convert_cleanup): Free converted_files.
/* Home-grown hash table of mallocs: */
-#define SZ 100003 /* Prime number a little over 100,000.
- Increase the table size if you need
- to debug larger Wget runs. */
+#define SZ 100003 /* Prime just over 100,000. Increase
+ it to debug larger Wget runs. */
static struct {
const void *ptr;
{
int i;
if (malloc_count - free_count > SZ)
- abort ();
+ {
+ fprintf (stderr, "Increase SZ to a larger value and recompile.\n");
+ fflush (stderr);
+ abort ();
+ }
i = ptr_position (ptr);
malloc_table[i].ptr = ptr;