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

Diff for /mandoc/man.c between version 1.104 and 1.106

version 1.104, 2011/03/20 16:02:05 version 1.106, 2011/03/23 12:33:01
Line 26 
Line 26 
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
   
   #include "man.h"
 #include "mandoc.h"  #include "mandoc.h"
 #include "libman.h"  #include "libman.h"
 #include "libmandoc.h"  #include "libmandoc.h"
Line 202  man_node_append(struct man *man, struct man_node *p)
Line 203  man_node_append(struct man *man, struct man_node *p)
                 assert(MAN_BLOCK == p->parent->type);                  assert(MAN_BLOCK == p->parent->type);
                 p->parent->head = p;                  p->parent->head = p;
                 break;                  break;
           case (MAN_TAIL):
                   assert(MAN_BLOCK == p->parent->type);
                   p->parent->tail = p;
                   break;
         case (MAN_BODY):          case (MAN_BODY):
                 assert(MAN_BLOCK == p->parent->type);                  assert(MAN_BLOCK == p->parent->type);
                 p->parent->body = p;                  p->parent->body = p;
Line 252  man_elem_alloc(struct man *m, int line, int pos, enum 
Line 257  man_elem_alloc(struct man *m, int line, int pos, enum 
         struct man_node *p;          struct man_node *p;
   
         p = man_node_alloc(m, line, pos, MAN_ELEM, tok);          p = man_node_alloc(m, line, pos, MAN_ELEM, tok);
           if ( ! man_node_append(m, p))
                   return(0);
           m->next = MAN_NEXT_CHILD;
           return(1);
   }
   
   
   int
   man_tail_alloc(struct man *m, int line, int pos, enum mant tok)
   {
           struct man_node *p;
   
           p = man_node_alloc(m, line, pos, MAN_TAIL, tok);
         if ( ! man_node_append(m, p))          if ( ! man_node_append(m, p))
                 return(0);                  return(0);
         m->next = MAN_NEXT_CHILD;          m->next = MAN_NEXT_CHILD;

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.106

CVSweb