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

Diff for /mandoc/man.c between version 1.65 and 1.68

version 1.65, 2010/05/12 16:46:28 version 1.68, 2010/05/15 15:54:39
Line 32 
Line 32 
   
 const   char *const __man_merrnames[WERRMAX] = {  const   char *const __man_merrnames[WERRMAX] = {
         "invalid character", /* WNPRINT */          "invalid character", /* WNPRINT */
         "invalid manual section", /* WMSEC */  
         "invalid date format", /* WDATE */          "invalid date format", /* WDATE */
         "scope of prior line violated", /* WLNSCOPE */          "scope of prior line violated", /* WLNSCOPE */
         "over-zealous prior line scope violation", /* WLNSCOPE2 */          "over-zealous prior line scope violation", /* WLNSCOPE2 */
Line 174  man_free1(struct man *man)
Line 173  man_free1(struct man *man)
                 free(man->meta.source);                  free(man->meta.source);
         if (man->meta.vol)          if (man->meta.vol)
                 free(man->meta.vol);                  free(man->meta.vol);
           if (man->meta.msec)
                   free(man->meta.msec);
 }  }
   
   
Line 426  man_ptext(struct man *m, int line, char *buf)
Line 427  man_ptext(struct man *m, int line, char *buf)
          * sentence.  The front-end will know how to interpret this.           * sentence.  The front-end will know how to interpret this.
          */           */
   
           /* FIXME: chain of close delims. */
   
         assert(i);          assert(i);
   
         switch (buf[i - 1]) {          if (mandoc_eos(buf, (size_t)i))
         case ('.'):  
                 if (i > 1 && '\\' == buf[i - 2])  
                         break;  
                 /* FALLTHROUGH */  
         case ('!'):  
                 /* FALLTHROUGH */  
         case ('?'):  
                 m->last->flags |= MAN_EOS;                  m->last->flags |= MAN_EOS;
                 break;  
         default:  
                 break;  
   
         }  
   
 descope:  descope:
         /*          /*

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.68

CVSweb