mirror of
https://github.com/python/cpython.git
synced 2026-05-07 02:51:00 +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
|
|
@ -30,26 +30,29 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
/* Method object interface */
|
||||
|
||||
extern DL_IMPORT typeobject Methodtype;
|
||||
extern DL_IMPORT PyTypeObject PyCFunction_Type;
|
||||
|
||||
#define is_methodobject(op) ((op)->ob_type == &Methodtype)
|
||||
#define PyCFunction_Check(op) ((op)->ob_type == &PyCFunction_Type)
|
||||
|
||||
typedef object *(*method) FPROTO((object *, object *));
|
||||
typedef PyObject *(*PyCFunction) Py_FPROTO((PyObject *, PyObject *));
|
||||
|
||||
extern method getmethod PROTO((object *));
|
||||
extern object *getself PROTO((object *));
|
||||
extern int getvarargs PROTO((object *));
|
||||
extern PyCFunction PyCFunction_GetFunction Py_PROTO((PyObject *));
|
||||
extern PyObject *PyCFunction_GetSelf Py_PROTO((PyObject *));
|
||||
extern int PyCFunction_IsVarArgs Py_PROTO((PyObject *));
|
||||
|
||||
struct methodlist {
|
||||
char *ml_name;
|
||||
method ml_meth;
|
||||
int ml_flags;
|
||||
char *ml_doc;
|
||||
struct PyMethodDef {
|
||||
char *ml_name;
|
||||
PyCFunction ml_meth;
|
||||
int ml_flags;
|
||||
char *ml_doc;
|
||||
};
|
||||
typedef struct PyMethodDef PyMethodDef;
|
||||
|
||||
extern object *newmethodobject PROTO((struct methodlist *, object *));
|
||||
extern PyObject *Py_FindMethod
|
||||
Py_PROTO((PyMethodDef[], PyObject *, char *));
|
||||
|
||||
extern object *findmethod PROTO((struct methodlist[], object *, char *));
|
||||
extern PyObject *PyCFunction_New
|
||||
Py_PROTO((PyMethodDef *, PyObject *));
|
||||
|
||||
/* Flag passed to newmethodobject */
|
||||
#define METH_VARARGS 0x0001
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue