codekingpro/portable-devtools
114k
1#ifndef Py_INTERNAL_INTRINSIC_H2#define Py_INTERNAL_INTRINSIC_H3 4#ifndef Py_BUILD_CORE5# error "this header requires Py_BUILD_CORE define"6#endif7 8/* Unary Functions: */9#define INTRINSIC_1_INVALID 010#define INTRINSIC_PRINT 111#define INTRINSIC_IMPORT_STAR 212#define INTRINSIC_STOPITERATION_ERROR 313#define INTRINSIC_ASYNC_GEN_WRAP 414#define INTRINSIC_UNARY_POSITIVE 515#define INTRINSIC_LIST_TO_TUPLE 616#define INTRINSIC_TYPEVAR 717#define INTRINSIC_PARAMSPEC 818#define INTRINSIC_TYPEVARTUPLE 919#define INTRINSIC_SUBSCRIPT_GENERIC 1020#define INTRINSIC_TYPEALIAS 1121 22#define MAX_INTRINSIC_1 1123 24 25/* Binary Functions: */26#define INTRINSIC_2_INVALID 027#define INTRINSIC_PREP_RERAISE_STAR 128#define INTRINSIC_TYPEVAR_WITH_BOUND 229#define INTRINSIC_TYPEVAR_WITH_CONSTRAINTS 330#define INTRINSIC_SET_FUNCTION_TYPE_PARAMS 431#define INTRINSIC_SET_TYPEPARAM_DEFAULT 532 33#define MAX_INTRINSIC_2 534 35typedef PyObject *(*intrinsic_func1)(PyThreadState* tstate, PyObject *value);36typedef PyObject *(*intrinsic_func2)(PyThreadState* tstate, PyObject *value1, PyObject *value2);37 38typedef struct {39 intrinsic_func1 func;40 const char *name;41} intrinsic_func1_info;42 43typedef struct {44 intrinsic_func2 func;45 const char *name;46} intrinsic_func2_info;47 48PyAPI_DATA(const intrinsic_func1_info) _PyIntrinsics_UnaryFunctions[];49PyAPI_DATA(const intrinsic_func2_info) _PyIntrinsics_BinaryFunctions[];50 51#endif // !Py_INTERNAL_INTRINSIC_H52 