From: Fred Drake Date: Fri, 29 Sep 2000 19:23:29 +0000 (+0000) Subject: PyModule_AddStringConstant(): Make this static since it isn't used X-Git-Tag: v2.0c1~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a77254a724e630cddc7c2c71f8c931d4daf0ee7d;p=thirdparty%2FPython%2Fcpython.git PyModule_AddStringConstant(): Make this static since it isn't used elsewhere in 1.5.2. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 8ef36d8076b7..543648bf9d42 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));