]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/source-file.hh
* lily/lexer.ll: Add \sourcefileline command
[lilypond.git] / lily / include / source-file.hh
index dd88a2c65ae2255263dcf8c467bc7ec58120fed3..33b4051c4cc2e97190429acc3d1a1f7148d7f59a 100644 (file)
@@ -39,6 +39,7 @@ public:
   bool contains (char const *pos_str0) const;
   int length () const;
   virtual int get_line (char const *pos_str0) const;
+  void set_line (char const *pos_str0, int i);
   string name_string () const;
   string file_line_column_string (char const *str0) const;
 
@@ -66,6 +67,9 @@ public:
   SCM get_port () const;
   string name_;
 
+protected:
+  int line_offset_;
+
 private:
   vector<char*> newline_locations_;
   istream *istream_;