diff options
author | Kim F. Storm <storm@cua.dk> | 2003-11-25 09:48:15 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2003-11-25 09:48:15 +0000 |
commit | 95e52d88883c4b5e195f7f27ef3779551621f977 (patch) | |
tree | 369a08c934af4200b887b472d192e4fbff64b465 /src/print.c | |
parent | edaa824da3982b910274858468edfe617876081f (diff) | |
download | emacs-95e52d88883c4b5e195f7f27ef3779551621f977.tar.gz |
(Fredirect_debugging_output) [!GNU_LINUX]: Do not
define this defun on systems that cannot use stderr as lvalue.
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 719fb8fd21a..441894471a7 100644 --- a/src/print.c +++ b/src/print.c @@ -911,6 +911,14 @@ to make it write to the debugging output. */) return character; } + +#if defined(GNU_LINUX) + +/* This functionality is not vitally important in general, so we rely on + non-portable ability to use stderr as lvalue. */ + +#define WITH_REDIRECT_DEBUGGING_OUTPUT 1 + FILE *initial_stderr_stream = NULL; DEFUN ("redirect-debugging-output", Fredirect_debugging_output, Sredirect_debugging_output, @@ -943,6 +951,8 @@ append to existing target file. */) } return Qnil; } +#endif /* GNU_LINUX */ + /* This is the interface for debugging printing. */ @@ -2197,7 +2207,9 @@ that need to be recorded in the table. */); defsubr (&Sterpri); defsubr (&Swrite_char); defsubr (&Sexternal_debugging_output); +#ifdef WITH_REDIRECT_DEBUGGING_OUTPUT defsubr (&Sredirect_debugging_output); +#endif Qexternal_debugging_output = intern ("external-debugging-output"); staticpro (&Qexternal_debugging_output); |