source file of the GNU LilyPond music typesetter
- (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <fstream.h>
// os = new ostream (cout.ostreambuf ());
os = new ostream (cout._strbuf);
if (!*os)
- error (_f ("Can't open file: `%s'", filename));
+ error (_f ("can't open file: `%s'", filename));
nest_level = 0;
line_len_i_ = 0;
- outputting_comment=false;
+ outputting_comment_b_=false;
}
Paper_stream::~Paper_stream ()
// print string. don't forget indent.
Paper_stream&
-Paper_stream::operator << (Scalar s)
+Paper_stream::operator << (String s)
{
for (char const *cp = s.ch_C (); *cp; cp++)
{
- if (outputting_comment)
+ if (outputting_comment_b_)
{
*os << *cp;
if (*cp == '\n')
{
- outputting_comment=false;
-
+ outputting_comment_b_=false;
+ line_len_i_ =0;
}
continue;
}
switch (*cp)
{
case '%':
- outputting_comment = true;
+ outputting_comment_b_ = true;
*os << *cp;
break;
case '{':
{
*os << '\n';
*os << to_str (' ', nest_level);
+ outputting_comment_b_ = false;
line_len_i_ = 0;
}