aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKim F. Storm2006-07-18 13:25:40 +0000
committerKim F. Storm2006-07-18 13:25:40 +0000
commit9b306d3759bc16bdede5feb832a4f8fe785b8827 (patch)
tree6df9290bb952eb9a2a0a764dd544a2d805c48a63 /src/alloc.c
parentd3f31bc5893977c28fcdd0e7edaa30df06328464 (diff)
downloademacs-9b306d3759bc16bdede5feb832a4f8fe785b8827.tar.gz
emacs-9b306d3759bc16bdede5feb832a4f8fe785b8827.zip
(buffer_memory_full, memory_full): Use xsignal. Remove loop.
(list1): New function.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 1d3dc10c411..4b3fa4d7e69 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -559,8 +559,7 @@ buffer_memory_full ()
559 559
560 /* This used to call error, but if we've run out of memory, we could 560 /* This used to call error, but if we've run out of memory, we could
561 get infinite recursion trying to build the string. */ 561 get infinite recursion trying to build the string. */
562 while (1) 562 xsignal (Qnil, Vmemory_signal_data);
563 Fsignal (Qnil, Vmemory_signal_data);
564} 563}
565 564
566 565
@@ -2777,7 +2776,14 @@ check_cons_list ()
2777#endif 2776#endif
2778} 2777}
2779 2778
2780/* Make a list of 2, 3, 4 or 5 specified objects. */ 2779/* Make a list of 1, 2, 3, 4 or 5 specified objects. */
2780
2781Lisp_Object
2782list1 (arg1)
2783 Lisp_Object arg1;
2784{
2785 return Fcons (arg1, Qnil);
2786}
2781 2787
2782Lisp_Object 2788Lisp_Object
2783list2 (arg1, arg2) 2789list2 (arg1, arg2)
@@ -3493,8 +3499,7 @@ memory_full ()
3493 3499
3494 /* This used to call error, but if we've run out of memory, we could 3500 /* This used to call error, but if we've run out of memory, we could
3495 get infinite recursion trying to build the string. */ 3501 get infinite recursion trying to build the string. */
3496 while (1) 3502 xsignal (Qnil, Vmemory_signal_data);
3497 Fsignal (Qnil, Vmemory_signal_data);
3498} 3503}
3499 3504
3500/* If we released our reserve (due to running out of memory), 3505/* If we released our reserve (due to running out of memory),