#if HAVE_SSTREAM
#include <sstream>
#else
-#include <strstream.h>
+#include <strstream>
#define istringstream(x) istrstream(x, length ())
#endif
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)
pos_str0_ = to_str0 ();
- init_port();
+ init_port ();
for (int i = 0; i < length_; i++)
if (contents_str0_[i] == '\n')
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;