[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.248 and 1.249

version 1.248, 2014/09/11 23:53:30 version 1.249, 2014/09/12 00:54:10
Line 100  static int  post_en(POST_ARGS);
Line 100  static int  post_en(POST_ARGS);
 static  int      post_es(POST_ARGS);  static  int      post_es(POST_ARGS);
 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_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 157  static const struct valids mdoc_valids[MDOC_MAX] = {
Line 158  static const struct valids mdoc_valids[MDOC_MAX] = {
         { NULL, NULL },                         /* Er */          { NULL, NULL },                         /* Er */
         { NULL, NULL },                         /* Ev */          { NULL, NULL },                         /* Ev */
         { pre_std, post_ex },                   /* Ex */          { pre_std, post_ex },                   /* Ex */
         { NULL, NULL },                         /* Fa */          { NULL, post_fa },                      /* Fa */
         { NULL, ewarn_ge1 },                    /* Fd */          { NULL, ewarn_ge1 },                    /* Fd */
         { NULL, NULL },                         /* Fl */          { NULL, NULL },                         /* Fl */
         { NULL, NULL },                         /* Fn */          { NULL, post_fa },                      /* Fn */
         { NULL, NULL },                         /* Ft */          { NULL, NULL },                         /* Ft */
         { NULL, NULL },                         /* Ic */          { NULL, NULL },                         /* Ic */
         { NULL, ewarn_eq1 },                    /* In */          { NULL, ewarn_eq1 },                    /* In */
Line 1004  post_fo(POST_ARGS)
Line 1005  post_fo(POST_ARGS)
   
         hwarn_eq1(mdoc);          hwarn_eq1(mdoc);
         bwarn_ge1(mdoc);          bwarn_ge1(mdoc);
           return(1);
   }
   
   static int
   post_fa(POST_ARGS)
   {
           const struct mdoc_node *n;
           const char *cp;
   
           for (n = mdoc->last->child; n != NULL; n = n->next) {
                   for (cp = n->string; *cp != '\0'; cp++) {
                           /* Ignore callbacks and alterations. */
                           if (*cp == '(' || *cp == '{')
                                   break;
                           if (*cp != ',')
                                   continue;
                           mandoc_msg(MANDOCERR_FA_COMMA, mdoc->parse,
                               n->line, n->pos + (cp - n->string),
                               n->string);
                           break;
                   }
           }
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.248  
changed lines
  Added in v.1.249

CVSweb