Diff for /embedaddon/libxml2/testSAX.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:37:58 version 1.1.1.2, 2014/06/15 19:53:29
Line 71  static int timing = 0; Line 71  static int timing = 0;
  * function calls   * function calls
  */   */
   
#ifndef HAVE_GETTIMEOFDAY #ifndef HAVE_GETTIMEOFDAY
 #ifdef HAVE_SYS_TIMEB_H  #ifdef HAVE_SYS_TIMEB_H
 #ifdef HAVE_SYS_TIME_H  #ifdef HAVE_SYS_TIME_H
 #ifdef HAVE_FTIME  #ifdef HAVE_FTIME
Line 368  resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const x Line 368  resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const x
         return(NULL);          return(NULL);
     /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */      /* xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; */
   
    
     fprintf(stdout, "SAX.resolveEntity(");      fprintf(stdout, "SAX.resolveEntity(");
     if (publicId != NULL)      if (publicId != NULL)
         fprintf(stdout, "%s", (char *)publicId);          fprintf(stdout, "%s", (char *)publicId);
Line 428  getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, co Line 428  getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, co
 /**  /**
  * entityDeclDebug:   * entityDeclDebug:
  * @ctxt:  An XML parser context   * @ctxt:  An XML parser context
 * @name:  the entity name  * @name:  the entity name
 * @type:  the entity type  * @type:  the entity type
  * @publicId: The public ID of the entity   * @publicId: The public ID of the entity
  * @systemId: The system ID of the entity   * @systemId: The system ID of the entity
  * @content: the entity value (without processing).   * @content: the entity value (without processing).
Line 458  const xmlChar *nullstr = BAD_CAST "(null)"; Line 458  const xmlChar *nullstr = BAD_CAST "(null)";
 /**  /**
  * attributeDeclDebug:   * attributeDeclDebug:
  * @ctxt:  An XML parser context   * @ctxt:  An XML parser context
 * @name:  the attribute name  * @name:  the attribute name
 * @type:  the attribute type  * @type:  the attribute type
  *   *
  * An attribute definition has been parsed   * An attribute definition has been parsed
  */   */
Line 483  attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const x Line 483  attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const x
 /**  /**
  * elementDeclDebug:   * elementDeclDebug:
  * @ctxt:  An XML parser context   * @ctxt:  An XML parser context
 * @name:  the element name  * @name:  the element name
 * @type:  the element type  * @type:  the element type
  * @content: the element value (without processing).   * @content: the element value (without processing).
  *   *
  * An element definition has been parsed   * An element definition has been parsed
Line 670  charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlC Line 670  charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlC
  * @ctxt:  An XML parser context   * @ctxt:  An XML parser context
  * @name:  The entity name   * @name:  The entity name
  *   *
 * called when an entity reference is detected.  * called when an entity reference is detected.
  */   */
 static void  static void
 referenceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)  referenceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
Line 906  startElementNsDebug(void *ctx ATTRIBUTE_UNUSED, Line 906  startElementNsDebug(void *ctx ATTRIBUTE_UNUSED,
     else      else
         fprintf(stdout, ", '%s'", (char *) URI);          fprintf(stdout, ", '%s'", (char *) URI);
     fprintf(stdout, ", %d", nb_namespaces);      fprintf(stdout, ", %d", nb_namespaces);
    
     if (namespaces != NULL) {      if (namespaces != NULL) {
         for (i = 0;i < nb_namespaces * 2;i++) {          for (i = 0;i < nb_namespaces * 2;i++) {
             fprintf(stdout, ", xmlns");              fprintf(stdout, ", xmlns");
Line 1131  int main(int argc, char **argv) { Line 1131  int main(int argc, char **argv) {
     int files = 0;      int files = 0;
   
     LIBXML_TEST_VERSION /* be safe, plus calls xmlInitParser */      LIBXML_TEST_VERSION /* be safe, plus calls xmlInitParser */
    
     for (i = 1; i < argc ; i++) {      for (i = 1; i < argc ; i++) {
         if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))          if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
             debug++;              debug++;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>