X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsource-file.hh;h=e4bdc3f63843ac97019412e11d9f328957de7a29;hb=02b8e806dc39fefa22147e75c2b71fd97780610e;hp=2fd1bfc073b9959cb056cd6af6a6dfe08a31e131;hpb=8cab78caa0db1ba14f2e52e4c1ddbb541ea0e5cb;p=lilypond.git diff --git a/lily/include/source-file.hh b/lily/include/source-file.hh index 2fd1bfc073..e4bdc3f638 100644 --- a/lily/include/source-file.hh +++ b/lily/include/source-file.hh @@ -1,9 +1,20 @@ /* - source-file.hh -- declare Source_file + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1999--2012 Jan Nieuwenhuizen - (c) 1999--2009 Jan Nieuwenhuizen + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef SOURCE_FILE_HH @@ -26,7 +37,7 @@ using namespace std; class Source_file { - vector newline_locations_; + vector newline_locations_; istream *istream_; vector characters_; SCM str_port_; @@ -34,7 +45,7 @@ class Source_file void load_stdin (); void init_port (); void init (); - + DECLARE_SMOBS (Source_file); public: Source_file (string fn); @@ -53,8 +64,8 @@ public: public: Slice line_slice (char const *pos_str0) const; string line_string (char const *pos_str0) const; - void get_counts (char const *pos_str0, int *, int *, int *) const; - + void get_counts (char const *pos_str0, int *, int *, int *, int *) const; + SCM get_port () const; string name_;