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

Diff for /src/usr.bin/col/col.c between version 1.8 and 1.9

version 1.8, 2003/06/03 02:56:06 version 1.9, 2003/06/10 22:20:45
Line 112 
Line 112 
                 err(1, "stdout");                  err(1, "stdout");
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char **argv;  
 {  {
         int ch;          int ch;
         CHAR *c;          CHAR *c;
Line 320 
Line 318 
 }  }
   
 void  void
 flush_lines(nflush)  flush_lines(int nflush)
         int nflush;  
 {  {
         LINE *l;          LINE *l;
   
Line 347 
Line 344 
  * feeds.   * feeds.
  */   */
 void  void
 flush_blanks()  flush_blanks(void)
 {  {
         int half, i, nb;          int half, i, nb;
   
Line 376 
Line 373 
  * and character set shifts.   * and character set shifts.
  */   */
 void  void
 flush_line(l)  flush_line(LINE *l)
         LINE *l;  
 {  {
         CHAR *c, *endc;          CHAR *c, *endc;
         int nchars, last_col, this_col;          int nchars, last_col, this_col;
Line 476 
Line 472 
 static LINE *line_freelist;  static LINE *line_freelist;
   
 LINE *  LINE *
 alloc_line()  alloc_line(void)
 {  {
         LINE *l;          LINE *l;
         int i;          int i;
Line 496 
Line 492 
 }  }
   
 void  void
 free_line(l)  free_line(LINE *l)
         LINE *l;  
 {  {
   
         l->l_next = line_freelist;          l->l_next = line_freelist;
Line 505 
Line 500 
 }  }
   
 void *  void *
 xmalloc(p, size)  xmalloc(void *p, size_t size)
         void *p;  
         size_t size;  
 {  {
   
         if (!(p = (void *)realloc(p, size)))          if (!(p = (void *)realloc(p, size)))
Line 516 
Line 509 
 }  }
   
 void  void
 usage()  usage(void)
 {  {
         (void)fprintf(stderr, "usage: col [-bfhx] [-l num]\n");          (void)fprintf(stderr, "usage: col [-bfhx] [-l num]\n");
         exit(1);          exit(1);
 }  }
   
 void  void
 dowarn(line)  dowarn(int line)
         int line;  
 {  {
   
         warnx("warning: can't back up %s",          warnx("warning: can't back up %s",

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