mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Rename _Py_identifier to _Py_IDENTIFIER.
This commit is contained in:
parent
01277d166a
commit
bd928fef42
57 changed files with 262 additions and 262 deletions
|
@ -2031,7 +2031,7 @@ PyAPI_FUNC(int) _PyUnicode_CheckConsistency(
|
|||
|
||||
do
|
||||
|
||||
_Py_identifier(foo);
|
||||
_Py_IDENTIFIER(foo);
|
||||
...
|
||||
r = _PyObject_CallMethodId(o, &PyId_foo, "args", ...);
|
||||
|
||||
|
@ -2050,7 +2050,7 @@ typedef struct _Py_Identifier {
|
|||
} _Py_Identifier;
|
||||
|
||||
#define _Py_static_string(varname, value) static _Py_Identifier varname = { 0, value, 0 }
|
||||
#define _Py_identifier(varname) _Py_static_string(PyId_##varname, #varname)
|
||||
#define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname)
|
||||
|
||||
/* Return an interned Unicode object for an Identifier; may fail if there is no memory.*/
|
||||
PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue