aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c28
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
40Lisp_Object Qstandard_output; 40Lisp_Object Qstandard_output;
41 41
42Lisp_Object Qtemp_buffer_setup_hook; 42static 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
46Lisp_Object Qfloat_output_format; 46static 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. */
61int print_depth; 61static 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. */
64int new_backquote_output; 64static 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
68Lisp_Object being_printed[PRINT_CIRCLE]; 68static 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. */
72char *print_buffer; 72static char *print_buffer;
73 73
74/* Size allocated in print_buffer. */ 74/* Size allocated in print_buffer. */
75EMACS_INT print_buffer_size; 75static EMACS_INT print_buffer_size;
76/* Chars stored in print_buffer. */ 76/* Chars stored in print_buffer. */
77EMACS_INT print_buffer_pos; 77static EMACS_INT print_buffer_pos;
78/* Bytes stored in print_buffer. */ 78/* Bytes stored in print_buffer. */
79EMACS_INT print_buffer_pos_byte; 79static EMACS_INT print_buffer_pos_byte;
80 80
81Lisp_Object Qprint_escape_newlines; 81Lisp_Object Qprint_escape_newlines;
82Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; 82static 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. */
92int print_number_index; 92static int print_number_index;
93void print_interval (INTERVAL interval, Lisp_Object printcharfun); 93static 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. */
96int print_output_debug_flag EXTERNALLY_VISIBLE = 1; 96int 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
741extern void debug_output_compilation_hack (int) EXTERNALLY_VISIBLE;
741void 742void
742debug_output_compilation_hack (int x) 743debug_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
754FILE *initial_stderr_stream = NULL; 755static FILE *initial_stderr_stream = NULL;
755 756
756DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, 757DEFUN ("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
802void safe_debug_print (Lisp_Object) EXTERNALLY_VISIBLE;
801void 803void
802safe_debug_print (Lisp_Object arg) 804safe_debug_print (Lisp_Object arg)
803{ 805{