[Expat-checkins] expat/lib xmlparse.c,1.49,1.50
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue Jul 9 13:26:05 2002
Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10098
Modified Files:
xmlparse.c
Log Message:
A variety of code-style changes:
- Use only plain spaces, no hard tabs.
- Strip trailing whitespace from all lines.
- Strip blank line from the end of the file.
- Do no use a space following the ! operator.
- Wrap a couple of long lines.
Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- xmlparse.c 9 Jul 2002 18:29:23 -0000 1.49
+++ xmlparse.c 9 Jul 2002 20:25:10 -0000 1.50
@@ -61,7 +61,7 @@
#endif
-#ifdef XML_UNICODE
+#ifdef XML_UNICODE
#ifdef XML_UNICODE_WCHAR_T
#define XML_T(x) (const wchar_t)x
@@ -70,11 +70,11 @@
#define XML_T(x) (const unsigned short)x
#define XML_L(x) x
[...4258 lines suppressed...]
+ const char *ptr,
+ const char *end)
{
const XML_Char *name = poolStoreString(&dtd.pool, enc, ptr, end);
ELEMENT_TYPE *ret;
- if (! name)
+ if (!name)
return 0;
ret = (ELEMENT_TYPE *) lookup(&dtd.elementTypes, name, sizeof(ELEMENT_TYPE));
- if (! ret)
+ if (!ret)
return 0;
if (ret->name != name)
poolDiscard(&dtd.pool);
@@ -5108,4 +5111,3 @@
}
return ret;
} /* End getElementType */
-