mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
PyModule_AddStringConstant(): Make this static since it isn't used
elsewhere in 1.5.2.
This commit is contained in:
parent
c0718eba21
commit
a77254a724
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
#ifdef HAVE_EXPAT_H
|
||||||
|
#include "expat.h"
|
||||||
|
#else
|
||||||
#include "xmlparse.h"
|
#include "xmlparse.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
enum HandlerTypes {
|
enum HandlerTypes {
|
||||||
StartElement,
|
StartElement,
|
||||||
|
|
@ -877,7 +881,7 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
PyModule_AddStringConstant(PyObject *m, char *name, char *value)
|
PyModule_AddStringConstant(PyObject *m, char *name, char *value)
|
||||||
{
|
{
|
||||||
return PyModule_AddObject(m, name, PyString_FromString(value));
|
return PyModule_AddObject(m, name, PyString_FromString(value));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue