]> granicus.if.org Git - libexpat/commitdiff
Removed useless RCSId static from the code.
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 17:20:45 +0000 (17:20 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 17:20:45 +0000 (17:20 +0000)
Added #include to pick up the memmove() prototype.

Added parentheses in some conditions to suppress compiler warnings.

expat/lib/xmlparse.c

index d9ba422ad603c7fc5807dcf897e8236282a34a2b..cb65d804ead3e0e34fdb48bc77edab9c5781456f 100644 (file)
@@ -3,9 +3,6 @@ Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
 See the file COPYING for copying permission.
 */
 
-static char RCSId[]
-  = "$Header: /cvsroot/expat/expat/lib/xmlparse.c,v 1.16 2001/07/25 03:29:56 fdrake Exp $";
-
 #ifdef COMPILED_FROM_DSP
 #  include "winconfig.h"
 #  define XMLPARSEAPI __declspec(dllexport)
@@ -26,6 +23,7 @@ static char RCSId[]
 #endif /* ndef COMPILED_FROM_DSP */
 
 #include <stddef.h>
+#include <string.h>
 
 #ifdef XML_UNICODE
 #define XML_ENCODE_MAX XML_UTF16_ENCODE_MAX
@@ -2754,7 +2752,7 @@ doProlog(XML_Parser parser,
        return XML_ERROR_NO_MEMORY;
       if (attlistDeclHandler && declAttributeType) {
        if (*declAttributeType == '('
-           || *declAttributeType == 'N' && declAttributeType[1] == 'O') {
+           || (*declAttributeType == 'N' && declAttributeType[1] == 'O')) {
          /* Enumerated or Notation type */
          if (! poolAppendChar(&tempPool, ')')
              || ! poolAppendChar(&tempPool, '\0'))
@@ -2788,7 +2786,7 @@ doProlog(XML_Parser parser,
          return XML_ERROR_NO_MEMORY;
        if (attlistDeclHandler && declAttributeType) {
          if (*declAttributeType == '('
-             || *declAttributeType == 'N' && declAttributeType[1] == 'O') {
+             || (*declAttributeType == 'N' && declAttributeType[1] == 'O')) {
            /* Enumerated or Notation type */
            if (! poolAppendChar(&tempPool, ')')
                || ! poolAppendChar(&tempPool, '\0'))