1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Yet another round of accumulated tweaks and cleanups

Notable changes:

- sh/timers.c: Rename timerdel() to sh_timerdel() for consistency;
  we had timerdel() but sh_timeradd().

- include/shell.h: Remove unused sh struct members:
  - sh.lastpath (this was still being saved/restored in several
    places, but not actually used since 2008-06-02 ksh93t-)
  - sh.lastbase (unused since 2000-10-31 ksh93k)
  - sh.inpool (unused since libcoshell was removed in 3613da42)

- sh/xec.c: sh_exec(): Add comments for the various command types.
This commit is contained in:
Martijn Dekker 2022-07-04 00:16:05 +02:00
parent d79a34b327
commit 8a0920ea0a
16 changed files with 88 additions and 48 deletions

View file

@ -211,7 +211,7 @@ int tty_set(int fd, int action, struct termios *tty)
/*{ TTY_COOKED( fd )
*
* This routine will set the tty in cooked mode.
* It is also called by error.done().
* It is also called by sh_done().
*
}*/

View file

@ -193,10 +193,10 @@ static int search(Vi_t*,int);
static void sync_cursor(Vi_t*);
static int textmod(Vi_t*,int,int);
/*+ VI_READ( fd, shbuf, nchar )
/*+ ED_VIREAD( context, fd, shbuf, nchar, reedit )
*
* This routine implements a one line version of vi and is
* called by _filbuf.c
* called by slowread() in io.c
*
-*/