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

Diff for /mandoc/roff.c between version 1.61 and 1.62

version 1.61, 2008/12/10 13:15:55 version 1.62, 2008/12/10 13:41:59
Line 38 
Line 38 
 /* TODO: (warn) some sections need specific elements. */  /* TODO: (warn) some sections need specific elements. */
 /* TODO: (warn) NAME section has particular order. */  /* TODO: (warn) NAME section has particular order. */
 /* TODO: macros with a set number of arguments? */  /* TODO: macros with a set number of arguments? */
 /* TODO: validate Dt macro arguments. */  
 /* FIXME: Bl -diag supposed to ignore callable children. */  /* FIXME: Bl -diag supposed to ignore callable children. */
   
 struct  roffnode {  struct  roffnode {
Line 1166  static int
Line 1165  static int
 roff_layout(ROFFCALL_ARGS)  roff_layout(ROFFCALL_ARGS)
 {  {
         int              i, c, argcp[ROFF_MAXLINEARG];          int              i, c, argcp[ROFF_MAXLINEARG];
         char            *argvp[ROFF_MAXLINEARG];          char            *argvp[ROFF_MAXLINEARG], *p;
   
         /*          /*
          * The roff_layout function is for multi-line macros.  A layout           * The roff_layout function is for multi-line macros.  A layout
Line 1192  roff_layout(ROFFCALL_ARGS) 
Line 1191  roff_layout(ROFFCALL_ARGS) 
                 return((*tree->cb.roffblkout)(tree->arg, tok));                  return((*tree->cb.roffblkout)(tree->arg, tok));
         }          }
   
         argv++;          p = *argv++;
         assert( ! (ROFF_CALLABLE & tokens[tok].flags));          assert( ! (ROFF_CALLABLE & tokens[tok].flags));
   
         if ( ! roffparseopts(tree, tok, &argv, argcp, argvp))          if ( ! roffparseopts(tree, tok, &argv, argcp, argvp))
Line 1249  roff_layout(ROFFCALL_ARGS) 
Line 1248  roff_layout(ROFFCALL_ARGS) 
                         return(0);                          return(0);
   
                 tree->asec |= tree->csec;                  tree->asec |= tree->csec;
   
                   if ( ! roffspecial(tree, tok, p, argcp,
                                           (const char **)argvp, 0, argv))
                           return(0);
                 break;                  break;
         default:          default:
                 break;                  break;

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

CVSweb