aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman2005-05-14 14:07:03 +0000
committerRichard M. Stallman2005-05-14 14:07:03 +0000
commit8a4c9dc44eefeeebc211e1ab127b6d2c029e8446 (patch)
treeaf8def768a51c53fd3dd8c1bc6f1c1a402386037 /src/alloc.c
parentc8f440050a5f25d827a0952569602e61916833b1 (diff)
downloademacs-8a4c9dc44eefeeebc211e1ab127b6d2c029e8446.tar.gz
emacs-8a4c9dc44eefeeebc211e1ab127b6d2c029e8446.zip
(Fmemory_full_p): New function.
(syms_of_alloc): defsubr it.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index fb352bd56d8..68f271a8c32 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -534,6 +534,12 @@ memory_full ()
534 Fsignal (Qnil, Vmemory_signal_data); 534 Fsignal (Qnil, Vmemory_signal_data);
535} 535}
536 536
537DEFUN ("memory-full-p", Fmemory_full_p, Smemory_full_p, 0, 0, 0,
538 doc: /* t if memory is nearly full, nil otherwise. */)
539 ()
540{
541 return (spare_memory ? Qnil : Qt);
542}
537 543
538/* Called if we can't allocate relocatable space for a buffer. */ 544/* Called if we can't allocate relocatable space for a buffer. */
539 545
@@ -6078,6 +6084,7 @@ The time is in seconds as a floating point value. */);
6078 DEFVAR_INT ("gcs-done", &gcs_done, 6084 DEFVAR_INT ("gcs-done", &gcs_done,
6079 doc: /* Accumulated number of garbage collections done. */); 6085 doc: /* Accumulated number of garbage collections done. */);
6080 6086
6087 defsubr (&Smemory_full_p);
6081 defsubr (&Scons); 6088 defsubr (&Scons);
6082 defsubr (&Slist); 6089 defsubr (&Slist);
6083 defsubr (&Svector); 6090 defsubr (&Svector);