[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.84 and 1.85

version 1.84, 2010/05/26 10:39:35 version 1.85, 2010/05/30 11:00:53
Line 83  static int  post_at(POST_ARGS);
Line 83  static int  post_at(POST_ARGS);
 static  int      post_bf(POST_ARGS);  static  int      post_bf(POST_ARGS);
 static  int      post_bl(POST_ARGS);  static  int      post_bl(POST_ARGS);
 static  int      post_bl_head(POST_ARGS);  static  int      post_bl_head(POST_ARGS);
   static  int      post_dt(POST_ARGS);
 static  int      post_it(POST_ARGS);  static  int      post_it(POST_ARGS);
 static  int      post_lb(POST_ARGS);  static  int      post_lb(POST_ARGS);
 static  int      post_nm(POST_ARGS);  static  int      post_nm(POST_ARGS);
Line 113  static v_post  posts_bf[] = { hwarn_le1, post_bf, NULL
Line 114  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 };
 static  v_post   posts_eoln[] = { post_eoln, NULL };  static  v_post   posts_eoln[] = { post_eoln, NULL };
   static  v_post   posts_dt[] = { post_dt, NULL };
 static  v_post   posts_fo[] = { hwarn_eq1, bwarn_ge1, NULL };  static  v_post   posts_fo[] = { hwarn_eq1, bwarn_ge1, NULL };
 static  v_post   posts_it[] = { post_it, NULL };  static  v_post   posts_it[] = { post_it, NULL };
 static  v_post   posts_lb[] = { eerr_eq1, post_lb, NULL };  static  v_post   posts_lb[] = { eerr_eq1, post_lb, NULL };
Line 147  static v_pre  pres_ss[] = { pre_ss, NULL };
Line 149  static v_pre  pres_ss[] = { pre_ss, NULL };
 const   struct valids mdoc_valids[MDOC_MAX] = {  const   struct valids mdoc_valids[MDOC_MAX] = {
         { NULL, NULL },                         /* Ap */          { NULL, NULL },                         /* Ap */
         { pres_dd, posts_text },                /* Dd */          { pres_dd, posts_text },                /* Dd */
         { pres_dt, NULL },                      /* Dt */          { pres_dt, posts_dt },                  /* Dt */
         { pres_os, NULL },                      /* Os */          { pres_os, NULL },                      /* Os */
         { pres_sh, posts_sh },                  /* Sh */          { pres_sh, posts_sh },                  /* Sh */
         { pres_ss, posts_ss },                  /* Ss */          { pres_ss, posts_ss },                  /* Ss */
Line 738  pre_rv(PRE_ARGS)
Line 740  pre_rv(PRE_ARGS)
   
   
 static int  static int
 pre_dt(PRE_ARGS)  post_dt(POST_ARGS)
 {  {
           const struct mdoc_node *nn;
           const char      *p;
   
         /* FIXME: make sure is capitalised. */          if (NULL != (nn = mdoc->last->child))
                   for (p = nn->string; *p; p++) {
                           if ( ! isalpha((u_char)*p))
                                   continue;
                           if (isupper((u_char)*p))
                                   continue;
                           if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE))
                                   return(0);
                           break;
                   }
   
           return(1);
   }
   
   
   static int
   pre_dt(PRE_ARGS)
   {
   
         if (0 == mdoc->meta.date || mdoc->meta.os)          if (0 == mdoc->meta.date || mdoc->meta.os)
                 if ( ! mdoc_nmsg(mdoc, n, MANDOCERR_PROLOGOOO))                  if ( ! mdoc_nmsg(mdoc, n, MANDOCERR_PROLOGOOO))

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

CVSweb