]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/source-file.cc
* configure.in: check for C language.
[lilypond.git] / lily / source-file.cc
index f4e1ddcfd4ea7669fdb75cfbc39626fe99d26ae3..108c68b6a23e9b3b2a21bb9dc50860ce3a210d5d 100644 (file)
@@ -14,7 +14,7 @@
 #if HAVE_SSTREAM
 #include <sstream>
 #else
-#include <strstream.h>
+#include <strstream>
 #define istringstream(x) istrstream(x, length ()) 
 #endif
 
@@ -81,9 +81,9 @@ Source_file::Source_file (String filename, String data)
   name_ = filename;
   istream_ = 0;
   contents_str0_ = data.get_copy_str0();
-  length_ = data.length();
+  length_ = data.length ();
   pos_str0_ = to_str0 ();
-  init_port();
+  init_port ();
 }
 
 Source_file::Source_file (String filename_string)
@@ -99,7 +99,7 @@ Source_file::Source_file (String filename_string)
   
   pos_str0_ = to_str0 ();
 
-  init_port();
+  init_port ();
 
   for (int i = 0; i < length_; i++)
     if (contents_str0_[i] == '\n')
@@ -261,11 +261,11 @@ Source_file::get_line (char const* pos_str0) const
   if (!contains (pos_str0))
     return 0;
 
-  if (!newline_locations_.size())
+  if (!newline_locations_.size ())
     return 1;
   
   int lo=0;
-  int hi = newline_locations_.size();
+  int hi = newline_locations_.size ();
 
   if (newline_locations_[lo] > pos_str0)
     return 1;