[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.20 and 1.21

version 1.20, 2002/02/16 21:27:49 version 1.21, 2002/03/11 13:02:56
Line 23 
Line 23 
 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 *);
   
Line 33 
Line 33 
  * 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);
Line 49 
Line 49 
  * required.   * required.
  */   */
 int  int
 eyorn(sp)  eyorn(const char *sp)
         char *sp;  
 {  {
         int      s;          int      s;
   
Line 77 
Line 76 
  * "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];
Line 307 
Line 305 
  * 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;
Line 403 
Line 399 
  * 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;
Line 418 
Line 410 
         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;
   
Line 562 
Line 554 
  * 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;
   
Line 679 
Line 668 
  * 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;
   
Line 697 
Line 685 
  * 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;
   
Line 716 
Line 702 
  * Put string.   * Put string.
  */   */
 static void  static void
 eputs(s)  eputs(const char *s)
         char *s;  
 {  {
         int      c;          int      c;
   
Line 730 
Line 715 
  * 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)) {
Line 744 
Line 728 
 }  }
   
 void  void
 free_file_list(lp)  free_file_list(LIST *lp)
         LIST *lp;  
 {  {
         LIST    *next;          LIST    *next;
   
Line 757 
Line 740 
 }  }
   
 static LIST *  static LIST *
 copy_list(lp)  copy_list(LIST *lp)
         LIST *lp;  
 {  {
         LIST    *current, *last;          LIST    *current, *last;
   

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21