[Zope-Checkins] CVS: Packages/Shared/DC/xml/pyexpat - dcpyexpat.c:1.4.94.1

Andreas Jung andreas at andreas-jung.com
Sat Jan 15 06:14:19 EST 2005


Update of /cvs-repository/Packages/Shared/DC/xml/pyexpat
In directory cvs.zope.org:/tmp/cvs-serv13331/lib/python/Shared/DC/xml/pyexpat

Modified Files:
      Tag: Zope-2_7-branch
	dcpyexpat.c 
Log Message:

      - Collector: #1651: removed compiler warning 


=== Packages/Shared/DC/xml/pyexpat/dcpyexpat.c 1.4 => 1.4.94.1 ===
--- Packages/Shared/DC/xml/pyexpat/dcpyexpat.c:1.4	Thu Mar 21 10:48:56 2002
+++ Packages/Shared/DC/xml/pyexpat/dcpyexpat.c	Sat Jan 15 06:13:48 2005
@@ -70,8 +70,8 @@
 	PyObject *rv;
 	PyObject *attrs_obj;
 	int attrs_len;
-	const char **attrs_p, **attrs_k;
-
+	const char **attrs_p;
+	const char **attrs_k = atts;
 
 	if (self->StartElementHandler != Py_None) {
 	        if (self->attrdict) {
@@ -715,7 +715,7 @@
 void
 initdcpyexpat(void) {
 	PyObject *m, *d;
-	char *rev="$Revision$";
+	static const char *rev="$Revision$";
 
 	Xmlparsetype.ob_type = &PyType_Type;
 
@@ -726,7 +726,7 @@
 	d = PyModule_GetDict(m);
 	ErrorObject = PyString_FromString("pyexpat.error");
 	PyDict_SetItemString(d, "error", ErrorObject);
-
+	PyDict_SetItemString(d, "API_Revision", PyString_FromString(rev));
 #define MYCONST(name) \
 	PyDict_SetItemString(d, #name, PyInt_FromLong(name))
 		



More information about the Zope-Checkins mailing list