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

Diff for /mandoc/roff.c between version 1.175 and 1.176

version 1.175, 2012/11/19 17:57:23 version 1.176, 2013/05/31 22:08:09
Line 393  roffnode_push(struct roff *r, enum rofft tok, const ch
Line 393  roffnode_push(struct roff *r, enum rofft tok, const ch
 static void  static void
 roff_free1(struct roff *r)  roff_free1(struct roff *r)
 {  {
         struct tbl_node *t;          struct tbl_node *tbl;
         struct eqn_node *e;          struct eqn_node *e;
         int              i;          int              i;
   
         while (NULL != (t = r->first_tbl)) {          while (NULL != (tbl = r->first_tbl)) {
                 r->first_tbl = t->next;                  r->first_tbl = tbl->next;
                 tbl_free(t);                  tbl_free(tbl);
         }          }
   
         r->first_tbl = r->last_tbl = r->tbl = NULL;          r->first_tbl = r->last_tbl = r->tbl = NULL;
Line 1413  roff_EN(ROFF_ARGS)
Line 1413  roff_EN(ROFF_ARGS)
 static enum rofferr  static enum rofferr
 roff_TS(ROFF_ARGS)  roff_TS(ROFF_ARGS)
 {  {
         struct tbl_node *t;          struct tbl_node *tbl;
   
         if (r->tbl) {          if (r->tbl) {
                 mandoc_msg(MANDOCERR_SCOPEBROKEN, r->parse, ln, ppos, NULL);                  mandoc_msg(MANDOCERR_SCOPEBROKEN, r->parse, ln, ppos, NULL);
                 tbl_end(&r->tbl);                  tbl_end(&r->tbl);
         }          }
   
         t = tbl_alloc(ppos, ln, r->parse);          tbl = tbl_alloc(ppos, ln, r->parse);
   
         if (r->last_tbl)          if (r->last_tbl)
                 r->last_tbl->next = t;                  r->last_tbl->next = tbl;
         else          else
                 r->first_tbl = r->last_tbl = t;                  r->first_tbl = r->last_tbl = tbl;
   
         r->tbl = r->last_tbl = t;          r->tbl = r->last_tbl = tbl;
         return(ROFF_IGN);          return(ROFF_IGN);
 }  }
   

Legend:
Removed from v.1.175  
changed lines
  Added in v.1.176

CVSweb