aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
authorPaul Eggert2012-08-21 16:39:56 -0700
committerPaul Eggert2012-08-21 16:39:56 -0700
commitfce31d69dc4d6ff8810d499deebe568437fbf38b (patch)
tree4deb5628e430c3f756d235cdbb87244680636173 /src/print.c
parentd0d2d26fba3df1121108fcf80e4a26549d7736a3 (diff)
downloademacs-fce31d69dc4d6ff8810d499deebe568437fbf38b.tar.gz
emacs-fce31d69dc4d6ff8810d499deebe568437fbf38b.zip
* alloc.c: Use bool for booleans.
(gc_in_progress, abort_on_gc) (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: (dont_register_blocks) [GC_MALLOC_CHECK]: (suppress_checking) [ENABLE_CHECKING]: Now bool, not int. (check_string_bytes, make_specified_string, memory_full) (live_string_p, live_cons_p, live_symbol_p, live_float_p) (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object) (mark_stack, valid_pointer_p, make_pure_string) (Fgarbage_collect, survives_gc_p, gc_sweep): Use bool for booleans, instead of int. (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: Remove unused local. * alloc.c (PURE_POINTER_P): * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean. * editfns.c (Fformat): * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name) (Fdo_auto_save): * fns.c (sweep_weak_table): * lisp.h (suppress_checking, push_message, survives_gc_p) (make_pure_string, gc_in_progress, abort_on_gc): * lread.c (readchar, read1): * print.c (Fprin1_to_string): * xdisp.c (push_message): Use bool for booleans affected directly or indirectly by alloc.c's changes.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index 223a79dc552..64449aeaf2a 100644
--- a/src/print.c
+++ b/src/print.c
@@ -586,6 +586,7 @@ A printed representation of an object is text which describes that object. */)
586 (Lisp_Object object, Lisp_Object noescape) 586 (Lisp_Object object, Lisp_Object noescape)
587{ 587{
588 Lisp_Object printcharfun; 588 Lisp_Object printcharfun;
589 bool prev_abort_on_gc;
589 /* struct gcpro gcpro1, gcpro2; */ 590 /* struct gcpro gcpro1, gcpro2; */
590 Lisp_Object save_deactivate_mark; 591 Lisp_Object save_deactivate_mark;
591 ptrdiff_t count = SPECPDL_INDEX (); 592 ptrdiff_t count = SPECPDL_INDEX ();
@@ -601,7 +602,8 @@ A printed representation of an object is text which describes that object. */)
601 No need for specbind, since errors deactivate the mark. */ 602 No need for specbind, since errors deactivate the mark. */
602 save_deactivate_mark = Vdeactivate_mark; 603 save_deactivate_mark = Vdeactivate_mark;
603 /* GCPRO2 (object, save_deactivate_mark); */ 604 /* GCPRO2 (object, save_deactivate_mark); */
604 abort_on_gc++; 605 prev_abort_on_gc = abort_on_gc;
606 abort_on_gc = 1;
605 607
606 printcharfun = Vprin1_to_string_buffer; 608 printcharfun = Vprin1_to_string_buffer;
607 PRINTPREPARE; 609 PRINTPREPARE;
@@ -625,7 +627,7 @@ A printed representation of an object is text which describes that object. */)
625 Vdeactivate_mark = save_deactivate_mark; 627 Vdeactivate_mark = save_deactivate_mark;
626 /* UNGCPRO; */ 628 /* UNGCPRO; */
627 629
628 abort_on_gc--; 630 abort_on_gc = prev_abort_on_gc;
629 return unbind_to (count, object); 631 return unbind_to (count, object);
630} 632}
631 633