diff options
| author | Gerd Moellmann | 2000-12-21 20:40:10 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-21 20:40:10 +0000 |
| commit | ee5263afa850a8ce859b1350ea54344d9c1d472e (patch) | |
| tree | 2e116f32f19540eda825e4cab9c4b800d5cb50bb /src | |
| parent | 88818fbedfeb7c882ac246cdd7369ed3568bf21c (diff) | |
| download | emacs-ee5263afa850a8ce859b1350ea54344d9c1d472e.tar.gz emacs-ee5263afa850a8ce859b1350ea54344d9c1d472e.zip | |
(print_unwind): Return nil.
(PRINTDECLARE): Initialize all local variables.
(print_preprocess): Add a default case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c index b6d12f2a9fb..10e1df934eb 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Lisp object printing and output streams. | 1 | /* Lisp object printing and output streams. |
| 2 | Copyright (C) 1985, 86, 88, 93, 94, 95, 97, 98, 1999 | 2 | Copyright (C) 1985, 86, 88, 93, 94, 95, 97, 98, 1999, 2000 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -190,8 +190,8 @@ void print_interval (); | |||
| 190 | 190 | ||
| 191 | #define PRINTDECLARE \ | 191 | #define PRINTDECLARE \ |
| 192 | struct buffer *old = current_buffer; \ | 192 | struct buffer *old = current_buffer; \ |
| 193 | int old_point = -1, start_point; \ | 193 | int old_point = -1, start_point = -1; \ |
| 194 | int old_point_byte, start_point_byte; \ | 194 | int old_point_byte = -1, start_point_byte = -1; \ |
| 195 | int specpdl_count = specpdl_ptr - specpdl; \ | 195 | int specpdl_count = specpdl_ptr - specpdl; \ |
| 196 | int free_print_buffer = 0; \ | 196 | int free_print_buffer = 0; \ |
| 197 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); \ | 197 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); \ |
| @@ -291,6 +291,7 @@ print_unwind (saved_text) | |||
| 291 | Lisp_Object saved_text; | 291 | Lisp_Object saved_text; |
| 292 | { | 292 | { |
| 293 | bcopy (XSTRING (saved_text)->data, print_buffer, XSTRING (saved_text)->size); | 293 | bcopy (XSTRING (saved_text)->data, print_buffer, XSTRING (saved_text)->size); |
| 294 | return Qnil; | ||
| 294 | } | 295 | } |
| 295 | 296 | ||
| 296 | 297 | ||
| @@ -1186,6 +1187,10 @@ print_preprocess (obj) | |||
| 1186 | size = XVECTOR (obj)->size & PSEUDOVECTOR_SIZE_MASK; | 1187 | size = XVECTOR (obj)->size & PSEUDOVECTOR_SIZE_MASK; |
| 1187 | for (i = 0; i < size; i++) | 1188 | for (i = 0; i < size; i++) |
| 1188 | print_preprocess (XVECTOR (obj)->contents[i]); | 1189 | print_preprocess (XVECTOR (obj)->contents[i]); |
| 1190 | break; | ||
| 1191 | |||
| 1192 | default: | ||
| 1193 | break; | ||
| 1189 | } | 1194 | } |
| 1190 | } | 1195 | } |
| 1191 | } | 1196 | } |