[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.6 and 1.7

version 1.6, 2009/03/27 14:56:15 version 1.7, 2009/03/31 13:50:19
Line 19 
Line 19 
 #include <sys/utsname.h>  #include <sys/utsname.h>
   
 #include <assert.h>  #include <assert.h>
 #include <err.h>  
 #include <errno.h>  #include <errno.h>
 #include <stdio.h>  
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
Line 111  post_TH(struct man *m)
Line 109  post_TH(struct man *m)
         assert(n);          assert(n);
   
         if (NULL == (m->meta.title = strdup(n->string)))          if (NULL == (m->meta.title = strdup(n->string)))
                 return(man_verr(m, n->line, n->pos, "malloc"));                  return(man_verr(m, n->line, n->pos,
                                           "memory exhausted"));
   
         /* TITLE ->MSEC<- DATE SOURCE VOL */          /* TITLE ->MSEC<- DATE SOURCE VOL */
   
Line 139  post_TH(struct man *m)
Line 138  post_TH(struct man *m)
   
         if (n && (n = n->next))          if (n && (n = n->next))
                 if (NULL == (m->meta.source = strdup(n->string)))                  if (NULL == (m->meta.source = strdup(n->string)))
                         return(man_verr(m, n->line, n->pos, "malloc"));                          return(man_verr(m, n->line, n->pos,
                                                   "memory exhausted"));
   
         /* 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)))                  if (NULL == (m->meta.vol = strdup(n->string)))
                         return(man_verr(m, n->line, n->pos, "malloc"));                          return(man_verr(m, n->line, n->pos,
                                                   "memory exhausted"));
   
         /*          /*
          * 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.6  
changed lines
  Added in v.1.7

CVSweb