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

Diff for /mandoc/preconv.c between version 1.9 and 1.10

version 1.9, 2014/10/25 01:03:52 version 1.10, 2014/10/26 18:22:51
Line 27 
Line 27 
 int  int
 preconv_encode(struct buf *ib, struct buf *ob, int *filenc)  preconv_encode(struct buf *ib, struct buf *ob, int *filenc)
 {  {
           size_t           i;
           const long       one = 1L;
         int              state, be;          int              state, be;
         unsigned int     accum;          unsigned int     accum;
         size_t           i;  
         unsigned char    cu;          unsigned char    cu;
         const long       one = 1L;  
   
         if ( ! (*filenc & MPARSE_UTF8))          if ( ! (*filenc & MPARSE_UTF8))
                 goto latin;                  goto latin;
Line 158  preconv_cue(const struct buf *b)
Line 158  preconv_cue(const struct buf *b)
         /* Check if we have the correct header/trailer. */          /* Check if we have the correct header/trailer. */
   
         if ((sz = (size_t)(eoln - ln)) < 10 ||          if ((sz = (size_t)(eoln - ln)) < 10 ||
                         memcmp(ln, ".\\\" -*-", 7) ||              memcmp(ln, ".\\\" -*-", 7) || memcmp(eoln - 3, "-*-", 3))
                         memcmp(eoln - 3, "-*-", 3))  
                 return(MPARSE_UTF8 | MPARSE_LATIN1);                  return(MPARSE_UTF8 | MPARSE_LATIN1);
   
         /* Move after the header and adjust for the trailer. */          /* Move after the header and adjust for the trailer. */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb