From: fred Date: Wed, 15 Jan 1997 20:33:54 +0000 (+0000) Subject: lilypond-0.0.23 X-Git-Tag: release/1.5.59~6400 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=efcb97bfdece195cfe1176c330c73fab9d2adfd9;p=lilypond.git lilypond-0.0.23 --- diff --git a/src/lexerinit.cc b/src/lexerinit.cc index b401071f3a..cd2dc79719 100644 --- a/src/lexerinit.cc +++ b/src/lexerinit.cc @@ -1,6 +1,7 @@ #include #include "lexer.hh" #include "debug.hh" +#include "main.hh" My_flex_lexer *lexer=0; @@ -41,16 +42,18 @@ Input_file::Input_file(String s) { name = s; line = 1; - if (s=="") + String pf(s); + if (pf=="") is = &cin; - else - is = new ifstream( s ); - - if ( ! *is) { - String e("can\'t open `" + s+"\'"); - error(e); - } - cout << "["<