Change rtm to stm

This commit is contained in:
Keith Winstein
2011-08-05 20:09:54 -04:00
parent 1b3443befd
commit b0b36ddf94
6 changed files with 14 additions and 9 deletions
+7 -2
View File
@@ -10,9 +10,14 @@ namespace Network {
class Transport class Transport
{ {
private: private:
Connection<typename MyState::Conveyance, typename RemoteState::Conveyance> connection; Connection connection;
uint64_t last_acknowledged_state; typedef dense_hash_map< uint64_t, MyState > StateMapper;
dense_hash_map< uint64_t, MyState > sent;
dense_hash_map< uint64_t, RemoteState > received;
uint64_t known_receiver_state;
uint64_t assumed_receiver_state; uint64_t assumed_receiver_state;
uint64_t last_sent_state; uint64_t last_sent_state;
+1 -1
View File
@@ -36,7 +36,7 @@ int main( int argc __attribute__((unused)),
} }
if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) { if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) {
fprintf( stderr, "rtm requires a UTF-8 locale.\n" ); fprintf( stderr, "stm requires a UTF-8 locale.\n" );
exit( 1 ); exit( 1 );
} }
+2 -2
View File
@@ -40,8 +40,8 @@ Parser::UTF8Parser::UTF8Parser()
: parser(), buf_len( 0 ) : parser(), buf_len( 0 )
{ {
if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) { if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) {
fprintf( stderr, "rtm requires a UTF-8 locale.\n" ); fprintf( stderr, "stm requires a UTF-8 locale.\n" );
throw std::string( "rtm requires a UTF-8 locale." ); throw std::string( "stm requires a UTF-8 locale." );
} }
assert( BUF_SIZE >= MB_CUR_MAX ); assert( BUF_SIZE >= MB_CUR_MAX );
+2 -2
View File
@@ -44,7 +44,7 @@ int main( void )
} }
if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) { if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) {
fprintf( stderr, "rtm requires a UTF-8 locale.\n" ); fprintf( stderr, "stm requires a UTF-8 locale.\n" );
exit( 1 ); exit( 1 );
} }
@@ -116,7 +116,7 @@ int main( void )
} }
} }
printf( "[rtm is exiting.]\n" ); printf( "[stm is exiting.]\n" );
return 0; return 0;
} }
+1 -1
View File
@@ -16,7 +16,7 @@ std::string Display::new_frame( Framebuffer &f )
if ( (!initialized) if ( (!initialized)
|| (f.get_window_title() != last_frame.get_window_title()) ) { || (f.get_window_title() != last_frame.get_window_title()) ) {
/* set window title */ /* set window title */
frame.append( "\033]0;[rtm] " ); frame.append( "\033]0;[stm] " );
std::vector<wchar_t> window_title = f.get_window_title(); std::vector<wchar_t> window_title = f.get_window_title();
for ( std::vector<wchar_t>::iterator i = window_title.begin(); for ( std::vector<wchar_t>::iterator i = window_title.begin();
i != window_title.end(); i != window_title.end();
+1 -1
View File
@@ -7,7 +7,7 @@ std::string UserInput::input( Parser::UserByte *act,
{ {
char translated_str[ 2 ] = { act->c, 0 }; char translated_str[ 2 ] = { act->c, 0 };
/* The user will always be in application mode. If rtm is not in /* The user will always be in application mode. If stm is not in
application mode, convert user's cursor control function to an application mode, convert user's cursor control function to an
ANSI cursor control sequence */ ANSI cursor control sequence */