[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.21 and 1.22

version 1.21, 2009/10/27 08:26:12 version 1.22, 2009/10/30 05:58:37
Line 22 
Line 22 
 #include <string.h>  #include <string.h>
   
 #include "libman.h"  #include "libman.h"
   #include "libmandoc.h"
   
 struct  actions {  struct  actions {
         int     (*post)(struct man *);          int     (*post)(struct man *);
Line 141  post_TH(struct man *m)
Line 142  post_TH(struct man *m)
   
         n = m->last->child;          n = m->last->child;
         assert(n);          assert(n);
           m->meta.title = mandoc_strdup(n->string);
   
         if (NULL == (m->meta.title = strdup(n->string)))  
                 return(man_nerr(m, n, WNMEM));  
   
         /* TITLE ->MSEC<- DATE SOURCE VOL */          /* TITLE ->MSEC<- DATE SOURCE VOL */
   
         n = n->next;          n = n->next;
Line 170  post_TH(struct man *m)
Line 169  post_TH(struct man *m)
         /* TITLE MSEC DATE ->SOURCE<- VOL */          /* TITLE MSEC DATE ->SOURCE<- VOL */
   
         if (n && (n = n->next))          if (n && (n = n->next))
                 if (NULL == (m->meta.source = strdup(n->string)))                  m->meta.source = mandoc_strdup(n->string);
                         return(man_nerr(m, n, WNMEM));  
   
         /* TITLE MSEC DATE SOURCE ->VOL<- */          /* TITLE MSEC DATE SOURCE ->VOL<- */
   
         if (n && (n = n->next))          if (n && (n = n->next))
                 if (NULL == (m->meta.vol = strdup(n->string)))                  m->meta.vol = mandoc_strdup(n->string);
                         return(man_nerr(m, n, WNMEM));  
   
         /*          /*
          * The end document shouldn't have the prologue macros as part           * The end document shouldn't have the prologue macros as part

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

CVSweb