From e171da5cb781dfaa06f8637b35c06f93e8bb5604 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 22 Jul 2015 00:16:02 +0000 Subject: Fix typos. Summary: Fix a bunch of typos. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11386 llvm-svn: 242856 --- lldb/source/Host/windows/EditLineWin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lldb/source/Host/windows/EditLineWin.cpp') diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp index 8b5c2f2501b..55fe52dc8cc 100644 --- a/lldb/source/Host/windows/EditLineWin.cpp +++ b/lldb/source/Host/windows/EditLineWin.cpp @@ -35,7 +35,7 @@ struct el_binding // stored key bindings static std::vector _bindings; -//TODO: this should infact be related to the exact edit line context we create +//TODO: this should in fact be related to the exact edit line context we create static void *clientData = NULL; // store the current prompt string @@ -125,7 +125,7 @@ el_get_s (char *buffer, int chars) DWORD _read = 0; if ( ReadConsoleInputA( GetStdHandle( STD_INPUT_HANDLE ), &_record, 1, &_read ) == FALSE ) break; - // if we didnt read a key + // if we didn't read a key if ( _read == 0 ) continue; // only interested in key events @@ -179,7 +179,7 @@ el_get_s (char *buffer, int chars) } #endif -// edit line initalise +// edit line initialize EditLine * el_init (const char *, FILE *, FILE *, FILE *) { @@ -263,7 +263,7 @@ el_set (EditLine *el, int code, ...) case ( EL_HIST ): { // EL_HIST, History *(*fun)(History *, int op, ... ), const char *ptr - // defines which histroy function to use, which is usualy history(). Ptr should be the + // defines which history function to use, which is usually history(). Ptr should be the // value returned by history_init(). } break; @@ -271,7 +271,7 @@ el_set (EditLine *el, int code, ...) { // EL_ADDFN, const char *name, const char *help, unsigned char (*func)(EditLine *e, int ch) // add a user defined function, func), referred to as 'name' which is invoked when a key which is bound to 'name' is - // entered. 'help' is a description of 'name'. at involcation time, 'ch' is the key which caused the invocation. the + // entered. 'help' is a description of 'name'. at invocation time, 'ch' is the key which caused the invocation. the // return value of 'func()' should be one of: // CC_NORM add a normal character // CC_NEWLINE end of line was entered @@ -280,8 +280,8 @@ el_set (EditLine *el, int code, ...) // CC_REFRESH refresh display. // CC_REFRESH_BEEP refresh display and beep. // CC_CURSOR cursor moved so update and perform CC_REFRESH - // CC_REDISPLAY redisplay entire input line. this is usefull if a key binding outputs extra information. - // CC_ERROR an error occured. beep and flush tty. + // CC_REDISPLAY redisplay entire input line. this is useful if a key binding outputs extra information. + // CC_ERROR an error occurred. beep and flush tty. // CC_FATAL fatal error, reset tty to known state. el_binding *binding = new el_binding; @@ -296,7 +296,7 @@ el_set (EditLine *el, int code, ...) case ( EL_BIND ): { // EL_BIND, const char *, ..., NULL - // perform the BIND buildin command. Refer to editrc(5) for more information. + // perform the BIND built-in command. Refer to editrc(5) for more information. const char *name = va_arg( vl, const char* ); -- cgit v1.2.3