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>
12 #include "international.hh"
13 #include "data-file.hh"
16 Data_file::gobble_white()
20 while ((c=data_get()) == ' ' ||c == '\t')
29 {// should handle escape seq's
50 while ((c = data_get()) != '\"')
52 error (_ ("EOF in a string"));
70 if (!rawmode && c == '#') // gobble comment
72 while (!eof_b () && (c = get()) != '\n')
86 while (!eof_b () && (c = data_get()) != '\n')
92 Data_file::gobble_leading_white()
106 Data_file::Data_file (String s)
109 //*mlog << "(" << s << flush;
114 Data_file::warning (String s)
116 message (_ ("warning: ") + s);
120 Data_file::error (String s)
133 s += to_str (data_get ());
139 Data_file::~Data_file ()