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

Diff for /src/usr.bin/mandoc/tbl_opts.c between version 1.10 and 1.11

version 1.10, 2015/01/26 13:02:53 version 1.11, 2015/01/28 15:02:25
Line 118 
Line 118 
  * and some options are followed by arguments.   * and some options are followed by arguments.
  */   */
 void  void
 tbl_option(struct tbl_node *tbl, int ln, const char *p)  tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs)
 {  {
         int              i, pos, len;          int              i, pos, len;
   
         pos = 0;          pos = *offs;
         for (;;) {          for (;;) {
                 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',')                  while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',')
                         pos++;                          pos++;
   
                 if (p[pos] == ';')                  if (p[pos] == ';') {
                           *offs = pos + 1;
                         return;                          return;
                   }
   
                 /* Parse one option name. */                  /* Parse one option name. */
   

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