[BACK]Return to echo.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/echo.c between version 1.40 and 1.41

version 1.40, 2005/11/18 20:56:52 version 1.41, 2005/11/19 20:16:35
Line 22 
Line 22 
   
 static char     *veread(const char *, char *, size_t, int, va_list);  static char     *veread(const char *, char *, size_t, int, va_list);
 static int       complt(int, int, char *, size_t, int, int *);  static int       complt(int, int, char *, size_t, int, int *);
 static int       complt_list(int, int, char *, int);  static int       complt_list(int, char *, int);
 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);
Line 192 
Line 192 
                 c = getkey(FALSE);                  c = getkey(FALSE);
                 if ((flag & EFAUTO) != 0 && (c == ' ' || c == CCHR('I'))) {                  if ((flag & EFAUTO) != 0 && (c == ' ' || c == CCHR('I'))) {
                         if (cplflag == TRUE) {                          if (cplflag == TRUE) {
                                 complt_list(flag, c, buf, cpos);                                  complt_list(flag, buf, cpos);
                                 cwin = TRUE;                                  cwin = TRUE;
                         } else if (complt(flag, c, buf, nbuf, epos, &i) == TRUE) {                          } else if (complt(flag, c, buf, nbuf, epos, &i) == TRUE) {
                                 cplflag = TRUE;                                  cplflag = TRUE;
Line 583 
Line 583 
  * 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(int flags, int c, char *buf, int cpos)  complt_list(int flags, char *buf, int cpos)
 {  {
         struct list     *lh, *lh2, *lh3;          struct list     *lh, *lh2, *lh3;
         struct list     *wholelist = NULL;          struct list     *wholelist = NULL;

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41