diff options
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/print.c b/src/print.c index f68f04ac5fa..6a331cb11f2 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -39,11 +39,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | 39 | ||
| 40 | Lisp_Object Qstandard_output; | 40 | Lisp_Object Qstandard_output; |
| 41 | 41 | ||
| 42 | Lisp_Object Qtemp_buffer_setup_hook; | 42 | static Lisp_Object Qtemp_buffer_setup_hook; |
| 43 | 43 | ||
| 44 | /* These are used to print like we read. */ | 44 | /* These are used to print like we read. */ |
| 45 | 45 | ||
| 46 | Lisp_Object Qfloat_output_format; | 46 | static Lisp_Object Qfloat_output_format; |
| 47 | 47 | ||
| 48 | #include <math.h> | 48 | #include <math.h> |
| 49 | 49 | ||
| @@ -58,28 +58,28 @@ 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 | Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; | 82 | static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; |
| 83 | 83 | ||
| 84 | /* Vprint_number_table is a table, that keeps objects that are going to | 84 | /* Vprint_number_table is a table, that keeps objects that are going to |
| 85 | be printed, to allow use of #n= and #n# to express sharing. | 85 | be printed, to allow use of #n= and #n# to express sharing. |
| @@ -89,8 +89,8 @@ 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; |
| @@ -738,6 +738,7 @@ to make it write to the debugging output. */) | |||
| 738 | /* This function is never called. Its purpose is to prevent | 738 | /* This function is never called. Its purpose is to prevent |
| 739 | print_output_debug_flag from being optimized away. */ | 739 | print_output_debug_flag from being optimized away. */ |
| 740 | 740 | ||
| 741 | extern void debug_output_compilation_hack (int) EXTERNALLY_VISIBLE; | ||
| 741 | void | 742 | void |
| 742 | debug_output_compilation_hack (int x) | 743 | debug_output_compilation_hack (int x) |
| 743 | { | 744 | { |
| @@ -751,7 +752,7 @@ debug_output_compilation_hack (int x) | |||
| 751 | 752 | ||
| 752 | #define WITH_REDIRECT_DEBUGGING_OUTPUT 1 | 753 | #define WITH_REDIRECT_DEBUGGING_OUTPUT 1 |
| 753 | 754 | ||
| 754 | FILE *initial_stderr_stream = NULL; | 755 | static FILE *initial_stderr_stream = NULL; |
| 755 | 756 | ||
| 756 | DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, | 757 | DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, |
| 757 | 1, 2, | 758 | 1, 2, |
| @@ -798,6 +799,7 @@ debug_print (Lisp_Object arg) | |||
| 798 | fprintf (stderr, "\r\n"); | 799 | fprintf (stderr, "\r\n"); |
| 799 | } | 800 | } |
| 800 | 801 | ||
| 802 | void safe_debug_print (Lisp_Object) EXTERNALLY_VISIBLE; | ||
| 801 | void | 803 | void |
| 802 | safe_debug_print (Lisp_Object arg) | 804 | safe_debug_print (Lisp_Object arg) |
| 803 | { | 805 | { |