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

Diff for /src/usr.bin/mandoc/roff.c between version 1.131 and 1.132

version 1.131, 2015/01/30 00:19:26 version 1.132, 2015/02/06 16:05:51
Line 2536 
Line 2536 
                 r->control = 0;                  r->control = 0;
   
         if (*p != '\0')          if (*p != '\0')
                 mandoc_msg(MANDOCERR_ARGCOUNT, r->parse, ln, ppos, NULL);                  mandoc_vmsg(MANDOCERR_ARG_EXCESS, r->parse,
                       ln, p - buf->buf, "cc ... %s", p);
   
         return(ROFF_IGN);          return(ROFF_IGN);
 }  }
Line 2551 
Line 2552 
         p = buf->buf + pos;          p = buf->buf + pos;
   
         if (*p == '\0') {          if (*p == '\0') {
                 mandoc_msg(MANDOCERR_ARGCOUNT, r->parse, ln, ppos, NULL);                  mandoc_msg(MANDOCERR_REQ_EMPTY, r->parse, ln, ppos, "tr");
                 return(ROFF_IGN);                  return(ROFF_IGN);
         }          }
   
Line 2579 
Line 2580 
                         }                          }
                         ssz = (size_t)(p - second);                          ssz = (size_t)(p - second);
                 } else if (*second == '\0') {                  } else if (*second == '\0') {
                         mandoc_msg(MANDOCERR_ARGCOUNT, r->parse,                          mandoc_vmsg(MANDOCERR_TR_ODD, r->parse,
                             ln, (int)(p - buf->buf), NULL);                              ln, first - buf->buf, "tr %s", first);
                         second = " ";                          second = " ";
                         p--;                          p--;
                 }                  }

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132