]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.47
authorfred <fred>
Sun, 24 Mar 2002 19:52:00 +0000 (19:52 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:52:00 +0000 (19:52 +0000)
lily/include/input.hh [deleted file]
lily/input.cc [deleted file]

diff --git a/lily/include/input.hh b/lily/include/input.hh
deleted file mode 100644 (file)
index 8677daa..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-  input.hh -- declare Input
-
-  source file of the LilyPond music typesetter
-
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-
-
-#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 (file)
index 1ff4e86..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-  input.cc -- implement Input
-
-  source file of the LilyPond music typesetter
-
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-*/
-#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)";
-}