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

Diff for /pod2mdoc/pod2mdoc.c between version 1.25 and 1.28

version 1.25, 2014/07/11 09:05:03 version 1.28, 2014/07/11 10:31:28
Line 181  trylink(const char *buf, size_t *start, size_t end, si
Line 181  trylink(const char *buf, size_t *start, size_t end, si
 {  {
         size_t           linkstart, realend, linkend,          size_t           linkstart, realend, linkend,
                          i, j, textsz, stack;                           i, j, textsz, stack;
         const char      *text;  
   
         /*          /*
          * Scan to the start of the terminus.           * Scan to the start of the terminus.
Line 218  trylink(const char *buf, size_t *start, size_t end, si
Line 217  trylink(const char *buf, size_t *start, size_t end, si
         linkend = dsz > 1 ? realend - 1 : realend;          linkend = dsz > 1 ? realend - 1 : realend;
   
         /* Re-scan to see if we have a title or section. */          /* Re-scan to see if we have a title or section. */
         text = &buf[*start];  
         for (textsz = *start; textsz < linkend; textsz++)          for (textsz = *start; textsz < linkend; textsz++)
                 if ('|' == buf[textsz] || '/' == buf[textsz])                  if ('|' == buf[textsz] || '/' == buf[textsz])
                         break;                          break;
Line 511  formatcode(struct state *st, const char *buf, size_t *
Line 509  formatcode(struct state *st, const char *buf, size_t *
                                         printf("Ar ");                                          printf("Ar ");
                                 break;                                  break;
                         }                          }
                         printf("Sy ");                          if (0 == strncmp(buf + *start, "NULL", 4) &&
                               ('=' == buf[*start + 4] ||
                                '>' == buf[*start + 4]))
                                   printf("Dv ");
                           else
                                   printf("Sy ");
                         break;                          break;
                 case (FMT_CODE):                  case (FMT_CODE):
                         printf("Qo Li ");                          printf("Qo Li ");
Line 1269  readfile(const struct args *args, const char *fname)
Line 1272  readfile(const struct args *args, const char *fname)
         struct tm       *tm;          struct tm       *tm;
         time_t           ttm;          time_t           ttm;
         struct stat      st;          struct stat      st;
   
         assert(NULL != fname);  
   
         fd = 0 != strcmp("-", fname) ?          fd = 0 != strcmp("-", fname) ?
                 open(fname, O_RDONLY, 0) : STDIN_FILENO;                  open(fname, O_RDONLY, 0) : STDIN_FILENO;

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.28

CVSweb