changeset 19882:b6aaf1f70676

(Fexternal_debugging_output): On Windows output to debugger.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Sep 1997 04:06:46 +0000
parents 3ff7106cf88f
children 519eab181c36
files src/print.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Fri Sep 12 02:14:46 1997 +0000
+++ b/src/print.c	Fri Sep 12 04:06:46 1997 +0000
@@ -731,7 +731,15 @@
 {
   CHECK_NUMBER (character, 0);
   putc (XINT (character), stderr);
-  
+
+#ifdef WINDOWSNT
+  /* Send the output to a debugger (nothing happens if there isn't one).  */
+  {
+    char buf[2] = {(char) XINT (character), '\0'};
+    OutputDebugString (buf);
+  }
+#endif
+
   return character;
 }