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

version 1.1.1.1, 2012/02/21 23:37:57 version 1.1.1.2, 2014/06/15 19:53:28
Line 179  resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const x Line 179  resolveEntityDebug(void *ctx ATTRIBUTE_UNUSED, const x
 {  {
     /* 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 233  getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED, co Line 233  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 252  entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlC Line 252  entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlC
 /**  /**
  * 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 269  attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const x Line 269  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 453  cdataDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar * Line 453  cdataDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *
  * @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 687  parseSAXFile(char *filename) { Line 687  parseSAXFile(char *filename) {
                 fclose(f);                  fclose(f);
             }              }
         }          }
    } else {        } else {
 #endif /* LIBXML_PUSH_ENABLED */  #endif /* LIBXML_PUSH_ENABLED */
         doc = htmlSAXParseFile(filename, NULL, emptySAXHandler, NULL);          doc = htmlSAXParseFile(filename, NULL, emptySAXHandler, NULL);
         if (doc != NULL) {          if (doc != NULL) {
Line 746  parseAndPrintFile(char *filename) { Line 746  parseAndPrintFile(char *filename) {
             }              }
             fclose(f);              fclose(f);
         }          }
    } else {        } else {
         doc = htmlReadFile(filename, NULL, options);          doc = htmlReadFile(filename, NULL, options);
     }      }
 #else  #else
Line 774  parseAndPrintFile(char *filename) { Line 774  parseAndPrintFile(char *filename) {
     /*      /*
      * print it.       * print it.
      */       */
    if (!noout) {     if (!noout) {
 #ifdef LIBXML_DEBUG_ENABLED  #ifdef LIBXML_DEBUG_ENABLED
         if (!debug) {          if (!debug) {
             if (encoding)              if (encoding)
Line 789  parseAndPrintFile(char *filename) { Line 789  parseAndPrintFile(char *filename) {
         else          else
             htmlDocDump(stdout, doc);              htmlDocDump(stdout, doc);
 #endif  #endif
    }       }
 #endif /* LIBXML_OUTPUT_ENABLED */  #endif /* LIBXML_OUTPUT_ENABLED */
   
     /*      /*
Line 838  int main(int argc, char **argv) { Line 838  int main(int argc, char **argv) {
                 for (count = 0;count < 100 * repeat;count++) {                  for (count = 0;count < 100 * repeat;count++) {
                     if (sax)                      if (sax)
                         parseSAXFile(argv[i]);                          parseSAXFile(argv[i]);
                    else                       else
                         parseAndPrintFile(argv[i]);                          parseAndPrintFile(argv[i]);
                }                    }
             } else {              } else {
                 if (sax)                  if (sax)
                     parseSAXFile(argv[i]);                      parseSAXFile(argv[i]);
                else                   else
                     parseAndPrintFile(argv[i]);                      parseAndPrintFile(argv[i]);
             }              }
             files ++;              files ++;

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


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