[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.9 and 1.10

version 1.9, 2001/05/23 22:01:44 version 1.10, 2001/05/23 22:20:35
Line 22 
Line 22 
 static int      veread          __P((const char *, char *buf, int, int, va_list));  static int      veread          __P((const char *, char *buf, int, int, va_list));
 static int      complt          __P((int, int, char *, int));  static int      complt          __P((int, int, char *, int));
 static int      complt_list     __P((int, int, char *, int));  static int      complt_list     __P((int, int, char *, int));
 static VOID     eformat         __P((const char *, va_list));  static void     eformat         __P((const char *, va_list));
 static VOID     eputi           __P((int, int));  static void     eputi           __P((int, int));
 static VOID     eputl           __P((long, int));  static void     eputl           __P((long, int));
 static VOID     eputs           __P((char *));  static void     eputs           __P((char *));
 static VOID     eputc           __P((char));  static void     eputc           __P((char));
 static LIST    *copy_list       __P((LIST *));  static LIST    *copy_list       __P((LIST *));
   
 int             epresf = FALSE;         /* stuff in echo line flag */  int             epresf = FALSE;         /* stuff in echo line flag */
Line 34 
Line 34 
 /*  /*
  * Erase the echo line.   * Erase the echo line.
  */   */
 VOID  void
 eerase()  eerase()
 {  {
         ttcolor(CTEXT);          ttcolor(CTEXT);
Line 260 
Line 260 
                         goto done;                          goto done;
                 case CCHR('G'):                 /* bell, abort */                  case CCHR('G'):                 /* bell, abort */
                         eputc(CCHR('G'));                          eputc(CCHR('G'));
                         (VOID)ctrlg(FFRAND, 0);                          (void)ctrlg(FFRAND, 0);
                         ttflush();                          ttflush();
                         return ABORT;                          return ABORT;
                 case CCHR('H'):                 /* rubout, erase */                  case CCHR('H'):                 /* rubout, erase */
Line 618 
Line 618 
  * routine.   * routine.
  */   */
 /* VARARGS */  /* VARARGS */
 VOID  void
 #ifdef __STDC__  #ifdef __STDC__
 ewprintf(const char *fmt, ...)  ewprintf(const char *fmt, ...)
 #else /* __STDC__ */  #else /* __STDC__ */
Line 658 
Line 658 
  * Note: %c works, and prints the "name" of the character.   * Note: %c works, and prints the "name" of the character.
  * %k prints the name of a key (and takes no arguments).   * %k prints the name of a key (and takes no arguments).
  */   */
 static VOID  static void
 eformat(fp, ap)  eformat(fp, ap)
         const char *fp;          const char *fp;
         va_list     ap;          va_list     ap;
Line 674 
Line 674 
                         c = *fp++;                          c = *fp++;
                         switch (c) {                          switch (c) {
                         case 'c':                          case 'c':
                                 (VOID)keyname(kname, va_arg(ap, int));                                  (void)keyname(kname, va_arg(ap, int));
                                 eputs(kname);                                  eputs(kname);
                                 break;                                  break;
   
Line 723 
Line 723 
 /*  /*
  * Put integer, in radix "r".   * Put integer, in radix "r".
  */   */
 static VOID  static void
 eputi(i, r)  eputi(i, r)
         int i, r;          int i, r;
 {  {
Line 741 
Line 741 
 /*  /*
  * Put long, in radix "r".   * Put long, in radix "r".
  */   */
 static VOID  static void
 eputl(l, r)  eputl(l, r)
         long l;          long l;
         int  r;          int  r;
Line 760 
Line 760 
 /*  /*
  * Put string.   * Put string.
  */   */
 static VOID  static void
 eputs(s)  eputs(s)
         char *s;          char *s;
 {  {
Line 774 
Line 774 
  * Put character.  Watch for control characters, and for the line getting   * Put character.  Watch for control characters, and for the line getting
  * too long.   * too long.
  */   */
 static VOID  static void
 eputc(c)  eputc(c)
         char     c;          char     c;
 {  {
Line 788 
Line 788 
         }          }
 }  }
   
 VOID  void
 free_file_list(lp)  free_file_list(lp)
         LIST *lp;          LIST *lp;
 {  {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10