summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-29 19:23:29 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-29 19:23:29 (GMT)
commita77254a724e630cddc7c2c71f8c931d4daf0ee7d (patch)
tree3ec1a142c0819c9e18bdf50a4d32ee02aa500ac9 /Modules
parentc0718eba21c6e8157d9f3ea00d7b2bac1fb7e0a2 (diff)
downloadcpython-a77254a724e630cddc7c2c71f8c931d4daf0ee7d.zip
cpython-a77254a724e630cddc7c2c71f8c931d4daf0ee7d.tar.gz
cpython-a77254a724e630cddc7c2c71f8c931d4daf0ee7d.tar.bz2
PyModule_AddStringConstant(): Make this static since it isn't used
elsewhere in 1.5.2.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pyexpat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 8ef36d8..543648b 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1,5 +1,9 @@
#include "Python.h"
+#ifdef HAVE_EXPAT_H
+#include "expat.h"
+#else
#include "xmlparse.h"
+#endif
enum HandlerTypes {
StartElement,
@@ -877,7 +881,7 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o)
return 0;
}
-int
+static int
PyModule_AddStringConstant(PyObject *m, char *name, char *value)
{
return PyModule_AddObject(m, name, PyString_FromString(value));