[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.61 and 1.66

version 1.61, 2010/04/03 14:02:10 version 1.66, 2010/04/06 16:27:53
Line 77  static int  ewarn_ge1(POST_ARGS);
Line 77  static int  ewarn_ge1(POST_ARGS);
 static  int      herr_eq0(POST_ARGS);  static  int      herr_eq0(POST_ARGS);
 static  int      herr_ge1(POST_ARGS);  static  int      herr_ge1(POST_ARGS);
 static  int      hwarn_eq1(POST_ARGS);  static  int      hwarn_eq1(POST_ARGS);
   static  int      hwarn_eq0(POST_ARGS);
 static  int      hwarn_le1(POST_ARGS);  static  int      hwarn_le1(POST_ARGS);
   
 static  int      post_an(POST_ARGS);  static  int      post_an(POST_ARGS);
Line 113  static int  pre_ss(PRE_ARGS);
Line 114  static int  pre_ss(PRE_ARGS);
   
 static  v_post   posts_an[] = { post_an, NULL };  static  v_post   posts_an[] = { post_an, NULL };
 static  v_post   posts_at[] = { post_at, NULL };  static  v_post   posts_at[] = { post_at, NULL };
 static  v_post   posts_bd[] = { herr_eq0, bwarn_ge1, NULL };  static  v_post   posts_bd[] = { hwarn_eq0, bwarn_ge1, NULL };
 static  v_post   posts_bf[] = { hwarn_le1, post_bf, NULL };  static  v_post   posts_bf[] = { hwarn_le1, post_bf, NULL };
 static  v_post   posts_bl[] = { bwarn_ge1, post_bl, NULL };  static  v_post   posts_bl[] = { bwarn_ge1, post_bl, NULL };
 static  v_post   posts_bool[] = { eerr_eq1, ebool, NULL };  static  v_post   posts_bool[] = { eerr_eq1, ebool, NULL };
Line 133  static v_post  posts_text1[] = { eerr_eq1, NULL };
Line 134  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 414  CHECK_HEAD_DEFN(eq0, err, err_child_eq, 0) /* herr_eq0
Line 415  CHECK_HEAD_DEFN(eq0, err, err_child_eq, 0) /* herr_eq0
 CHECK_HEAD_DEFN(le1, warn, warn_child_lt, 2)    /* hwarn_le1() */  CHECK_HEAD_DEFN(le1, warn, warn_child_lt, 2)    /* hwarn_le1() */
 CHECK_HEAD_DEFN(ge1, err, err_child_gt, 0)      /* herr_ge1() */  CHECK_HEAD_DEFN(ge1, err, err_child_gt, 0)      /* herr_ge1() */
 CHECK_HEAD_DEFN(eq1, warn, warn_child_eq, 1)    /* hwarn_eq1() */  CHECK_HEAD_DEFN(eq1, warn, warn_child_eq, 1)    /* hwarn_eq1() */
   CHECK_HEAD_DEFN(eq0, warn, warn_child_eq, 0)    /* hwarn_eq0() */
   
   
 static int  static int
Line 627  pre_bl(PRE_ARGS)
Line 629  pre_bl(PRE_ARGS)
                          * over.  If we don't do this, mdoc_action will                           * over.  If we don't do this, mdoc_action will
                          * become confused when it scans over multiple                           * become confused when it scans over multiple
                          * types whilst setting its bitmasks.                           * types whilst setting its bitmasks.
                            *
                            * FIXME: this should occur in mdoc_action.c.
                          */                           */
                         if (type >= 0) {                          if (type >= 0) {
                                 if ( ! mdoc_nwarn(mdoc, n, EMULTILIST))                                  if ( ! mdoc_nwarn(mdoc, n, EMULTILIST))
Line 1093  post_bl_head(POST_ARGS) 
Line 1097  post_bl_head(POST_ARGS) 
 {  {
         int                     i;          int                     i;
         const struct mdoc_node *n;          const struct mdoc_node *n;
           const struct mdoc_argv *a;
   
         n = mdoc->last->parent;          n = mdoc->last->parent;
         assert(n->args);          assert(n->args);
   
         for (i = 0; i < (int)n->args->argc; i++)          for (i = 0; i < (int)n->args->argc; i++) {
                 if (n->args->argv[i].arg == MDOC_Column)                  a = &n->args->argv[i];
                         break;                  if (a->arg == MDOC_Column) {
                           if (a->sz && mdoc->last->nchild)
                                   return(mdoc_nerr(mdoc, n, ECOLMIS));
                           return(1);
                   }
           }
   
         if (i == (int)n->args->argc)          if (0 == (i = mdoc->last->nchild))
                 return(1);                  return(1);
           return(warn_count(mdoc, "==", 0, "line arguments", i));
         if (n->args->argv[i].sz && mdoc->last->child)  
                 return(mdoc_nerr(mdoc, n, ECOLMIS));  
   
         return(1);  
 }  }
   
   

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

CVSweb