diff options
author | Andy Wingo <wingo@pobox.com> | 2014-03-22 15:42:15 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-03-22 15:42:15 +0100 |
commit | 0463a927c4ba4e941a3e7d100c629adf7e64b7c2 (patch) | |
tree | d12ae0d3e58f935ea20b9b8bd1498018fcc906a7 /libguile/init.c | |
parent | 48c2a5395ab647e61fb8f22c344beeded02b8218 (diff) | |
download | guile-0463a927c4ba4e941a3e7d100c629adf7e64b7c2.tar.gz |
Define a C fluid for current-warning-port
* libguile/ports.c (scm_current_input_port, scm_current_output_port)
(scm_current_error_port): Fix declarations to C99.
(scm_current_warning_port, scm_set_current_warning_port): Rework to
use a C fluid, like scm_current_error_port.
(scm_init_ports): Initialize and define the warning port fluid.
* libguile/init.c (scm_init_standard_ports): Init the current warning
port.
* module/ice-9/boot-9.scm: Remove definitions for current-warning-port.
Instead, steal it from the boot objtable with port-parameterize!.
Diffstat (limited to 'libguile/init.c')
-rw-r--r-- | libguile/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/init.c b/libguile/init.c index 54f73a92d..81cf99707 100644 --- a/libguile/init.c +++ b/libguile/init.c @@ -1,5 +1,5 @@ /* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - * 2004, 2006, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2004, 2006, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -222,6 +222,7 @@ scm_init_standard_ports () (scm_standard_stream_to_port (1, isatty (1) ? "w0" : "w")); scm_set_current_error_port (scm_standard_stream_to_port (2, isatty (2) ? "w0" : "w")); + scm_set_current_warning_port (scm_current_error_port ()); } |