Todo: 集成多平台 解决因SaiNiu线程抢占资源问题 本地提交测试环境打包 和 正式打包脚本与正式环境打包bat 提交Python32环境包 改进多日志文件生成情况修改打包日志细节
This commit is contained in:
46
Utils/PythonNew32/include/weakrefobject.h
Normal file
46
Utils/PythonNew32/include/weakrefobject.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Weak references objects for Python. */
|
||||
|
||||
#ifndef Py_WEAKREFOBJECT_H
|
||||
#define Py_WEAKREFOBJECT_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _PyWeakReference PyWeakReference;
|
||||
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_RefType;
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_ProxyType;
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType;
|
||||
|
||||
#define PyWeakref_CheckRef(op) PyObject_TypeCheck((op), &_PyWeakref_RefType)
|
||||
#define PyWeakref_CheckRefExact(op) \
|
||||
Py_IS_TYPE((op), &_PyWeakref_RefType)
|
||||
#define PyWeakref_CheckProxy(op) \
|
||||
(Py_IS_TYPE((op), &_PyWeakref_ProxyType) \
|
||||
|| Py_IS_TYPE((op), &_PyWeakref_CallableProxyType))
|
||||
|
||||
#define PyWeakref_Check(op) \
|
||||
(PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
|
||||
|
||||
|
||||
PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob,
|
||||
PyObject *callback);
|
||||
PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob,
|
||||
PyObject *callback);
|
||||
Py_DEPRECATED(3.13) PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref);
|
||||
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000
|
||||
PyAPI_FUNC(int) PyWeakref_GetRef(PyObject *ref, PyObject **pobj);
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
# define Py_CPYTHON_WEAKREFOBJECT_H
|
||||
# include "cpython/weakrefobject.h"
|
||||
# undef Py_CPYTHON_WEAKREFOBJECT_H
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* !Py_WEAKREFOBJECT_H */
|
||||
Reference in New Issue
Block a user