Fixed eols for pp directives, honor original eols.

svn path=/trunk/; revision=10638
This commit is contained in:
Art Yerkes 2004-08-21 19:59:52 +00:00
parent 7f5aece68d
commit 8da48834d5

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: ms2ps.cpp,v 1.3 2004/08/21 19:49:22 arty Exp $
/* $Id: ms2ps.cpp,v 1.4 2004/08/21 19:59:52 arty Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS seh conversion tool
* FILE: tools/ms2ps/ms2ps.cpp
@ -220,6 +220,7 @@ bool expand_input( sl_t &tok ) {
tok.push_back( line );
tok.push_back( "\n" );
}
tok.push_back( "\n" );
} else {
new_tokens = snarf_tokens( line );
tok.splice( tok.end(), new_tokens );
@ -395,7 +396,8 @@ void handle_try( sl_t &container, sl_it try_kw, sl_it end ) {
void print_tokens( sl_it begin, sl_it end ) {
for( sl_it i = begin; i != end; i++ )
cout << /*"[" <<*/ *i << /*"]" <<*/ " ";
if( *i == "\n" ) cout << *i;
else cout << /*"[" <<*/ *i << /*"]" <<*/ " ";
}
int main( int argc, char **argv ) {