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

Diff for /mandoc/mdoc_validate.c between version 1.8 and 1.9

version 1.8, 2009/06/11 10:34:31 version 1.9, 2009/06/12 09:18:00
Line 300  const struct valids mdoc_valids[MDOC_MAX] = {
Line 300  const struct valids mdoc_valids[MDOC_MAX] = {
         { pres_lb, posts_lb },                  /* Lb */          { pres_lb, posts_lb },                  /* Lb */
         { NULL, NULL },                         /* Ap */          { NULL, NULL },                         /* Ap */
         { NULL, posts_pp },                     /* Lp */          { NULL, posts_pp },                     /* Lp */
         { NULL, posts_text },                   /* Lk */          { NULL, NULL },                         /* Lk */
         { NULL, posts_text },                   /* Mt */          { NULL, posts_text },                   /* Mt */
         { NULL, posts_wline },                  /* Brq */          { NULL, posts_wline },                  /* Brq */
         { NULL, NULL },                         /* Bro */          { NULL, NULL },                         /* Bro */
Line 789  pre_display(PRE_ARGS)
Line 789  pre_display(PRE_ARGS)
 static int  static int
 pre_bl(PRE_ARGS)  pre_bl(PRE_ARGS)
 {  {
         int              pos, type, width, offset;          int              pos, col, type, width, offset;
   
         if (MDOC_BLOCK != n->type)          if (MDOC_BLOCK != n->type)
                 return(1);                  return(1);
Line 798  pre_bl(PRE_ARGS)
Line 798  pre_bl(PRE_ARGS)
   
         /* Make sure that only one type of list is specified.  */          /* Make sure that only one type of list is specified.  */
   
         type = offset = width = -1;          type = offset = width = col = -1;
   
         /* LINTED */          /* LINTED */
         for (pos = 0; pos < (int)n->args->argc; pos++)          for (pos = 0; pos < (int)n->args->argc; pos++)
Line 827  pre_bl(PRE_ARGS)
Line 827  pre_bl(PRE_ARGS)
                         if (-1 != type)                          if (-1 != type)
                                 return(nerr(mdoc, n, EMULTILIST));                                  return(nerr(mdoc, n, EMULTILIST));
                         type = n->args->argv[pos].arg;                          type = n->args->argv[pos].arg;
                           col = pos;
                         break;                          break;
                 case (MDOC_Width):                  case (MDOC_Width):
                         if (-1 != width)                          if (-1 != width)
Line 876  pre_bl(PRE_ARGS)
Line 877  pre_bl(PRE_ARGS)
   
         switch (type) {          switch (type) {
         case (MDOC_Column):          case (MDOC_Column):
                 if (0 == n->args->argv[pos].sz)                  assert(col >= 0);
                   if (0 == n->args->argv[col].sz)
                         break;                          break;
                 if ( ! nwarn(mdoc, n, WDEPCOL))                  if ( ! nwarn(mdoc, n, WDEPCOL))
                         return(0);                          return(0);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb