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

Diff for /mandoc/Attic/man_action.c between version 1.2 and 1.4

version 1.2, 2009/03/25 16:07:36 version 1.4, 2009/03/26 09:55:39
Line 27 
Line 27 
   
 #include "libman.h"  #include "libman.h"
   
   #ifdef __linux__
   extern  char            *strptime(const char *, const char *, struct tm *);
   #endif
   
 struct  actions {  struct  actions {
         int     (*post)(struct man *);          int     (*post)(struct man *);
Line 150  post_TH(struct man *m)
Line 153  post_TH(struct man *m)
          * of the syntax tree (they encompass only meta-data).           * of the syntax tree (they encompass only meta-data).
          */           */
   
         assert(MAN_ROOT == m->last->parent->type);          if (m->last->parent->child == m->last) {
         m->last->parent->child = NULL;                  assert(MAN_ROOT == m->last->parent->type);
         n = m->last;                  m->last->parent->child = NULL;
         m->last = m->last->parent;                  n = m->last;
         m->next = MAN_NEXT_CHILD;                  m->last = m->last->parent;
         assert(m->last == m->first);                  m->next = MAN_NEXT_CHILD;
                   assert(m->last == m->first);
           } else {
                   assert(m->last->prev);
                   m->last->prev->next = NULL;
                   n = m->last;
                   m->last = m->last->prev;
                   m->next = MAN_NEXT_SIBLING;
           }
   
         man_node_freelist(n);          man_node_freelist(n);
         return(1);          return(1);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

CVSweb