@@ -144,7 +144,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
144144
145145 /* Implemented elsewhere:
146146
147- int PyObject_HasAttrString(PyObject *o, char *attr_name);
147+ int PyObject_HasAttrString(PyObject *o, const char *attr_name);
148148
149149 Returns 1 if o has the attribute attr_name, and 0 otherwise.
150150 This is equivalent to the Python expression:
@@ -156,7 +156,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
156156
157157 /* Implemented elsewhere:
158158
159- PyObject* PyObject_GetAttrString(PyObject *o, char *attr_name);
159+ PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name);
160160
161161 Retrieve an attributed named attr_name form object o.
162162 Returns the attribute value on success, or NULL on failure.
@@ -189,7 +189,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
189189
190190 /* Implemented elsewhere:
191191
192- int PyObject_SetAttrString(PyObject *o, char *attr_name, PyObject *v);
192+ int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v);
193193
194194 Set the value of the attribute named attr_name, for object o,
195195 to the value, v. Returns -1 on failure. This is
@@ -209,7 +209,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
209209
210210 /* implemented as a macro:
211211
212- int PyObject_DelAttrString(PyObject *o, char *attr_name);
212+ int PyObject_DelAttrString(PyObject *o, const char *attr_name);
213213
214214 Delete attribute named attr_name, for object o. Returns
215215 -1 on failure. This is the equivalent of the Python
@@ -434,7 +434,7 @@ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
434434 statement: o[key]=v.
435435 */
436436
437- PyAPI_FUNC (int ) PyObject_DelItemString (PyObject * o , char * key );
437+ PyAPI_FUNC (int ) PyObject_DelItemString (PyObject * o , const char * key );
438438
439439 /*
440440 Remove the mapping for object, key, from the object *o.
@@ -1156,7 +1156,7 @@ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
11561156
11571157 /* implemented as a macro:
11581158
1159- int PyMapping_DelItemString(PyObject *o, char *key);
1159+ int PyMapping_DelItemString(PyObject *o, const char *key);
11601160
11611161 Remove the mapping for object, key, from the object *o.
11621162 Returns -1 on failure. This is equivalent to
@@ -1174,7 +1174,7 @@ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
11741174 */
11751175#define PyMapping_DelItem (O ,K ) PyObject_DelItem((O),(K))
11761176
1177- PyAPI_FUNC (int ) PyMapping_HasKeyString (PyObject * o , char * key );
1177+ PyAPI_FUNC (int ) PyMapping_HasKeyString (PyObject * o , const char * key );
11781178
11791179 /*
11801180 On success, return 1 if the mapping object has the key, key,
@@ -1218,15 +1218,16 @@ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
12181218
12191219 */
12201220
1221- PyAPI_FUNC (PyObject * ) PyMapping_GetItemString (PyObject * o , char * key );
1221+ PyAPI_FUNC (PyObject * ) PyMapping_GetItemString (PyObject * o ,
1222+ const char * key );
12221223
12231224 /*
12241225 Return element of o corresponding to the object, key, or NULL
12251226 on failure. This is the equivalent of the Python expression:
12261227 o[key].
12271228 */
12281229
1229- PyAPI_FUNC (int ) PyMapping_SetItemString (PyObject * o , char * key ,
1230+ PyAPI_FUNC (int ) PyMapping_SetItemString (PyObject * o , const char * key ,
12301231 PyObject * value );
12311232
12321233 /*
0 commit comments