version 1.20, 2002/02/16 21:27:49 |
version 1.21, 2002/03/11 13:02:56 |
|
|
static void eformat(const char *, va_list); |
static void eformat(const char *, va_list); |
static void eputi(int, int); |
static void eputi(int, int); |
static void eputl(long, int); |
static void eputl(long, int); |
static void eputs(char *); |
static void eputs(const char *); |
static void eputc(char); |
static void eputc(char); |
static LIST *copy_list(LIST *); |
static LIST *copy_list(LIST *); |
|
|
|
|
* Erase the echo line. |
* Erase the echo line. |
*/ |
*/ |
void |
void |
eerase() |
eerase(void) |
{ |
{ |
ttcolor(CTEXT); |
ttcolor(CTEXT); |
ttmove(nrow - 1, 0); |
ttmove(nrow - 1, 0); |
|
|
* required. |
* required. |
*/ |
*/ |
int |
int |
eyorn(sp) |
eyorn(const char *sp) |
char *sp; |
|
{ |
{ |
int s; |
int s; |
|
|
|
|
* "yes" or "no" and the trainling newline. |
* "yes" or "no" and the trainling newline. |
*/ |
*/ |
int |
int |
eyesno(sp) |
eyesno(const char *sp) |
char *sp; |
|
{ |
{ |
int s; |
int s; |
char buf[64]; |
char buf[64]; |
|
|
* do completion on a list of objects. |
* do completion on a list of objects. |
*/ |
*/ |
static int |
static int |
complt(flags, c, buf, cpos) |
complt(int flags, int c, char *buf, int cpos) |
int flags, c, cpos; |
|
char *buf; |
|
{ |
{ |
LIST *lh, *lh2; |
LIST *lh, *lh2; |
LIST *wholelist = NULL; |
LIST *wholelist = NULL; |
|
|
* do completion on a list of objects, listing instead of completing |
* do completion on a list of objects, listing instead of completing |
*/ |
*/ |
static int |
static int |
complt_list(flags, c, buf, cpos) |
complt_list(int flags, int c, char *buf, int cpos) |
int flags; |
|
int c; |
|
char *buf; |
|
int cpos; |
|
{ |
{ |
LIST *lh, *lh2, *lh3; |
LIST *lh, *lh2, *lh3; |
LIST *wholelist = NULL; |
LIST *wholelist = NULL; |
|
|
int oldcol = ttcol; |
int oldcol = ttcol; |
int oldhue = tthue; |
int oldhue = tthue; |
char *linebuf; |
char *linebuf; |
char *cp; |
const char *cp; |
|
|
lh = NULL; |
lh = NULL; |
|
|
|
|
* this is normal. |
* this is normal. |
*/ |
*/ |
int |
int |
getxtra(lp1, lp2, cpos, wflag) |
getxtra(LIST *lp1, LIST *lp2, int cpos, int wflag) |
LIST *lp1, *lp2; |
|
int cpos; |
|
int wflag; |
|
{ |
{ |
int i; |
int i; |
|
|
|
|
* Put integer, in radix "r". |
* Put integer, in radix "r". |
*/ |
*/ |
static void |
static void |
eputi(i, r) |
eputi(int i, int r) |
int i, r; |
|
{ |
{ |
int q; |
int q; |
|
|
|
|
* Put long, in radix "r". |
* Put long, in radix "r". |
*/ |
*/ |
static void |
static void |
eputl(l, r) |
eputl(long l, int r) |
long l; |
|
int r; |
|
{ |
{ |
long q; |
long q; |
|
|
|
|
* Put string. |
* Put string. |
*/ |
*/ |
static void |
static void |
eputs(s) |
eputs(const char *s) |
char *s; |
|
{ |
{ |
int c; |
int c; |
|
|
|
|
* too long. |
* too long. |
*/ |
*/ |
static void |
static void |
eputc(c) |
eputc(char c) |
char c; |
|
{ |
{ |
if (ttcol + 2 < ncol) { |
if (ttcol + 2 < ncol) { |
if (ISCTRL(c)) { |
if (ISCTRL(c)) { |
|
|
} |
} |
|
|
void |
void |
free_file_list(lp) |
free_file_list(LIST *lp) |
LIST *lp; |
|
{ |
{ |
LIST *next; |
LIST *next; |
|
|
|
|
} |
} |
|
|
static LIST * |
static LIST * |
copy_list(lp) |
copy_list(LIST *lp) |
LIST *lp; |
|
{ |
{ |
LIST *current, *last; |
LIST *current, *last; |
|
|