[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_validate.c between version 1.166 and 1.167

version 1.166, 2014/09/12 00:53:21 version 1.167, 2014/10/11 21:14:11
Line 100 
Line 100 
 static  int      post_eoln(POST_ARGS);  static  int      post_eoln(POST_ARGS);
 static  int      post_ex(POST_ARGS);  static  int      post_ex(POST_ARGS);
 static  int      post_fa(POST_ARGS);  static  int      post_fa(POST_ARGS);
   static  int      post_fn(POST_ARGS);
   static  int      post_fname(POST_ARGS);
 static  int      post_fo(POST_ARGS);  static  int      post_fo(POST_ARGS);
 static  int      post_hyph(POST_ARGS);  static  int      post_hyph(POST_ARGS);
 static  int      post_hyphtext(POST_ARGS);  static  int      post_hyphtext(POST_ARGS);
Line 160 
Line 162 
         { NULL, post_fa },                      /* Fa */          { NULL, post_fa },                      /* Fa */
         { NULL, ewarn_ge1 },                    /* Fd */          { NULL, ewarn_ge1 },                    /* Fd */
         { NULL, NULL },                         /* Fl */          { NULL, NULL },                         /* Fl */
         { NULL, post_fa },                      /* Fn */          { NULL, post_fn },                      /* Fn */
         { NULL, NULL },                         /* Ft */          { NULL, NULL },                         /* Ft */
         { NULL, NULL },                         /* Ic */          { NULL, NULL },                         /* Ic */
         { NULL, ewarn_eq1 },                    /* In */          { NULL, ewarn_eq1 },                    /* In */
Line 999 
Line 1001 
 }  }
   
 static int  static int
   post_fname(POST_ARGS)
   {
           const struct mdoc_node *n;
           size_t pos;
   
           n = mdoc->last->child;
           pos = strcspn(n->string, "()");
           if (n->string[pos] != '\0')
                   mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse,
                       n->line, n->pos + pos, n->string);
           return(1);
   }
   
   static int
   post_fn(POST_ARGS)
   {
   
           post_fname(mdoc);
           post_fa(mdoc);
           return(1);
   }
   
   static int
 post_fo(POST_ARGS)  post_fo(POST_ARGS)
 {  {
   
         hwarn_eq1(mdoc);          hwarn_eq1(mdoc);
         bwarn_ge1(mdoc);          bwarn_ge1(mdoc);
           if (mdoc->last->type == MDOC_HEAD)
                   post_fname(mdoc);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167