From 406429fdedbaa63937deae73ed4a97fecd92624a Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:52:00 +0000 Subject: [PATCH] lilypond-0.0.47 --- lily/include/input.hh | 32 ---------------- lily/input.cc | 85 ------------------------------------------- 2 files changed, 117 deletions(-) delete mode 100644 lily/include/input.hh delete mode 100644 lily/input.cc diff --git a/lily/include/input.hh b/lily/include/input.hh deleted file mode 100644 index 8677daa116..0000000000 --- a/lily/include/input.hh +++ /dev/null @@ -1,32 +0,0 @@ -/* - input.hh -- declare Input - - source file of the LilyPond music typesetter - - (c) 1997 Han-Wen Nienhuys -*/ - - -#ifndef INPUT_HH -#define INPUT_HH - -/** - Base class for anything that records its poisition in the parse file. - */ -class Input { - char const *defined_ch_C_ ; - Sources * sources_l_; -public: - - void warning(String)const; // should use member func? - void error(String)const; - void message(String)const; - void set_spot(Input const &); - void set_sources(Sources *); - - String location_str()const; - Input(Sources *,char const*); - Input(); -}; - -#endif // INPUT_HH diff --git a/lily/input.cc b/lily/input.cc deleted file mode 100644 index 1ff4e86244..0000000000 --- a/lily/input.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - input.cc -- implement Input - - source file of the LilyPond music typesetter - - (c) 1997 Han-Wen Nienhuys -*/ -#include "proto.hh" -#include "input.hh" -#include "string.hh" -#include "source.hh" -#include "source-file.hh" - -Input::Input(Sources*s, char const *cl) -{ - sources_l_=s; - defined_ch_C_=cl; -} - -Input::Input() -{ - sources_l_ = 0; - defined_ch_C_ = 0; -} - -Input::Input(Input const &s) -{ - sources_l_ = s.sources_l_; - defined_ch_C_ = s.defined_ch_C_; -} - -void -Input::set_spot(Input const &i) -{ - *this = i; -} - -void -Input::message(String message_str)const -{ - String str = ""; - Source_file* sourcefile_l=0; - - if (sources_l_) - sourcefile_l = sources_l_->sourcefile_l( defined_ch_C_ ); - - if ( sourcefile_l ) { - str += sourcefile_l->file_line_no_str(defined_ch_C_) + String(": "); - } - - str += message_str; - if ( sourcefile_l ) { - str += ":\n"; - str += sourcefile_l->error_str( defined_ch_C_); - } - /* - if ( busy_parsing() ) - cerr << endl; - */ - cerr << str << endl; -} - -void -Input::warning( String message_str)const -{ - message( "warning: " + message_str); -} -void -Input::error(String s)const -{ - message("error: "+ s); - exit (1); -} - -String -Input::location_str()const -{ - Source_file * sourcefile_l=0; - if (sources_l_) - sourcefile_l = sources_l_->sourcefile_l (defined_ch_C_); - if (sourcefile_l) - return sourcefile_l->file_line_no_str(defined_ch_C_); - else - return "(location unknown)"; -} -- 2.39.5