diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 43db28e08a0..35ce8a5cfa1 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -535,6 +535,12 @@ memory_full () | |||
| 535 | Fsignal (Qnil, Vmemory_signal_data); | 535 | Fsignal (Qnil, Vmemory_signal_data); |
| 536 | } | 536 | } |
| 537 | 537 | ||
| 538 | DEFUN ("memory-full-p", Fmemory_full_p, Smemory_full_p, 0, 0, 0, | ||
| 539 | doc: /* t if memory is nearly full, nil otherwise. */) | ||
| 540 | () | ||
| 541 | { | ||
| 542 | return (spare_memory ? Qnil : Qt); | ||
| 543 | } | ||
| 538 | 544 | ||
| 539 | /* Called if we can't allocate relocatable space for a buffer. */ | 545 | /* Called if we can't allocate relocatable space for a buffer. */ |
| 540 | 546 | ||
| @@ -6080,6 +6086,7 @@ The time is in seconds as a floating point value. */); | |||
| 6080 | DEFVAR_INT ("gcs-done", &gcs_done, | 6086 | DEFVAR_INT ("gcs-done", &gcs_done, |
| 6081 | doc: /* Accumulated number of garbage collections done. */); | 6087 | doc: /* Accumulated number of garbage collections done. */); |
| 6082 | 6088 | ||
| 6089 | defsubr (&Smemory_full_p); | ||
| 6083 | defsubr (&Scons); | 6090 | defsubr (&Scons); |
| 6084 | defsubr (&Slist); | 6091 | defsubr (&Slist); |
| 6085 | defsubr (&Svector); | 6092 | defsubr (&Svector); |