mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
This commit is contained in:
parent
94390ec2a6
commit
caa6380886
48 changed files with 982 additions and 579 deletions
|
@ -32,19 +32,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "mappingobject.h"
|
||||
|
||||
#define is_dictobject(op) is_mappingobject(op)
|
||||
#define PyDict_Check(op) is_mappingobject(op)
|
||||
|
||||
#define newdictobject newmappingobject
|
||||
#define newdictobject PyDict_New
|
||||
|
||||
extern object *dictlookup PROTO((object *dp, char *key));
|
||||
extern int dictinsert PROTO((object *dp, char *key, object *item));
|
||||
extern int dictremove PROTO((object *dp, char *key));
|
||||
extern PyObject *PyDict_GetItemString Py_PROTO((PyObject *dp, char *key));
|
||||
extern int PyDict_SetItemString Py_PROTO((PyObject *dp, char *key, PyObject *item));
|
||||
extern int PyDict_DelItemString Py_PROTO((PyObject *dp, char *key));
|
||||
|
||||
#define getdictkeys getmappingkeys
|
||||
#define getdictkeys PyDict_Keys
|
||||
|
||||
#define dict2lookup mappinglookup
|
||||
#define dict2insert mappinginsert
|
||||
#define dict2remove mappingremove
|
||||
#define dict2lookup PyDict_GetItem
|
||||
#define dict2insert PyDict_SetItem
|
||||
#define dict2remove PyDict_DelItem
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue