[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.59 and 1.64

version 1.59, 2010/03/31 07:13:53 version 1.64, 2010/04/06 11:28:17
Line 133  static v_post  posts_text1[] = { eerr_eq1, NULL };
Line 133  static v_post  posts_text1[] = { eerr_eq1, NULL };
 static  v_post   posts_vt[] = { post_vt, NULL };  static  v_post   posts_vt[] = { post_vt, NULL };
 static  v_post   posts_wline[] = { bwarn_ge1, herr_eq0, NULL };  static  v_post   posts_wline[] = { bwarn_ge1, herr_eq0, NULL };
 static  v_post   posts_wtext[] = { ewarn_ge1, NULL };  static  v_post   posts_wtext[] = { ewarn_ge1, NULL };
 static  v_post   posts_xr[] = { eerr_ge1, NULL };  static  v_post   posts_xr[] = { ewarn_ge1, NULL };
 static  v_pre    pres_an[] = { pre_an, NULL };  static  v_pre    pres_an[] = { pre_an, NULL };
 static  v_pre    pres_bd[] = { pre_display, pre_bd, NULL };  static  v_pre    pres_bd[] = { pre_display, pre_bd, NULL };
 static  v_pre    pres_bl[] = { pre_bl, NULL };  static  v_pre    pres_bl[] = { pre_bl, NULL };
Line 621  pre_bl(PRE_ARGS)
Line 621  pre_bl(PRE_ARGS)
                 case (MDOC_Inset):                  case (MDOC_Inset):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (MDOC_Column):                  case (MDOC_Column):
                         if (type >= 0)                          /*
                                 return(mdoc_nerr(mdoc, n, EMULTILIST));                           * Note that if a duplicate is detected, we
                            * remove the duplicate instead of passing it
                            * over.  If we don't do this, mdoc_action will
                            * become confused when it scans over multiple
                            * types whilst setting its bitmasks.
                            *
                            * FIXME: this should occur in mdoc_action.c.
                            */
                           if (type >= 0) {
                                   if ( ! mdoc_nwarn(mdoc, n, EMULTILIST))
                                           return(0);
                                   mdoc_argn_free(n->args, pos);
                                   break;
                           }
                         type = n->args->argv[pos].arg;                          type = n->args->argv[pos].arg;
                         break;                          break;
                 case (MDOC_Compact):                  case (MDOC_Compact):
Line 1090  post_bl_head(POST_ARGS) 
Line 1103  post_bl_head(POST_ARGS) 
                 if (n->args->argv[i].arg == MDOC_Column)                  if (n->args->argv[i].arg == MDOC_Column)
                         break;                          break;
   
         if (i == (int)n->args->argc)          if (i == (int)n->args->argc && n->nchild)
                 return(1);                  return(warn_count(mdoc, "==", 0,
                                   "line arguments", n->nchild));
   
         if (n->args->argv[i].sz && mdoc->last->child)          if (n->args->argv[i].sz && mdoc->last->child)
                 return(mdoc_nerr(mdoc, n, ECOLMIS));                  return(mdoc_nerr(mdoc, n, ECOLMIS));
Line 1308  post_sh_head(POST_ARGS)
Line 1322  post_sh_head(POST_ARGS)
          * non-CUSTOM has a conventional order to be followed.           * non-CUSTOM has a conventional order to be followed.
          */           */
   
         if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed)          if (SEC_NAME != sec && SEC_NONE == mdoc->lastnamed &&
                 return(mdoc_nerr(mdoc, mdoc->last, ESECNAME));                          ! mdoc_nwarn(mdoc, mdoc->last, ESECNAME))
                   return(0);
         if (SEC_CUSTOM == sec)          if (SEC_CUSTOM == sec)
                 return(1);                  return(1);
         if (sec == mdoc->lastnamed)          if (sec == mdoc->lastnamed)

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.64

CVSweb