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

version 1.5, 2009/03/26 14:38:11 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 61  const struct actions man_actions[MAN_MAX] = {
Line 59  const struct actions man_actions[MAN_MAX] = {
         { NULL }, /* I */          { NULL }, /* I */
         { NULL }, /* IR */          { NULL }, /* IR */
         { NULL }, /* RI */          { NULL }, /* RI */
           { NULL }, /* br */
 };  };
   
   
Line 110  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 138  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.5  
changed lines
  Added in v.1.7

CVSweb