Index: mttroot/mtt/cc/parse_m2cc.cc ================================================================== --- mttroot/mtt/cc/parse_m2cc.cc +++ mttroot/mtt/cc/parse_m2cc.cc @@ -1,7 +1,10 @@ /* $Id$ * $Log$ + * Revision 1.1.2.1 2001/03/09 02:59:26 geraint + * got_comment: (char)c no longer compared to (int)EOF. + * * Revision 1.1 2000/12/28 09:46:05 peterg * put under RCS * * Revision 1.1 2000/10/31 04:29:50 geraint * Initial revision @@ -310,10 +313,22 @@ */ << indent () << ';' << endl << indent (); } buf = ""; + break; + case '\\': + cin >> c; + if ('\n' == c) + { + buf += '\n'; + } + else + { + buf += '\\'; + buf += c; + } break; default: buf += c; } if (lbrace->get_nesting_depth ())