auriemma 00/10/11 14:13:35
Modified: c/src Makefile.in
c/src/DOMSupport NSInfo.hpp
c/src/PlatformSupport DOMStringHelper.cpp
Log:
Reordered members and added -Wall as recommended by Nile Geisinger.
Revision Changes Path
1.20 +4 -1 xml-xalan/c/src/Makefile.in
Index: Makefile.in
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/Makefile.in,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Makefile.in 2000/10/10 16:34:56 1.19
+++ Makefile.in 2000/10/11 21:13:29 1.20
@@ -55,6 +55,9 @@
#
#
# $Log: Makefile.in,v $
+# Revision 1.20 2000/10/11 21:13:29 auriemma
+# Reordered members and added -Wall as recommended by Nile Geisinger.
+#
# Revision 1.19 2000/10/10 16:34:56 auriemma
# Update version number.
#
@@ -158,7 +161,7 @@
ifeq ($(PLATFORM), LINUX)
SUPPORTED = TRUE
-PLATFORM_COMPILE_OPTIONS = -fpic -instances=static -D${PLATFORM} -D_REENTRANT
+PLATFORM_COMPILE_OPTIONS = -fpic -Wall -instances=static -D${PLATFORM}
-D_REENTRANT
#ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -lc
ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib
SHLIBSUFFIX=.so
1.5 +11 -10 xml-xalan/c/src/DOMSupport/NSInfo.hpp
Index: NSInfo.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/DOMSupport/NSInfo.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NSInfo.hpp 2000/08/07 16:08:23 1.4
+++ NSInfo.hpp 2000/10/11 21:13:33 1.5
@@ -93,8 +93,8 @@
bool hasXMLNSAttrs = false) :
m_hasProcessedNS(hasProcessedNS),
m_hasXMLNSAttrs(hasXMLNSAttrs),
- m_namespace(),
- m_ancestorHasXMLNSAttrs(ANCESTORXMLNSUNPROCESSED)
+ m_ancestorHasXMLNSAttrs(ANCESTORXMLNSUNPROCESSED),
+ m_namespace()
{
};
@@ -127,9 +127,9 @@
const XalanDOMString& theNamespace,
bool hasXMLNSAttrs) :
m_hasProcessedNS(true),
- m_hasXMLNSAttrs(hasXMLNSAttrs),
- m_namespace(theNamespace),
- m_ancestorHasXMLNSAttrs(ANCESTORXMLNSUNPROCESSED)
+ m_hasXMLNSAttrs(hasXMLNSAttrs),
+ m_ancestorHasXMLNSAttrs(ANCESTORXMLNSUNPROCESSED),
+ m_namespace(theNamespace)
{
};
@@ -140,18 +140,19 @@
bool
operator==(const NSInfo& theRHS) const
{
- return equals(m_namespace, theRHS.m_namespace) &&
- m_hasXMLNSAttrs == theRHS.m_hasXMLNSAttrs &&
+ return m_hasXMLNSAttrs == theRHS.m_hasXMLNSAttrs &&
m_hasProcessedNS == theRHS.m_hasProcessedNS &&
- m_ancestorHasXMLNSAttrs ==
theRHS.m_ancestorHasXMLNSAttrs;
+ m_ancestorHasXMLNSAttrs ==
theRHS.m_ancestorHasXMLNSAttrs &&
+ equals(m_namespace, theRHS.m_namespace);
}
- XalanDOMString m_namespace;
- bool m_hasXMLNSAttrs;
bool m_hasProcessedNS;
+ bool m_hasXMLNSAttrs;
eHasXMLNSAttrs m_ancestorHasXMLNSAttrs;
+
+ XalanDOMString m_namespace;
};
1.40 +2 -2 xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp
Index: DOMStringHelper.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- DOMStringHelper.cpp 2000/10/11 19:43:03 1.39
+++ DOMStringHelper.cpp 2000/10/11 21:13:34 1.40
@@ -675,8 +675,8 @@
const XalanDOMChar charRHS = theRHS[i];
if (charLHS != charRHS &&
- towupper(charLHS) != charRHS &&
- charLHS != towupper(charRHS))
+ XalanDOMChar(towupper(charLHS)) != charRHS &&
+ charLHS != XalanDOMChar(towupper(charRHS)))
{
break;
}