[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.9

version 1.6, 2009/03/27 14:56:15 version 1.9, 2009/04/05 16:34:22
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 62  const struct actions man_actions[MAN_MAX] = {
Line 60  const struct actions man_actions[MAN_MAX] = {
         { NULL }, /* IR */          { NULL }, /* IR */
         { NULL }, /* RI */          { NULL }, /* RI */
         { NULL }, /* br */          { NULL }, /* br */
           { NULL }, /* na */
           { NULL }, /* i */
 };  };
   
   
Line 111  post_TH(struct man *m)
Line 111  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 140  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.9

CVSweb