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

Diff for /src/usr.bin/mg/paragraph.c between version 1.15 and 1.16

version 1.15, 2006/11/17 08:45:31 version 1.16, 2008/06/12 21:36:47
Line 336 
Line 336 
 int  int
 setfillcol(int f, int n)  setfillcol(int f, int n)
 {  {
         fillcol = ((f & FFARG) ? n : getcolpos());          char buf[32], *rep;
         ewprintf("Fill column set to %d", fillcol);          const char *es;
   
           if ((f & FFARG) != 0) {
                   fillcol = n;
           } else {
                   if ((rep = eread("Set fill-column: ", buf, sizeof(buf),
                       EFNEW | EFCR)) == NULL)
                           return (ABORT);
                   else if (rep[0] == '\0')
                           return (FALSE);
                   fillcol = strtonum(rep, 0, INT_MAX, &es);
                   if (es != NULL)
                           return (FALSE);
                   ewprintf("Fill column set to %d", fillcol);
           }
         return (TRUE);          return (TRUE);
 }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16