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

Diff for /mandoc/tbl_layout.c between version 1.19 and 1.21

version 1.19, 2011/04/07 01:08:42 version 1.21, 2011/09/03 00:29:21
Line 72  mods(struct tbl_node *tbl, struct tbl_cell *cp, 
Line 72  mods(struct tbl_node *tbl, struct tbl_cell *cp, 
         char             buf[5];          char             buf[5];
         int              i;          int              i;
   
           /* Not all types accept modifiers. */
   
           switch (cp->pos) {
           case (TBL_CELL_DOWN):
                   /* FALLTHROUGH */
           case (TBL_CELL_HORIZ):
                   /* FALLTHROUGH */
           case (TBL_CELL_DHORIZ):
                   /* FALLTHROUGH */
           case (TBL_CELL_VERT):
                   /* FALLTHROUGH */
           case (TBL_CELL_DVERT):
                   return(1);
           default:
                   break;
           }
   
 mod:  mod:
         /*          /*
          * XXX: since, at least for now, modifiers are non-conflicting           * XXX: since, at least for now, modifiers are non-conflicting
Line 156  mod:
Line 173  mod:
                 goto mod;                  goto mod;
         case ('f'):          case ('f'):
                 break;                  break;
           case ('r'):
                   /* FALLTHROUGH */
         case ('b'):          case ('b'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case ('i'):          case ('i'):
Line 168  mod:
Line 187  mod:
         }          }
   
         switch (tolower((unsigned char)p[(*pos)++])) {          switch (tolower((unsigned char)p[(*pos)++])) {
           case ('3'):
                   /* FALLTHROUGH */
         case ('b'):          case ('b'):
                 cp->flags |= TBL_CELL_BOLD;                  cp->flags |= TBL_CELL_BOLD;
                 goto mod;                  goto mod;
           case ('2'):
                   /* FALLTHROUGH */
         case ('i'):          case ('i'):
                 cp->flags |= TBL_CELL_ITALIC;                  cp->flags |= TBL_CELL_ITALIC;
                   goto mod;
           case ('1'):
                   /* FALLTHROUGH */
           case ('r'):
                 goto mod;                  goto mod;
         default:          default:
                 break;                  break;

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

CVSweb