OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1999--2015 Jan Nieuwenhuizen <janneke@gnu.org> | 4 Copyright (C) 1999--2015 Jan Nieuwenhuizen <janneke@gnu.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 duplicates a lot of Data_file and Text_stream. | 33 duplicates a lot of Data_file and Text_stream. |
34 should look at including Data_file's functionality: | 34 should look at including Data_file's functionality: |
35 get_line (), get_word () here. | 35 get_line (), get_word () here. |
36 */ | 36 */ |
37 | 37 |
38 class Source_file : public Smob<Source_file> | 38 class Source_file : public Smob<Source_file> |
39 { | 39 { |
40 public: | 40 public: |
41 int print_smob (SCM, scm_print_state *) const; | 41 int print_smob (SCM, scm_print_state *) const; |
42 SCM mark_smob () const; | 42 SCM mark_smob () const; |
43 static const char type_p_name_[]; | 43 static const char * const type_p_name_; |
44 virtual ~Source_file (); | 44 virtual ~Source_file (); |
45 private: | 45 private: |
46 vector<char const *> newline_locations_; | 46 vector<char const *> newline_locations_; |
47 istream *istream_; | 47 istream *istream_; |
48 vector<char> characters_; | 48 vector<char> characters_; |
49 SCM str_port_; | 49 SCM str_port_; |
50 | 50 |
51 void load_stdin (); | 51 void load_stdin (); |
52 void init_port (); | 52 void init_port (); |
53 void init (); | 53 void init (); |
(...skipping 19 matching lines...) Expand all Loading... |
73 SCM get_port () const; | 73 SCM get_port () const; |
74 string name_; | 74 string name_; |
75 | 75 |
76 protected: | 76 protected: |
77 int line_offset_; | 77 int line_offset_; |
78 }; | 78 }; |
79 | 79 |
80 vector<char> gulp_file (const string &fn, int desired); | 80 vector<char> gulp_file (const string &fn, int desired); |
81 | 81 |
82 #endif /* SOURCE_FILE_HH */ | 82 #endif /* SOURCE_FILE_HH */ |
OLD | NEW |