[BACK]Return to tbl.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/tbl.c between version 1.39 and 1.40

version 1.39, 2015/01/30 17:32:16 version 1.40, 2015/10/06 18:32:20
Line 66  tbl_read(struct tbl_node *tbl, int ln, const char *p, 
Line 66  tbl_read(struct tbl_node *tbl, int ln, const char *p, 
                 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 75  tbl_read(struct tbl_node *tbl, int ln, const char *p, 
Line 75  tbl_read(struct tbl_node *tbl, int ln, const char *p, 
         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 98  tbl_alloc(int pos, int line, struct mparse *parse)
Line 98  tbl_alloc(int pos, int line, struct mparse *parse)
         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 155  tbl_span(struct tbl_node *tbl)
Line 155  tbl_span(struct tbl_node *tbl)
                                  : 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 177  tbl_end(struct tbl_node **tblp)
Line 177  tbl_end(struct tbl_node **tblp)
         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.39  
changed lines
  Added in v.1.40

CVSweb