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

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

version 1.26, 2014/07/11 09:07:33 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 ");

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

CVSweb