diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/lisp.h | 3 | ||||
| -rw-r--r-- | src/print.c | 22 |
3 files changed, 20 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 37225e11f76..78d3f0dacd2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * print.c: Make symbols static if they're not exported. | ||
| 4 | (print_depth, new_backquote_output, being_printed, print_buffer): | ||
| 5 | (print_buffer_size, print_buffer_pos, print_buffer_pos_byte): | ||
| 6 | (print_interval, print_number_index, initial_stderr_stream): | ||
| 7 | Now static. | ||
| 8 | * lisp.h (Fprinc): Remove decl. | ||
| 9 | (debug_output_compilation_hack): Mark as externally visible. | ||
| 10 | |||
| 3 | * sysdep.c (croak): Move decl from here to syssignal.h. | 11 | * sysdep.c (croak): Move decl from here to syssignal.h. |
| 4 | * syssignal.h (croak): Put it here, so the API can be checked when | 12 | * syssignal.h (croak): Put it here, so the API can be checked when |
| 5 | 'croak' is called from dissociate_if_controlling_tty. | 13 | 'croak' is called from dissociate_if_controlling_tty. |
diff --git a/src/lisp.h b/src/lisp.h index 288f08e37ce..718f590b55a 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2748,13 +2748,12 @@ extern void debug_print (Lisp_Object) EXTERNALLY_VISIBLE; | |||
| 2748 | extern void safe_debug_print (Lisp_Object) EXTERNALLY_VISIBLE; | 2748 | extern void safe_debug_print (Lisp_Object) EXTERNALLY_VISIBLE; |
| 2749 | EXFUN (Fprin1, 2); | 2749 | EXFUN (Fprin1, 2); |
| 2750 | EXFUN (Fprin1_to_string, 2); | 2750 | EXFUN (Fprin1_to_string, 2); |
| 2751 | EXFUN (Fprinc, 2); | ||
| 2752 | EXFUN (Fterpri, 1); | 2751 | EXFUN (Fterpri, 1); |
| 2753 | EXFUN (Fprint, 2); | 2752 | EXFUN (Fprint, 2); |
| 2754 | EXFUN (Ferror_message_string, 1); | 2753 | EXFUN (Ferror_message_string, 1); |
| 2755 | extern Lisp_Object Qstandard_output; | 2754 | extern Lisp_Object Qstandard_output; |
| 2756 | extern Lisp_Object Qexternal_debugging_output; | 2755 | extern Lisp_Object Qexternal_debugging_output; |
| 2757 | extern void debug_output_compilation_hack (int); | 2756 | extern void debug_output_compilation_hack (int) EXTERNALLY_VISIBLE; |
| 2758 | extern void temp_output_buffer_setup (const char *); | 2757 | extern void temp_output_buffer_setup (const char *); |
| 2759 | extern int print_level; | 2758 | extern int print_level; |
| 2760 | extern Lisp_Object Qprint_escape_newlines; | 2759 | extern Lisp_Object Qprint_escape_newlines; |
diff --git a/src/print.c b/src/print.c index 82040555921..8bc8f98ccee 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -58,25 +58,25 @@ static Lisp_Object Qfloat_output_format; | |||
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | /* Avoid actual stack overflow in print. */ | 60 | /* Avoid actual stack overflow in print. */ |
| 61 | int print_depth; | 61 | static int print_depth; |
| 62 | 62 | ||
| 63 | /* Level of nesting inside outputting backquote in new style. */ | 63 | /* Level of nesting inside outputting backquote in new style. */ |
| 64 | int new_backquote_output; | 64 | static int new_backquote_output; |
| 65 | 65 | ||
| 66 | /* Detect most circularities to print finite output. */ | 66 | /* Detect most circularities to print finite output. */ |
| 67 | #define PRINT_CIRCLE 200 | 67 | #define PRINT_CIRCLE 200 |
| 68 | Lisp_Object being_printed[PRINT_CIRCLE]; | 68 | static Lisp_Object being_printed[PRINT_CIRCLE]; |
| 69 | 69 | ||
| 70 | /* When printing into a buffer, first we put the text in this | 70 | /* When printing into a buffer, first we put the text in this |
| 71 | block, then insert it all at once. */ | 71 | block, then insert it all at once. */ |
| 72 | char *print_buffer; | 72 | static char *print_buffer; |
| 73 | 73 | ||
| 74 | /* Size allocated in print_buffer. */ | 74 | /* Size allocated in print_buffer. */ |
| 75 | EMACS_INT print_buffer_size; | 75 | static EMACS_INT print_buffer_size; |
| 76 | /* Chars stored in print_buffer. */ | 76 | /* Chars stored in print_buffer. */ |
| 77 | EMACS_INT print_buffer_pos; | 77 | static EMACS_INT print_buffer_pos; |
| 78 | /* Bytes stored in print_buffer. */ | 78 | /* Bytes stored in print_buffer. */ |
| 79 | EMACS_INT print_buffer_pos_byte; | 79 | static EMACS_INT print_buffer_pos_byte; |
| 80 | 80 | ||
| 81 | Lisp_Object Qprint_escape_newlines; | 81 | Lisp_Object Qprint_escape_newlines; |
| 82 | static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; | 82 | static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; |
| @@ -89,8 +89,8 @@ static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; | |||
| 89 | N the object has been printed so we can refer to it as #N#. | 89 | N the object has been printed so we can refer to it as #N#. |
| 90 | print_number_index holds the largest N already used. | 90 | print_number_index holds the largest N already used. |
| 91 | N has to be striclty larger than 0 since we need to distinguish -N. */ | 91 | N has to be striclty larger than 0 since we need to distinguish -N. */ |
| 92 | int print_number_index; | 92 | static int print_number_index; |
| 93 | void print_interval (INTERVAL interval, Lisp_Object printcharfun); | 93 | static void print_interval (INTERVAL interval, Lisp_Object printcharfun); |
| 94 | 94 | ||
| 95 | /* GDB resets this to zero on W32 to disable OutputDebugString calls. */ | 95 | /* GDB resets this to zero on W32 to disable OutputDebugString calls. */ |
| 96 | int print_output_debug_flag EXTERNALLY_VISIBLE = 1; | 96 | int print_output_debug_flag EXTERNALLY_VISIBLE = 1; |
| @@ -636,7 +636,7 @@ A printed representation of an object is text which describes that object. */) | |||
| 636 | return unbind_to (count, object); | 636 | return unbind_to (count, object); |
| 637 | } | 637 | } |
| 638 | 638 | ||
| 639 | DEFUE ("princ", Fprinc, Sprinc, 1, 2, 0, | 639 | DEFUN ("princ", Fprinc, Sprinc, 1, 2, 0, |
| 640 | doc: /* Output the printed representation of OBJECT, any Lisp object. | 640 | doc: /* Output the printed representation of OBJECT, any Lisp object. |
| 641 | No quoting characters are used; no delimiters are printed around | 641 | No quoting characters are used; no delimiters are printed around |
| 642 | the contents of strings. | 642 | the contents of strings. |
| @@ -751,7 +751,7 @@ debug_output_compilation_hack (int x) | |||
| 751 | 751 | ||
| 752 | #define WITH_REDIRECT_DEBUGGING_OUTPUT 1 | 752 | #define WITH_REDIRECT_DEBUGGING_OUTPUT 1 |
| 753 | 753 | ||
| 754 | FILE *initial_stderr_stream = NULL; | 754 | static FILE *initial_stderr_stream = NULL; |
| 755 | 755 | ||
| 756 | DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, | 756 | DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, |
| 757 | 1, 2, | 757 | 1, 2, |