[BACK]Return to mdoc_term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_term.c between version 1.93 and 1.95

version 1.93, 2009/10/19 15:18:30 version 1.95, 2009/10/24 05:52:14
Line 236  static const struct termact termacts[MDOC_MAX] = {
Line 236  static const struct termact termacts[MDOC_MAX] = {
         { NULL, termp____post }, /* %Q */          { NULL, termp____post }, /* %Q */
         { termp_sp_pre, NULL }, /* br */          { termp_sp_pre, NULL }, /* br */
         { termp_sp_pre, NULL }, /* sp */          { termp_sp_pre, NULL }, /* sp */
           { NULL, termp____post }, /* %U */
 };  };
   
 #ifdef __linux__  #ifdef __linux__
Line 347  print_node(DECL_ARGS)
Line 348  print_node(DECL_ARGS)
 static void  static void
 print_foot(DECL_ARGS)  print_foot(DECL_ARGS)
 {  {
         struct tm       *tm;          char             buf[DATESIZ];
         char            *buf, *os;          char            *os;
   
         /*          /*
          * Output the footer in new-groff style, that is, three columns           * Output the footer in new-groff style, that is, three columns
Line 358  print_foot(DECL_ARGS)
Line 359  print_foot(DECL_ARGS)
          * SYSTEM                  DATE                    SYSTEM           * SYSTEM                  DATE                    SYSTEM
          */           */
   
         if (NULL == (buf = malloc(p->rmargin)))  
                 err(EXIT_FAILURE, "malloc");  
         if (NULL == (os = malloc(p->rmargin)))          if (NULL == (os = malloc(p->rmargin)))
                 err(EXIT_FAILURE, "malloc");                  err(EXIT_FAILURE, "malloc");
   
         tm = localtime(&m->date);          time2a(m->date, buf, DATESIZ);
   
         if (0 == strftime(buf, p->rmargin, "%B %e, %Y", tm))  
                 err(EXIT_FAILURE, "strftime");  
   
         (void)strlcpy(os, m->os, p->rmargin);          (void)strlcpy(os, m->os, p->rmargin);
   
         term_vspace(p);          term_vspace(p);
Line 398  print_foot(DECL_ARGS)
Line 394  print_foot(DECL_ARGS)
         p->rmargin = p->maxrmargin;          p->rmargin = p->maxrmargin;
         p->flags = 0;          p->flags = 0;
   
         free(buf);  
         free(os);          free(os);
 }  }
   
Line 2011  termp_ap_pre(DECL_ARGS)
Line 2006  termp_ap_pre(DECL_ARGS)
 static void  static void
 termp____post(DECL_ARGS)  termp____post(DECL_ARGS)
 {  {
   
           /* TODO: %U. */
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         switch (n->tok) {          switch (n->tok) {

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.95

CVSweb