aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDaniel Colascione2012-10-18 09:00:08 -0800
committerDaniel Colascione2012-10-18 09:00:08 -0800
commit14145a1e84e9c84af22d66ed272bf1b28f597e24 (patch)
tree52a89edca31def885e2105297c756c37fd5a81fa /src/alloc.c
parent393e94faab632affef628462753d2e5587a274b1 (diff)
downloademacs-14145a1e84e9c84af22d66ed272bf1b28f597e24.tar.gz
emacs-14145a1e84e9c84af22d66ed272bf1b28f597e24.zip
Increase NSTATICS; tell the user when we run out of static slots.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 0afe446d269..08dc26784cc 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -376,7 +376,7 @@ struct gcpro *gcprolist;
376/* Addresses of staticpro'd variables. Initialize it to a nonzero 376/* Addresses of staticpro'd variables. Initialize it to a nonzero
377 value; otherwise some compilers put it into BSS. */ 377 value; otherwise some compilers put it into BSS. */
378 378
379#define NSTATICS 0x650 379#define NSTATICS 0x1000
380static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag}; 380static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag};
381 381
382/* Index of next unused slot in staticvec. */ 382/* Index of next unused slot in staticvec. */
@@ -5030,7 +5030,7 @@ staticpro (Lisp_Object *varaddress)
5030{ 5030{
5031 staticvec[staticidx++] = varaddress; 5031 staticvec[staticidx++] = varaddress;
5032 if (staticidx >= NSTATICS) 5032 if (staticidx >= NSTATICS)
5033 emacs_abort (); 5033 fatal ("NSTATICS too small. Try increasing and recompiling Emacs.");
5034} 5034}
5035 5035
5036 5036