Small cleanups

This commit is contained in:
Keith Winstein
2011-02-12 13:14:47 -05:00
parent 1ef3010bc3
commit 4760da93b3
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -90,7 +90,6 @@ int Dispatcher::getparam( size_t N, int defaultval )
int ret = defaultval; int ret = defaultval;
if ( !parsed ) { if ( !parsed ) {
parse_params(); parse_params();
parsed = true;
} }
if ( parsed_params.size() > N ) { if ( parsed_params.size() > N ) {
@@ -105,7 +104,6 @@ int Dispatcher::param_count( void )
{ {
if ( !parsed ) { if ( !parsed ) {
parse_params(); parse_params();
parsed = true;
} }
return parsed_params.size(); return parsed_params.size();
+2 -2
View File
@@ -73,10 +73,10 @@ namespace Terminal {
public: public:
int cursor_col, cursor_row; int cursor_col, cursor_row;
Renditions renditions; Renditions renditions;
/* character set shift state */ /* not implemented: character set shift state */
bool auto_wrap_mode; bool auto_wrap_mode;
bool origin_mode; bool origin_mode;
/* state of selective erase */ /* not implemented: state of selective erase */
SavedCursor(); SavedCursor();
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
using namespace Terminal; using namespace Terminal;
/* Terminal functions -- routines activated by CSI, escape or a C1 or C2 control char */ /* Terminal functions -- routines activated by CSI, escape or a control char */
static void clearline( Framebuffer *fb, int row, int start, int end ) static void clearline( Framebuffer *fb, int row, int start, int end )
{ {