* 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.2 2004/08/08 22:07:06 arty Exp $
+/* $Id: ms2ps.cpp,v 1.5 2004/09/12 10:22:31 navaraf Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS seh conversion tool
* FILE: tools/ms2ps/ms2ps.cpp
while( line[line.size()-1] == '\\' ) {
getline_no_comments( cin, line );
tok.push_back( line );
+ tok.push_back( "\n" );
}
+ tok.push_back( "\n" );
} else {
new_tokens = snarf_tokens( line );
tok.splice( tok.end(), new_tokens );
+ tok.push_back( "\n" );
}
return out;
void print_tokens( sl_it begin, sl_it end ) {
for( sl_it i = begin; i != end; i++ )
- cout << /*"[" <<*/ *i << /*"]" <<*/ endl;
+ if( *i == "\n" ) cout << *i;
+ else cout << /*"[" <<*/ *i << /*"]" <<*/ " ";
}
int main( int argc, char **argv ) {
handle_try( tok, try_found, tok.end() );
}
+ tok.push_front("#include <pseh/framebased.h>\n");
print_tokens( tok.begin(), tok.end() );
}