Diff for /XML/HTMLparser.c between versions 1.44 and 1.45

version 1.44, 2000/06/29 10:33:02 version 1.45, 2000/06/29 16:02:51
Line 1026  htmlDecodeEntities(htmlParserCtxtPtr ctx Line 1026  htmlDecodeEntities(htmlParserCtxtPtr ctx
     /*      /*
      * Ok loop until we reach one of the ending char or a size limit.       * Ok loop until we reach one of the ending char or a size limit.
      */       */
     while ((nbchars < max) && (CUR != end) &&      while ((nbchars < (int) max) && (CUR != end) &&
            (CUR != end2) && (CUR != end3)) {             (CUR != end2) && (CUR != end3)) {
   
         if (CUR == '&') {          if (CUR == '&') {
Line 1423  htmlParseHTMLName(htmlParserCtxtPtr ctxt Line 1423  htmlParseHTMLName(htmlParserCtxtPtr ctxt
         (CUR != ':')) return(NULL);          (CUR != ':')) return(NULL);
   
     while ((i < HTML_PARSER_BUFFER_SIZE) &&      while ((i < HTML_PARSER_BUFFER_SIZE) &&
            ((IS_LETTER(CUR)) || (IS_DIGIT(CUR)))) {             ((IS_LETTER(CUR)) || (IS_DIGIT(CUR)) ||
              (CUR == ':') || (CUR == '_'))) {
         if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20;          if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20;
         else loc[i] = CUR;          else loc[i] = CUR;
         i++;          i++;
Line 2362  failed: Line 2363  failed:
             if (atts[i] != NULL)              if (atts[i] != NULL)
                 xmlFree((xmlChar *) atts[i]);                  xmlFree((xmlChar *) atts[i]);
         }          }
         xmlFree(atts);          xmlFree((void *) atts);
     }      }
     if (name != NULL) xmlFree(name);      if (name != NULL) xmlFree(name);
 }  }

Removed from v.1.44  
changed lines
  Added in v.1.45


Webmaster