2 data-file.cc -- implement Data_file
4 source file of the Flower Library
6 (c) '95, '96, '97 Han-Wen Nienhuys <hanwen@cs.uu.nl>
14 #include "international.hh"
15 #include "data-file.hh"
18 Data_file::gobble_white()
22 while ((c=data_get()) == ' ' ||c == '\t')
31 {// should handle escape seq's
52 while ((c = data_get()) != '\"')
54 error (_ ("EOF in a string"));
72 if (!rawmode && c == '#') // gobble comment
74 while (!eof_b () && (c = get()) != '\n')
88 while (!eof_b () && (c = data_get()) != '\n')
94 Data_file::gobble_leading_white()
108 Data_file::Data_file (String s)
111 //*mlog << "(" << s << flush;
116 Data_file::warning (String s)
118 message (_ ("warning: ") + s);
122 Data_file::error (String s)
135 s += to_str (data_get ());
141 Data_file::~Data_file ()