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 1aa07b01da2..1eeea72ea7e 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 | ||
| 537 | DEFUN ("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 | ||
| @@ -6035,6 +6041,7 @@ The time is in seconds as a floating point value. */); | |||
| 6035 | DEFVAR_INT ("gcs-done", &gcs_done, | 6041 | DEFVAR_INT ("gcs-done", &gcs_done, |
| 6036 | doc: /* Accumulated number of garbage collections done. */); | 6042 | doc: /* Accumulated number of garbage collections done. */); |
| 6037 | 6043 | ||
| 6044 | defsubr (&Smemory_full_p); | ||
| 6038 | defsubr (&Scons); | 6045 | defsubr (&Scons); |
| 6039 | defsubr (&Slist); | 6046 | defsubr (&Slist); |
| 6040 | defsubr (&Svector); | 6047 | defsubr (&Svector); |