[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.4 and 1.5

version 1.4, 2009/03/26 09:55:39 version 1.5, 2009/03/26 14:38:11
Line 37  struct actions {
Line 37  struct actions {
   
   
 static  int       post_TH(struct man *);  static  int       post_TH(struct man *);
 static time_t     man_atotime(const char *);  static  time_t    man_atotime(const char *);
   
 const   struct actions man_actions[MAN_MAX] = {  const   struct actions man_actions[MAN_MAX] = {
         { NULL }, /* __ */          { NULL }, /* __ */
Line 60  const struct actions man_actions[MAN_MAX] = {
Line 60  const struct actions man_actions[MAN_MAX] = {
         { NULL }, /* B */          { NULL }, /* B */
         { NULL }, /* I */          { NULL }, /* I */
         { NULL }, /* IR */          { NULL }, /* IR */
           { NULL }, /* RI */
 };  };
   
   
Line 125  post_TH(struct man *m)
Line 126  post_TH(struct man *m)
   
         /* TITLE MSEC ->DATE<- SOURCE VOL */          /* TITLE MSEC ->DATE<- SOURCE VOL */
   
         if (NULL == (n = n->next)) {          if (NULL == (n = n->next))
                 m->meta.date = time(NULL);                  m->meta.date = time(NULL);
                 return(1);          else if (0 == (m->meta.date = man_atotime(n->string))) {
         }  
   
         if (0 == (m->meta.date = man_atotime(n->string))) {  
                 if ( ! man_vwarn(m, n->line, n->pos, "invalid date"))                  if ( ! man_vwarn(m, n->line, n->pos, "invalid date"))
                         return(0);                          return(0);
                 m->meta.date = time(NULL);                  m->meta.date = time(NULL);
Line 138  post_TH(struct man *m)
Line 136  post_TH(struct man *m)
   
         /* TITLE MSEC DATE ->SOURCE<- VOL */          /* TITLE MSEC DATE ->SOURCE<- VOL */
   
         if ((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, "malloc"));
   
         /* TITLE MSEC DATE SOURCE ->VOL<- */          /* TITLE MSEC DATE SOURCE ->VOL<- */
   
         if ((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, "malloc"));
   

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

CVSweb