+2012-10-18 Daniel Colascione <dancol@dancol.org>
+
+ * alloc.c (NSTATICS): Increase from 0x650 to 0x1000
+ (staticpro): If we run out of staticpro slots, die with an
+ informative error instead of just calling emacs_abort.
+
2012-10-18 Martin Rudalics <rudalics@gmx.at>
Fix two flaws reported by Dmitry Antipov.
/* Addresses of staticpro'd variables. Initialize it to a nonzero
value; otherwise some compilers put it into BSS. */
-#define NSTATICS 0x650
+#define NSTATICS 0x1000
static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag};
/* Index of next unused slot in staticvec. */
{
staticvec[staticidx++] = varaddress;
if (staticidx >= NSTATICS)
- emacs_abort ();
+ fatal ("NSTATICS too small. Try increasing and recompiling Emacs.");
}
\f