Fix asserts with side-effects (per Keegan McAllister)

This commit is contained in:
Keith Winstein
2012-03-08 10:50:19 -05:00
parent 4a29ab9d70
commit df5d163f9c
15 changed files with 80 additions and 35 deletions
-1
View File
@@ -68,7 +68,6 @@ std::list<Parser::Action *> Parser::UTF8Parser::input( char c )
buf[ buf_len++ ] = c;
/* This function will only work in a UTF-8 locale. */
/* This is asserted in the constructor. */
wchar_t pwc;
mbstate_t ps;
+1
View File
@@ -123,6 +123,7 @@ void Emulator::print( const Parser::Print *act )
break;
default:
assert( false );
break;
}
}
-1
View File
@@ -17,7 +17,6 @@
*/
#include <boost/typeof/typeof.hpp>
#include <assert.h>
#include <stdio.h>
#include "terminaldisplay.h"