summaryrefslogtreecommitdiff
path: root/apps/system/cle/cle.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-02 16:13:40 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-02 16:13:40 -0600
commit4af5d2b78109fbc2e0efd95e656d0add09379dad (patch)
treeb0b394629cf01390740fa2fad069f103ce0fef0e /apps/system/cle/cle.c
parent88c9930e82d5ee1e415e4037443b2b6fb95d9ab0 (diff)
downloadnuttx-4af5d2b78109fbc2e0efd95e656d0add09379dad.tar.gz
nuttx-4af5d2b78109fbc2e0efd95e656d0add09379dad.tar.bz2
nuttx-4af5d2b78109fbc2e0efd95e656d0add09379dad.zip
VI and CLE: Fix lots of typos in comments
Diffstat (limited to 'apps/system/cle/cle.c')
-rw-r--r--apps/system/cle/cle.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/system/cle/cle.c b/apps/system/cle/cle.c
index c1bb5b9f6..e0b15151e 100644
--- a/apps/system/cle/cle.c
+++ b/apps/system/cle/cle.c
@@ -212,7 +212,7 @@ static const char g_fmtcursorpos[] = VT100_FMT_CURSORPOS;
* Name: cle_write
*
* Description:
- * Write a sequence of bytes to the console device (stdout, fd = 1).
+ * Write a sequence of bytes to the console output device.
*
****************************************************************************/
@@ -224,8 +224,8 @@ static void cle_write(FAR struct cle_s *priv, FAR const char *buffer,
//clevdbg("buffer=%p buflen=%d\n", buffer, (int)buflen);
- /* Loop until all bytes have been successuflly written (or until a
- * un-recoverable error is encountered)
+ /* Loop until all bytes have been successfully written (or until a
+ * unrecoverable error is encountered)
*/
do
@@ -266,7 +266,7 @@ static void cle_write(FAR struct cle_s *priv, FAR const char *buffer,
* Name: cle_putch
*
* Description:
- * Write a single character to the console device.
+ * Write a single character to the console output device.
*
****************************************************************************/
@@ -279,7 +279,7 @@ static void cle_putch(FAR struct cle_s *priv, char ch)
* Name: cle_getch
*
* Description:
- * Get a single character from the console device (stdin, fd = 0).
+ * Get a single character from the console input device.
*
****************************************************************************/
@@ -531,7 +531,7 @@ static void cle_clrtoeol(FAR struct cle_s *priv)
*
* Description:
* Make space for new text of size 'increment' at the specified cursor
- * position. This function will not allow text grow beyound (linelen - 1)
+ * position. This function will not allow text grow beyond ('linelen' - 1)
* in size.
*
****************************************************************************/
@@ -618,8 +618,7 @@ static void cle_closetext(FAR struct cle_s *priv, uint16_t pos, uint16_t size)
*
* Description:
* Update the display based on the last operation. This function is
- * called at the beginning of the processing loop in Command and Insert
- * modes (and also in the continuous replace mode).
+ * called at the beginning of the editor loop.
*
****************************************************************************/
@@ -848,7 +847,7 @@ static int cle_editloop(FAR struct cle_s *priv)
#endif
#ifdef CONFIG_EOL_IS_EITHER_CRLF
- case '\r': /* Ether CR or LF terminates line */
+ case '\r': /* Either CR or LF terminates line */
case '\n':
{
return OK;