[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.148 and 1.149

version 1.148, 2010/12/25 13:50:37 version 1.149, 2010/12/25 23:25:53
Line 1649  post_rs(POST_ARGS)
Line 1649  post_rs(POST_ARGS)
 {  {
         struct mdoc_node *nn, *next, *prev;          struct mdoc_node *nn, *next, *prev;
         int               i, j;          int               i, j;
         int              *tj;  
 #define RS_JOURNAL       (1 << 0)  
 #define RS_TITLE         (1 << 1)  
   
         /* Mark whether we're carrying both a %T and %J. */          if (MDOC_BODY != mdoc->last->type)
   
         tj = &mdoc->last->norm->Rs.titlejournal;  
   
         if (MDOC_BLOCK == mdoc->last->type) {  
                 if ( ! (RS_JOURNAL & *tj && RS_TITLE & *tj))  
                         *tj = 0;  
                 return(1);                  return(1);
         } else if (MDOC_BODY != mdoc->last->type)  
                 return(1);  
   
         /*          /*
          * Make sure only certain types of nodes are allowed within the           * Make sure only certain types of nodes are allowed within the
Line 1677  post_rs(POST_ARGS)
Line 1666  post_rs(POST_ARGS)
                                 break;                                  break;
   
                 if (i < RSORD_MAX) {                  if (i < RSORD_MAX) {
                         if (MDOC__T == rsord[i])                          if (MDOC__J == rsord[i])
                                 *tj |= RS_TITLE;                                  mdoc->last->norm->Rs.child_J = nn;
                         else if (MDOC__J == rsord[i])  
                                 *tj |= RS_JOURNAL;  
                         next = nn->next;                          next = nn->next;
                         continue;                          continue;
                 }                  }

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

CVSweb