summaryrefslogtreecommitdiff
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-11 13:21:12 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-12-11 13:21:12 +0000
commit32b4a1ba62abe01684cbd1486274c7a40f81d78c (patch)
tree7c927e3180677f9e3217031507025f9a0f0511f1 /Include/dictobject.h
parentb023381466b5dad8545191bb8ab0c37eb1a24c22 (diff)
downloadcpython-git-32b4a1ba62abe01684cbd1486274c7a40f81d78c.tar.gz
Constify char* API. Fixes #651363. 2.2 candidate.
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index 36053e83ee..d3a0fc5b38 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -116,9 +116,9 @@ PyAPI_FUNC(int) PyDict_MergeFromSeq2(PyObject *d,
PyObject *seq2,
int override);
-PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, char *key);
-PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, char *key, PyObject *item);
-PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, char *key);
+PyAPI_FUNC(PyObject *) PyDict_GetItemString(PyObject *dp, const char *key);
+PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
+PyAPI_FUNC(int) PyDict_DelItemString(PyObject *dp, const char *key);
#ifdef __cplusplus
}