[BACK]Return to mdocterm.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/mdocterm.c between version 1.8 and 1.9

version 1.8, 2009/02/24 14:52:55 version 1.9, 2009/02/25 12:09:20
Line 410  body(struct termp *p, const struct mdoc_meta *meta,
Line 410  body(struct termp *p, const struct mdoc_meta *meta,
                 const struct mdoc_node *node)                  const struct mdoc_node *node)
 {  {
         int              dochild;          int              dochild;
           struct termpair  pair;
   
         /* Pre-processing. */          /* Pre-processing. */
   
         dochild = 1;          dochild = 1;
           pair.type = 0;
   
         if (MDOC_TEXT != node->type) {          if (MDOC_TEXT != node->type) {
                 if (termacts[node->tok].pre)                  if (termacts[node->tok].pre)
                         if ( ! (*termacts[node->tok].pre)(p, meta, node))                          if ( ! (*termacts[node->tok].pre)(p, &pair, meta, node))
                                 dochild = 0;                                  dochild = 0;
         } else /* MDOC_TEXT == node->type */          } else /* MDOC_TEXT == node->type */
                 word(p, node->data.text.string);                  word(p, node->data.text.string);
   
         /* Children. */          /* Children. */
   
           switch (pair.type) {
           case (TERMPAIR_FLAG):
                   p->flags |= pair.data.flag;
                   break;
           default:
                   break;
           }
   
         if (dochild && node->child)          if (dochild && node->child)
                 body(p, meta, node->child);                  body(p, meta, node->child);
   
           switch (pair.type) {
           case (TERMPAIR_FLAG):
                   p->flags &= ~pair.data.flag;
                   break;
           default:
                   break;
           }
   
         /* Post-processing. */          /* Post-processing. */
   
         if (MDOC_TEXT != node->type)          if (MDOC_TEXT != node->type)
                 if (termacts[node->tok].post)                  if (termacts[node->tok].post)
                         (*termacts[node->tok].post)(p, meta, node);                          (*termacts[node->tok].post)(p, &pair, meta, node);
   
         /* Siblings. */          /* Siblings. */
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb