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>
15 #include "international.hh"
16 #include "data-file.hh"
19 Data_file::gobble_white()
23 while ((c
=data_get()) == ' ' ||c
== '\t')
32 {// should handle escape seq's
53 while ((c
= data_get()) != '\"')
55 error (_ ("EOF in a string"));
73 if (!rawmode
&& c
== '#') // gobble comment
75 while (!eof_b () && (c
= get()) != '\n')
89 while (!eof_b () && (c
= data_get()) != '\n')
95 Data_file::gobble_leading_white()
109 Data_file::Data_file (String s
)
112 //*mlog << "(" << s << flush;
117 Data_file::warning (String s
)
119 message (_ ("warning: ") + s
);
123 Data_file::error (String s
)
136 s
+= to_str (data_get ());
142 Data_file::~Data_file ()