Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 36680:54eb5b1fb363 legacy-trunk
unconst.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 27 Feb 2006 17:01:22 +0000 |
| parents | 2ddea5535f08 |
| children | 5c36c222e7ca |
line wrap: on
line diff
--- a/Modules/parsermodule.c Mon Feb 27 16:50:35 2006 +0000 +++ b/Modules/parsermodule.c Mon Feb 27 17:01:22 2006 +0000 @@ -158,7 +158,7 @@ static void parser_free(PyST_Object *st); static int parser_compare(PyST_Object *left, PyST_Object *right); -static PyObject *parser_getattr(PyObject *self, const char *name); +static PyObject *parser_getattr(PyObject *self, char *name); static @@ -292,7 +292,7 @@ PyObject *res = 0; int ok; - static const char *keywords[] = {"ast", "line_info", NULL}; + static char *keywords[] = {"ast", "line_info", NULL}; if (self == NULL) { ok = PyArg_ParseTupleAndKeywords(args, kw, "O!|O:st2tuple", keywords, @@ -330,7 +330,7 @@ PyObject *res = 0; int ok; - static const char *keywords[] = {"ast", "line_info", NULL}; + static char *keywords[] = {"ast", "line_info", NULL}; if (self == NULL) ok = PyArg_ParseTupleAndKeywords(args, kw, "O!|O:st2list", keywords, @@ -367,7 +367,7 @@ char* str = "<syntax-tree>"; int ok; - static const char *keywords[] = {"ast", "filename", NULL}; + static char *keywords[] = {"ast", "filename", NULL}; if (self == NULL) ok = PyArg_ParseTupleAndKeywords(args, kw, "O!|s:compilest", keywords, @@ -396,7 +396,7 @@ PyObject* res = 0; int ok; - static const char *keywords[] = {"ast", NULL}; + static char *keywords[] = {"ast", NULL}; if (self == NULL) ok = PyArg_ParseTupleAndKeywords(args, kw, "O!:isexpr", keywords, @@ -419,7 +419,7 @@ PyObject* res = 0; int ok; - static const char *keywords[] = {"ast", NULL}; + static char *keywords[] = {"ast", NULL}; if (self == NULL) ok = PyArg_ParseTupleAndKeywords(args, kw, "O!:issuite", keywords, @@ -456,7 +456,7 @@ static PyObject* -parser_getattr(PyObject *self, const char *name) +parser_getattr(PyObject *self, char *name) { return (Py_FindMethod(parser_methods, self, name)); } @@ -486,7 +486,7 @@ char* string = 0; PyObject* res = 0; - static const char *keywords[] = {"source", NULL}; + static char *keywords[] = {"source", NULL}; if (PyArg_ParseTupleAndKeywords(args, kw, argspec, keywords, &string)) { node* n = PyParser_SimpleParseString(string, @@ -568,7 +568,7 @@ PyObject *tuple; node *tree; - static const char *keywords[] = {"sequence", NULL}; + static char *keywords[] = {"sequence", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kw, "O:sequence2st", keywords, &tuple))
