Mercurial > emacs
comparison src/print.c @ 69678:551e94bacb60
(print_output_debug_flag): New global variable.
(Fexternal_debugging_output) [WINDOWSNT]: Don't call OutputDebugString if
print_output_debug_flag is zero.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 25 Mar 2006 17:58:37 +0000 |
parents | 3bd95f4f2941 |
children | 11a1ce8b2fe4 c1e013e3dc0e e6bf73e43cf4 |
comparison
equal
deleted
inserted
replaced
69677:cc26b4c9f86e | 69678:551e94bacb60 |
---|---|
179 static int print_chars; | 179 static int print_chars; |
180 static int max_print; | 180 static int max_print; |
181 #endif /* MAX_PRINT_CHARS */ | 181 #endif /* MAX_PRINT_CHARS */ |
182 | 182 |
183 void print_interval (); | 183 void print_interval (); |
184 | |
185 /* GDB resets this to zero on W32 to disable OutputDebugString calls. */ | |
186 int print_output_debug_flag = 1; | |
184 | 187 |
185 | 188 |
186 /* Low level output routines for characters and strings */ | 189 /* Low level output routines for characters and strings */ |
187 | 190 |
188 /* Lisp functions to do output using a stream | 191 /* Lisp functions to do output using a stream |
907 CHECK_NUMBER (character); | 910 CHECK_NUMBER (character); |
908 putc (XINT (character), stderr); | 911 putc (XINT (character), stderr); |
909 | 912 |
910 #ifdef WINDOWSNT | 913 #ifdef WINDOWSNT |
911 /* Send the output to a debugger (nothing happens if there isn't one). */ | 914 /* Send the output to a debugger (nothing happens if there isn't one). */ |
912 { | 915 if (print_output_debug_flag) |
913 char buf[2] = {(char) XINT (character), '\0'}; | 916 { |
914 OutputDebugString (buf); | 917 char buf[2] = {(char) XINT (character), '\0'}; |
915 } | 918 OutputDebugString (buf); |
919 } | |
916 #endif | 920 #endif |
917 | 921 |
918 return character; | 922 return character; |
919 } | 923 } |
920 | 924 |