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

Diff for /src/usr.bin/mandoc/tbl.c between version 1.20 and 1.21

version 1.20, 2015/01/30 17:31:20 version 1.21, 2015/10/06 18:30:44
Line 64 
Line 64 
                 if (*cp == ';') {                  if (*cp == ';') {
                         tbl_option(tbl, ln, p, &pos);                          tbl_option(tbl, ln, p, &pos);
                         if (p[pos] == '\0')                          if (p[pos] == '\0')
                                 return(ROFF_IGN);                                  return ROFF_IGN;
                 }                  }
         }          }
   
Line 73 
Line 73 
         switch (tbl->part) {          switch (tbl->part) {
         case TBL_PART_LAYOUT:          case TBL_PART_LAYOUT:
                 tbl_layout(tbl, ln, p, pos);                  tbl_layout(tbl, ln, p, pos);
                 return(ROFF_IGN);                  return ROFF_IGN;
         case TBL_PART_CDATA:          case TBL_PART_CDATA:
                 return(tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN);                  return tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN;
         default:          default:
                 break;                  break;
         }          }
   
         tbl_data(tbl, ln, p, pos);          tbl_data(tbl, ln, p, pos);
         return(ROFF_TBL);          return ROFF_TBL;
 }  }
   
 struct tbl_node *  struct tbl_node *
Line 96 
Line 96 
         tbl->part = TBL_PART_OPTS;          tbl->part = TBL_PART_OPTS;
         tbl->opts.tab = '\t';          tbl->opts.tab = '\t';
         tbl->opts.decimal = '.';          tbl->opts.decimal = '.';
         return(tbl);          return tbl;
 }  }
   
 void  void
Line 153 
Line 153 
                                  : tbl->first_span;                                   : tbl->first_span;
         if (span)          if (span)
                 tbl->current_span = span;                  tbl->current_span = span;
         return(span);          return span;
 }  }
   
 int  int
Line 175 
Line 175 
         if (sp == NULL) {          if (sp == NULL) {
                 mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse,                  mandoc_msg(MANDOCERR_TBLDATA_NONE, tbl->parse,
                     tbl->line, tbl->pos, NULL);                      tbl->line, tbl->pos, NULL);
                 return(0);                  return 0;
         }          }
         return(1);          return 1;
 }  }

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