]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PyModule_AddStringConstant(): Make this static since it isn't used
authorFred Drake <fdrake@acm.org>
Fri, 29 Sep 2000 19:23:29 +0000 (19:23 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 29 Sep 2000 19:23:29 +0000 (19:23 +0000)
                               elsewhere in 1.5.2.

Modules/pyexpat.c

index 8ef36d8076b79e5703abbbc247a5813eec2368c0..543648bf9d42e8d434b65926fd9c978b6f08744e 100644 (file)
@@ -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));