Commit 45ec9016 authored by Peter Pentchev's avatar Peter Pentchev

Fix some more typos.

parent 2002c7f4
Change log for hexer, the multi-view binary editor
0.2.1 not yet ;)
- fix some more typographical errors
0.2.0 2015/12/09
- fix a lot of C compiler warnings
......
......@@ -1185,7 +1185,7 @@ dec: base = 10, r = p;
x.u.uo = OP_PARCLOSE;
break;
default:
calc_error(stack + sp++, "unexpected caracter %c (0x%x)",
calc_error(stack + sp++, "unexpected character %c (0x%x)",
isprint(*p) ? *p : ' ', (int)(unsigned char)*p);
return -1;
}
......
......@@ -213,7 +213,7 @@ static long rx_match_skip;
*/
int rx_nomagic = 0;
/* `rx_nomagic == 1': all special characters exept `*' and `[' have to be
/* `rx_nomagic == 1': all special characters except `*' and `[' have to be
* prefixed with `\'.
*/
int rx_allmagic = 0;
......
......@@ -370,7 +370,7 @@ vtencode(const char * const cmd, va_list ap)
* NOTE: the escapes %>xy, %i, %n, %B and %D affect all parameters.
*/
{
int prm[16], prmn; /* array of paramters; `prmn' elements. */
int prm[16], prmn; /* array of parameters; `prmn' elements. */
static char buf[256];
char *cp = cmd; /* command pointer */
char *bp = buf; /* buffer pointer */
......
......@@ -1004,12 +1004,12 @@ tio_getch_(void)
tio_unget_count = 0;
/* Try to read one character from the input stream. If the terminal is not
* in keypad transmit mode, the caracter is returned.
* in keypad transmit mode, the character is returned.
*/
switch (tio_read(cbuf, 1)) {
case -1:
return (int)HXKEY_ERROR;
/* The occurence of an error in `tio_read()' is likely to be caused by
/* The occurrence of an error in `tio_read()' is likely to be caused by
* the signal `SIGWINCH', indicating that the size of the window has
* changed.
*/
......
......@@ -154,7 +154,7 @@ tio_get(void);
/* Read a character from the keyboard. `tio_getch()' waits for input,
* `tio_get()' returns `HXKEY_NONE' (0) if no input is available.
* The functions return the following special keys:
* HXKEY_ERROR an error occured while waiting for input.
* HXKEY_ERROR an error occurred while waiting for input.
* NOTE: Changing the size of the window causes
* `tio_getch()' to return `HXKEY_ERROR'.
* HXKEY_NONE no key.
......@@ -492,13 +492,13 @@ tio_delete_character(void);
int
tio_readwait(int timeout);
/* Wait until input is availabe on `stdin' using `select()'.
/* Wait until input is available on `stdin' using `select()'.
* The `timeout' is measured in microseconds. If `timeout' is a negative
* value, `tio_readwait()' blocks until input is availabe. If
* value, `tio_readwait()' blocks until input is available. If
* `timeout == 0', `tio_readwait()' will return immeiately.
* Return values:
* 1 Success. Data available on `stdin'.
* 0 Timeout. No input availabe.
* 0 Timeout. No input available.
* -1 Error. See `select(2)'.
* If `tio_readwait()' is interrupted by a signal, -1 is returned and
* `errno' is set to `EINTR'.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment