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

Diff for /mandoc/roff.c between version 1.240 and 1.241

version 1.240, 2014/12/15 23:43:26 version 1.241, 2014/12/16 01:22:59
Line 1249  out:
Line 1249  out:
 static int  static int
 roff_evalcond(struct roff *r, int ln, const char *v, int *pos)  roff_evalcond(struct roff *r, int ln, const char *v, int *pos)
 {  {
         int      wanttrue, number;          int      number, savepos, wanttrue;
   
         if ('!' == v[*pos]) {          if ('!' == v[*pos]) {
                 wanttrue = 0;                  wanttrue = 0;
Line 1282  roff_evalcond(struct roff *r, int ln, const char *v, i
Line 1282  roff_evalcond(struct roff *r, int ln, const char *v, i
                 break;                  break;
         }          }
   
           savepos = *pos;
         if (roff_evalnum(r, ln, v, pos, &number, 0))          if (roff_evalnum(r, ln, v, pos, &number, 0))
                 return((number > 0) == wanttrue);                  return((number > 0) == wanttrue);
         else          else if (*pos == savepos)
                 return(roff_evalstrcond(v, pos) == wanttrue);                  return(roff_evalstrcond(v, pos) == wanttrue);
           else
                   return (0);
 }  }
   
 static enum rofferr  static enum rofferr

Legend:
Removed from v.1.240  
changed lines
  Added in v.1.241

CVSweb