From 7bc2475e3b7e051278072821766160234a33b96e Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 22 Jan 2003 17:49:13 +0000 Subject: homygod (bis) --- lib/Input.cc | 4 ++-- lib/Output.cc | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/Input.cc b/lib/Input.cc index 4c9ad2e..7427c38 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -123,9 +123,7 @@ void Input::SetZ(int l) throw(GeneralException) { Handle::SetZ(l); } -#ifdef HOOK_STDS Stdin_t::Stdin_t() { } -#endif bool Stdin_t::CanSeek() const { return 0; @@ -135,7 +133,9 @@ String Stdin_t::GetName() const { return "Stdin"; } +#ifdef HOOK_STDS Stdin_t Stdin; +#endif Archive * Archive::header = 0; diff --git a/lib/Output.cc b/lib/Output.cc index e9016f9..811918c 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -76,9 +76,7 @@ String Output::GetName() const { return n; } -#ifdef HOOK_STDS Stdout_t::Stdout_t() {} -#endif bool Stdout_t::CanSeek() const { return 0; @@ -88,9 +86,7 @@ String Stdout_t::GetName() const { return "Stdout"; } -#ifdef HOOK_STDS Stderr_t::Stderr_t() : Handle(dup(2)) {} -#endif bool Stderr_t::CanWrite() const { return 1; @@ -108,5 +104,7 @@ String Stderr_t::GetName() const { return "Stderr"; } +#ifdef HOOK_STDS Stdout_t Stdout; Stderr_t Stderr; +#endif -- cgit v1.2.3