aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-06 14:22:15 +0000
committerGerd Moellmann2000-12-06 14:22:15 +0000
commit96117bc7fbc053b2cf7eed42cc4d765b051352f4 (patch)
treef53df25b0b9f2d724ffc94a004b43ef68ad21d67 /src/alloc.c
parent4f0308e1beef6e472387cb611fa676bda13a275f (diff)
downloademacs-96117bc7fbc053b2cf7eed42cc4d765b051352f4.tar.gz
emacs-96117bc7fbc053b2cf7eed42cc4d765b051352f4.zip
(Fgarbage_collect): Dox fix. Return a list as
advertized by the function documentation.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/alloc.c b/src/alloc.c
index df0ea1e5875..23ab3a3bcd2 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3687,7 +3687,7 @@ DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "",
3687Returns info on amount of space in use:\n\ 3687Returns info on amount of space in use:\n\
3688 ((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS)\n\ 3688 ((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS)\n\
3689 (USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS\n\ 3689 (USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS\n\
3690 (USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS\n\ 3690 (USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS)\n\
3691 (USED-STRINGS . FREE-STRINGS))\n\ 3691 (USED-STRINGS . FREE-STRINGS))\n\
3692Garbage collection happens automatically if you cons more than\n\ 3692Garbage collection happens automatically if you cons more than\n\
3693`gc-cons-threshold' bytes of Lisp data since previous garbage collection.") 3693`gc-cons-threshold' bytes of Lisp data since previous garbage collection.")
@@ -3701,7 +3701,7 @@ Garbage collection happens automatically if you cons more than\n\
3701 char stack_top_variable; 3701 char stack_top_variable;
3702 register int i; 3702 register int i;
3703 int message_p; 3703 int message_p;
3704 Lisp_Object total[7]; 3704 Lisp_Object total[8];
3705 3705
3706 /* In case user calls debug_print during GC, 3706 /* In case user calls debug_print during GC,
3707 don't let that cause a recursive GC. */ 3707 don't let that cause a recursive GC. */
@@ -3921,13 +3921,13 @@ Garbage collection happens automatically if you cons more than\n\
3921 make_number (total_free_symbols)); 3921 make_number (total_free_symbols));
3922 total[2] = Fcons (make_number (total_markers), 3922 total[2] = Fcons (make_number (total_markers),
3923 make_number (total_free_markers)); 3923 make_number (total_free_markers));
3924 total[3] = Fcons (make_number (total_string_size), 3924 total[3] = make_number (total_string_size);
3925 make_number (total_vector_size)); 3925 total[4] = make_number (total_vector_size);
3926 total[4] = Fcons (make_number (total_floats), 3926 total[5] = Fcons (make_number (total_floats),
3927 make_number (total_free_floats)); 3927 make_number (total_free_floats));
3928 total[5] = Fcons (make_number (total_intervals), 3928 total[6] = Fcons (make_number (total_intervals),
3929 make_number (total_free_intervals)); 3929 make_number (total_free_intervals));
3930 total[6] = Fcons (make_number (total_strings), 3930 total[7] = Fcons (make_number (total_strings),
3931 make_number (total_free_strings)); 3931 make_number (total_free_strings));
3932 3932
3933#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES 3933#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
@@ -3946,7 +3946,7 @@ Garbage collection happens automatically if you cons more than\n\
3946 } 3946 }
3947#endif 3947#endif
3948 3948
3949 return Flist (7, total); 3949 return Flist (sizeof total / sizeof *total, total);
3950} 3950}
3951 3951
3952 3952