aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
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);