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

Diff for /mandoc/Attic/xml.c between version 1.11 and 1.12

version 1.11, 2008/12/03 19:21:58 version 1.12, 2008/12/03 21:27:56
Line 37  static int  xml_end(struct md_mbuf *, 
Line 37  static int  xml_end(struct md_mbuf *, 
                                 const struct md_args *);                                  const struct md_args *);
   
   
   /* ARGSUSED */
 static int  static int
 xml_begin(struct md_mbuf *mbuf, const struct md_args *args)  xml_begin(struct md_mbuf *mbuf, const struct md_args *args)
 {  {
Line 54  xml_begin(struct md_mbuf *mbuf, const struct md_args *
Line 55  xml_begin(struct md_mbuf *mbuf, const struct md_args *
 }  }
   
   
   /* ARGSUSED */
 static int  static int
 xml_end(struct md_mbuf *mbuf, const struct md_args *args)  xml_end(struct md_mbuf *mbuf, const struct md_args *args)
 {  {
Line 67  xml_end(struct md_mbuf *mbuf, const struct md_args *ar
Line 69  xml_end(struct md_mbuf *mbuf, const struct md_args *ar
 }  }
   
   
   /* ARGSUSED */
 static ssize_t  static ssize_t
 xml_begintag(struct md_mbuf *mbuf, const struct md_args *args,  xml_begintag(struct md_mbuf *mbuf, const struct md_args *args,
                 enum md_ns ns, int tok,                  enum md_ns ns, int tok,
Line 97  xml_begintag(struct md_mbuf *mbuf, const struct md_arg
Line 100  xml_begintag(struct md_mbuf *mbuf, const struct md_arg
                 break;                  break;
         }          }
   
         if ( ! ml_nputs(mbuf, toknames[tok],          if ( ! ml_puts(mbuf, toknames[tok], &res))
                                 strlen(toknames[tok]), &res))  
                 return(-1);                  return(-1);
   
         return((ssize_t)res);          return((ssize_t)res);
 }  }
   
   
   /* ARGSUSED */
 static ssize_t  static ssize_t
 xml_endtag(struct md_mbuf *mbuf, const struct md_args *args,  xml_endtag(struct md_mbuf *mbuf, const struct md_args *args,
                 enum md_ns ns, int tok)                  enum md_ns ns, int tok)
Line 134  xml_endtag(struct md_mbuf *mbuf, const struct md_args 
Line 137  xml_endtag(struct md_mbuf *mbuf, const struct md_args 
                 break;                  break;
         }          }
   
         if ( ! ml_nputs(mbuf, toknames[tok],          if ( ! ml_puts(mbuf, toknames[tok], &res))
                                 strlen(toknames[tok]), &res))  
                 return(-1);                  return(-1);
   
         return((ssize_t)res);          return((ssize_t)res);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb