Cleaned up lots of typecasts, simplified some string handling

This commit is contained in:
ridiculousfish
2012-08-04 15:11:43 -07:00
parent 5880cd88c8
commit c67702a498
19 changed files with 54 additions and 116 deletions

View File

@@ -61,8 +61,7 @@ static const wchar_t *current_buffer=0;
What the commandline builtin considers to be the current cursor
position.
*/
static const size_t kInvalidCursorPosition = (size_t)(-1);
static size_t current_cursor_pos = kInvalidCursorPosition;
static size_t current_cursor_pos = (size_t)(-1);
/**
Returns the current commandline buffer.