mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix 80 typos in comments
(cherry picked from commit 7dca902a85dc02e5df66f0f45a00d1575e7a0220)
This commit is contained in:
parent
53443bb981
commit
39a14c1000
58 changed files with 80 additions and 80 deletions
|
|
@ -185,7 +185,7 @@ int tty_get(register int fd, register struct termios *tty)
|
|||
return(SYSERR);
|
||||
errno = 0;
|
||||
}
|
||||
/* save terminal settings if in cannonical state */
|
||||
/* save terminal settings if in canonical state */
|
||||
if(ep->e_raw==0)
|
||||
{
|
||||
ep->e_savetty = *tty;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ One line screen editor for any program
|
|||
* - ^X^D command to show any debugging info
|
||||
*
|
||||
* I do not pretend these for changes are completely independent,
|
||||
* but you can use them to seperate features.
|
||||
* but you can use them to separate features.
|
||||
*/
|
||||
|
||||
#include <ast.h>
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ struct subst
|
|||
* parse an /old/new/ string, delimiter expected as first char.
|
||||
* if "old" not specified, keep sb->str[0]
|
||||
* if "new" not specified, set sb->str[1] to empty string
|
||||
* read up to third delimeter char, \n or \0, whichever comes first.
|
||||
* return adress is one past the last valid char in s:
|
||||
* read up to third delimiter char, \n or \0, whichever comes first.
|
||||
* return address is one past the last valid char in s:
|
||||
* - the address containing \n or \0 or
|
||||
* - one char beyond the third delimiter
|
||||
*/
|
||||
|
|
@ -67,7 +67,7 @@ static char *parse_subst(const char *s, struct subst *sb)
|
|||
char *cp,del;
|
||||
int off,n = 0;
|
||||
|
||||
/* build the strings on the stack, mainly for '&' substition in "new" */
|
||||
/* build the strings on the stack, mainly for '&' substitution in "new" */
|
||||
off = staktell();
|
||||
|
||||
/* init "new" with empty string */
|
||||
|
|
@ -155,7 +155,7 @@ int hist_expand(const char *ln, char **xp)
|
|||
*tmp2=0;/* temporary line buffer */
|
||||
Histloc_t hl; /* history location */
|
||||
static Namval_t *np = 0; /* histchars variable */
|
||||
static struct subst sb = {0,0}; /* substition strings */
|
||||
static struct subst sb = {0,0}; /* substitution strings */
|
||||
static Sfio_t *wm=0; /* word match from !?string? event designator */
|
||||
|
||||
if(!wm)
|
||||
|
|
@ -620,7 +620,7 @@ getsel:
|
|||
str = cc + strlen(sb.str[0]);
|
||||
}
|
||||
else if(!sftell(tmp2))
|
||||
{ /* not successfull */
|
||||
{ /* not successful */
|
||||
c = *cp;
|
||||
*cp = '\0';
|
||||
errormsg(SH_DICT, ERROR_ERROR,
|
||||
|
|
@ -641,7 +641,7 @@ getsel:
|
|||
}
|
||||
|
||||
if(sftell(tmp2))
|
||||
{ /* if any substitions done, swap buffers */
|
||||
{ /* if any substitutions done, swap buffers */
|
||||
if(wm != tmp)
|
||||
sfclose(tmp);
|
||||
tmp = tmp2;
|
||||
|
|
|
|||
|
|
@ -1133,7 +1133,7 @@ char *hist_word(char *string,int size,int word)
|
|||
#if SHOPT_ESH
|
||||
/*
|
||||
* given the current command and line number,
|
||||
* and number of lines back or foward,
|
||||
* and number of lines back or forward,
|
||||
* compute the new command and line number.
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue