@plone/volto 14.0.2 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/locales/ca/LC_MESSAGES/volto.po +12 -2
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +12 -2
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +12 -2
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +12 -2
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +12 -2
- package/locales/eu.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +12 -2
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +12 -2
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +12 -2
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +12 -2
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +12 -2
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +12 -2
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +12 -2
- package/locales/ro.json +1 -1
- package/locales/volto.pot +12 -2
- package/package.json +2 -1
- package/src/actions/vocabularies/vocabularies.js +14 -3
- package/src/components/index.js +1 -0
- package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Listing/getAsyncData.js +1 -1
- package/src/components/manage/Blocks/Text/Edit.jsx +19 -0
- package/src/components/manage/Form/Form.jsx +11 -1
- package/src/components/manage/Form/UndoToolbar.jsx +78 -0
- package/src/components/manage/Widgets/AlignWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/ArrayWidget.jsx +83 -101
- package/src/components/manage/Widgets/ArrayWidget.stories.jsx +29 -64
- package/src/components/manage/Widgets/CheckboxWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/DatetimeWidget.jsx +65 -74
- package/src/components/manage/Widgets/DatetimeWidget.stories.jsx +7 -23
- package/src/components/manage/Widgets/DatetimeWidget.test.jsx +17 -15
- package/src/components/manage/Widgets/EmailWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/FileWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/NumberWidget.stories.jsx +5 -23
- package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -32
- package/src/components/manage/Widgets/ObjectListWidget.stories.js +44 -44
- package/src/components/manage/Widgets/ObjectWidget.stories.jsx +13 -28
- package/src/components/manage/Widgets/PasswordWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/QueryWidget.jsx +2 -2
- package/src/components/manage/Widgets/QueryWidget.stories.jsx +1637 -22
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +79 -48
- package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +16 -0
- package/src/components/manage/Widgets/SelectAutocompleteWidget.stories.jsx +161 -0
- package/src/components/manage/Widgets/SelectUtils.js +90 -30
- package/src/components/manage/Widgets/SelectUtils.test.jsx +76 -1
- package/src/components/manage/Widgets/SelectWidget.jsx +26 -37
- package/src/components/manage/Widgets/SelectWidget.stories.jsx +96 -28
- package/src/components/manage/Widgets/TextWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TextareaWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TokenWidget.jsx +19 -17
- package/src/components/manage/Widgets/TokenWidget.stories.jsx +141 -0
- package/src/components/manage/Widgets/UrlWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/VocabularyTermsWidget.stories.js +27 -64
- package/src/components/manage/Widgets/WysiwygWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/story.jsx +38 -0
- package/src/components/theme/ContactForm/ContactForm.jsx +1 -0
- package/src/components/theme/ContactForm/ContactForm.stories.jsx +126 -0
- package/src/components/theme/CorsError/CorsError.jsx +2 -2
- package/src/config/Loadables.jsx +2 -0
- package/src/config/index.js +1 -0
- package/src/helpers/UndoManager/useUndoManager.js +102 -0
- package/src/helpers/index.js +1 -0
- package/src/reducers/vocabularies/vocabularies.js +13 -2
- package/src/store.js +1 -1
- package/src/storybook.jsx +55 -0
- package/theme/themes/pastanaga/extras/time-picker-overrides.less +1 -1
- package/include/python3.8/Python-ast.h +0 -715
- package/include/python3.8/Python.h +0 -160
- package/include/python3.8/abstract.h +0 -844
- package/include/python3.8/asdl.h +0 -46
- package/include/python3.8/ast.h +0 -37
- package/include/python3.8/bitset.h +0 -23
- package/include/python3.8/bltinmodule.h +0 -14
- package/include/python3.8/boolobject.h +0 -34
- package/include/python3.8/bytearrayobject.h +0 -62
- package/include/python3.8/bytes_methods.h +0 -69
- package/include/python3.8/bytesobject.h +0 -224
- package/include/python3.8/cellobject.h +0 -29
- package/include/python3.8/ceval.h +0 -231
- package/include/python3.8/classobject.h +0 -59
- package/include/python3.8/code.h +0 -180
- package/include/python3.8/codecs.h +0 -240
- package/include/python3.8/compile.h +0 -106
- package/include/python3.8/complexobject.h +0 -69
- package/include/python3.8/context.h +0 -84
- package/include/python3.8/cpython/abstract.h +0 -319
- package/include/python3.8/cpython/dictobject.h +0 -94
- package/include/python3.8/cpython/fileobject.h +0 -24
- package/include/python3.8/cpython/initconfig.h +0 -434
- package/include/python3.8/cpython/interpreteridobject.h +0 -19
- package/include/python3.8/cpython/object.h +0 -470
- package/include/python3.8/cpython/objimpl.h +0 -113
- package/include/python3.8/cpython/pyerrors.h +0 -188
- package/include/python3.8/cpython/pylifecycle.h +0 -78
- package/include/python3.8/cpython/pymem.h +0 -108
- package/include/python3.8/cpython/pystate.h +0 -252
- package/include/python3.8/cpython/sysmodule.h +0 -21
- package/include/python3.8/cpython/traceback.h +0 -22
- package/include/python3.8/cpython/tupleobject.h +0 -36
- package/include/python3.8/cpython/unicodeobject.h +0 -1239
- package/include/python3.8/datetime.h +0 -259
- package/include/python3.8/descrobject.h +0 -108
- package/include/python3.8/dictobject.h +0 -94
- package/include/python3.8/dtoa.h +0 -19
- package/include/python3.8/dynamic_annotations.h +0 -499
- package/include/python3.8/enumobject.h +0 -17
- package/include/python3.8/errcode.h +0 -38
- package/include/python3.8/eval.h +0 -37
- package/include/python3.8/fileobject.h +0 -49
- package/include/python3.8/fileutils.h +0 -185
- package/include/python3.8/floatobject.h +0 -130
- package/include/python3.8/frameobject.h +0 -92
- package/include/python3.8/funcobject.h +0 -104
- package/include/python3.8/genobject.h +0 -109
- package/include/python3.8/graminit.h +0 -94
- package/include/python3.8/grammar.h +0 -77
- package/include/python3.8/import.h +0 -149
- package/include/python3.8/internal/pycore_accu.h +0 -39
- package/include/python3.8/internal/pycore_atomic.h +0 -558
- package/include/python3.8/internal/pycore_ceval.h +0 -37
- package/include/python3.8/internal/pycore_code.h +0 -27
- package/include/python3.8/internal/pycore_condvar.h +0 -95
- package/include/python3.8/internal/pycore_context.h +0 -42
- package/include/python3.8/internal/pycore_fileutils.h +0 -54
- package/include/python3.8/internal/pycore_getopt.h +0 -22
- package/include/python3.8/internal/pycore_gil.h +0 -50
- package/include/python3.8/internal/pycore_hamt.h +0 -116
- package/include/python3.8/internal/pycore_initconfig.h +0 -166
- package/include/python3.8/internal/pycore_object.h +0 -81
- package/include/python3.8/internal/pycore_pathconfig.h +0 -75
- package/include/python3.8/internal/pycore_pyerrors.h +0 -62
- package/include/python3.8/internal/pycore_pyhash.h +0 -10
- package/include/python3.8/internal/pycore_pylifecycle.h +0 -118
- package/include/python3.8/internal/pycore_pymem.h +0 -212
- package/include/python3.8/internal/pycore_pystate.h +0 -326
- package/include/python3.8/internal/pycore_traceback.h +0 -96
- package/include/python3.8/internal/pycore_tupleobject.h +0 -19
- package/include/python3.8/internal/pycore_warnings.h +0 -25
- package/include/python3.8/interpreteridobject.h +0 -17
- package/include/python3.8/intrcheck.h +0 -33
- package/include/python3.8/iterobject.h +0 -25
- package/include/python3.8/listobject.h +0 -81
- package/include/python3.8/longintrepr.h +0 -99
- package/include/python3.8/longobject.h +0 -242
- package/include/python3.8/marshal.h +0 -28
- package/include/python3.8/memoryobject.h +0 -72
- package/include/python3.8/methodobject.h +0 -131
- package/include/python3.8/modsupport.h +0 -248
- package/include/python3.8/moduleobject.h +0 -90
- package/include/python3.8/namespaceobject.h +0 -19
- package/include/python3.8/node.h +0 -48
- package/include/python3.8/object.h +0 -753
- package/include/python3.8/objimpl.h +0 -284
- package/include/python3.8/odictobject.h +0 -43
- package/include/python3.8/opcode.h +0 -148
- package/include/python3.8/osdefs.h +0 -51
- package/include/python3.8/osmodule.h +0 -17
- package/include/python3.8/parsetok.h +0 -110
- package/include/python3.8/patchlevel.h +0 -35
- package/include/python3.8/picklebufobject.h +0 -31
- package/include/python3.8/py_curses.h +0 -100
- package/include/python3.8/pyarena.h +0 -64
- package/include/python3.8/pycapsule.h +0 -59
- package/include/python3.8/pyconfig.h +0 -1665
- package/include/python3.8/pyctype.h +0 -39
- package/include/python3.8/pydebug.h +0 -40
- package/include/python3.8/pydtrace.h +0 -59
- package/include/python3.8/pydtrace_probes.h +0 -228
- package/include/python3.8/pyerrors.h +0 -335
- package/include/python3.8/pyexpat.h +0 -55
- package/include/python3.8/pyfpe.h +0 -12
- package/include/python3.8/pyhash.h +0 -145
- package/include/python3.8/pylifecycle.h +0 -75
- package/include/python3.8/pymacconfig.h +0 -102
- package/include/python3.8/pymacro.h +0 -106
- package/include/python3.8/pymath.h +0 -230
- package/include/python3.8/pymem.h +0 -150
- package/include/python3.8/pyport.h +0 -850
- package/include/python3.8/pystate.h +0 -136
- package/include/python3.8/pystrcmp.h +0 -23
- package/include/python3.8/pystrhex.h +0 -22
- package/include/python3.8/pystrtod.h +0 -45
- package/include/python3.8/pythonrun.h +0 -210
- package/include/python3.8/pythread.h +0 -161
- package/include/python3.8/pytime.h +0 -246
- package/include/python3.8/rangeobject.h +0 -27
- package/include/python3.8/setobject.h +0 -108
- package/include/python3.8/sliceobject.h +0 -65
- package/include/python3.8/structmember.h +0 -74
- package/include/python3.8/structseq.h +0 -49
- package/include/python3.8/symtable.h +0 -123
- package/include/python3.8/sysmodule.h +0 -41
- package/include/python3.8/token.h +0 -92
- package/include/python3.8/traceback.h +0 -28
- package/include/python3.8/tracemalloc.h +0 -38
- package/include/python3.8/tupleobject.h +0 -48
- package/include/python3.8/typeslots.h +0 -85
- package/include/python3.8/ucnhash.h +0 -36
- package/include/python3.8/unicodeobject.h +0 -1044
- package/include/python3.8/warnings.h +0 -67
- package/include/python3.8/weakrefobject.h +0 -86
- package/src/components/theme/ContactForm/ContactForm.stories.mdx +0 -39
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/* Memory view object. In Python this is available as "memoryview". */
|
|
2
|
-
|
|
3
|
-
#ifndef Py_MEMORYOBJECT_H
|
|
4
|
-
#define Py_MEMORYOBJECT_H
|
|
5
|
-
#ifdef __cplusplus
|
|
6
|
-
extern "C" {
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
#ifndef Py_LIMITED_API
|
|
10
|
-
PyAPI_DATA(PyTypeObject) _PyManagedBuffer_Type;
|
|
11
|
-
#endif
|
|
12
|
-
PyAPI_DATA(PyTypeObject) PyMemoryView_Type;
|
|
13
|
-
|
|
14
|
-
#define PyMemoryView_Check(op) (Py_TYPE(op) == &PyMemoryView_Type)
|
|
15
|
-
|
|
16
|
-
#ifndef Py_LIMITED_API
|
|
17
|
-
/* Get a pointer to the memoryview's private copy of the exporter's buffer. */
|
|
18
|
-
#define PyMemoryView_GET_BUFFER(op) (&((PyMemoryViewObject *)(op))->view)
|
|
19
|
-
/* Get a pointer to the exporting object (this may be NULL!). */
|
|
20
|
-
#define PyMemoryView_GET_BASE(op) (((PyMemoryViewObject *)(op))->view.obj)
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);
|
|
24
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
25
|
-
PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size,
|
|
26
|
-
int flags);
|
|
27
|
-
#endif
|
|
28
|
-
#ifndef Py_LIMITED_API
|
|
29
|
-
PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
|
|
30
|
-
#endif
|
|
31
|
-
PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
|
|
32
|
-
int buffertype,
|
|
33
|
-
char order);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* The structs are declared here so that macros can work, but they shouldn't
|
|
37
|
-
be considered public. Don't access their fields directly, use the macros
|
|
38
|
-
and functions instead! */
|
|
39
|
-
#ifndef Py_LIMITED_API
|
|
40
|
-
#define _Py_MANAGED_BUFFER_RELEASED 0x001 /* access to exporter blocked */
|
|
41
|
-
#define _Py_MANAGED_BUFFER_FREE_FORMAT 0x002 /* free format */
|
|
42
|
-
typedef struct {
|
|
43
|
-
PyObject_HEAD
|
|
44
|
-
int flags; /* state flags */
|
|
45
|
-
Py_ssize_t exports; /* number of direct memoryview exports */
|
|
46
|
-
Py_buffer master; /* snapshot buffer obtained from the original exporter */
|
|
47
|
-
} _PyManagedBufferObject;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/* memoryview state flags */
|
|
51
|
-
#define _Py_MEMORYVIEW_RELEASED 0x001 /* access to master buffer blocked */
|
|
52
|
-
#define _Py_MEMORYVIEW_C 0x002 /* C-contiguous layout */
|
|
53
|
-
#define _Py_MEMORYVIEW_FORTRAN 0x004 /* Fortran contiguous layout */
|
|
54
|
-
#define _Py_MEMORYVIEW_SCALAR 0x008 /* scalar: ndim = 0 */
|
|
55
|
-
#define _Py_MEMORYVIEW_PIL 0x010 /* PIL-style layout */
|
|
56
|
-
|
|
57
|
-
typedef struct {
|
|
58
|
-
PyObject_VAR_HEAD
|
|
59
|
-
_PyManagedBufferObject *mbuf; /* managed buffer */
|
|
60
|
-
Py_hash_t hash; /* hash value for read-only views */
|
|
61
|
-
int flags; /* state flags */
|
|
62
|
-
Py_ssize_t exports; /* number of buffer re-exports */
|
|
63
|
-
Py_buffer view; /* private copy of the exporter's view */
|
|
64
|
-
PyObject *weakreflist;
|
|
65
|
-
Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */
|
|
66
|
-
} PyMemoryViewObject;
|
|
67
|
-
#endif
|
|
68
|
-
|
|
69
|
-
#ifdef __cplusplus
|
|
70
|
-
}
|
|
71
|
-
#endif
|
|
72
|
-
#endif /* !Py_MEMORYOBJECT_H */
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Method object interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_METHODOBJECT_H
|
|
5
|
-
#define Py_METHODOBJECT_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
/* This is about the type 'builtin_function_or_method',
|
|
11
|
-
not Python methods in user-defined classes. See classobject.h
|
|
12
|
-
for the latter. */
|
|
13
|
-
|
|
14
|
-
PyAPI_DATA(PyTypeObject) PyCFunction_Type;
|
|
15
|
-
|
|
16
|
-
#define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)
|
|
17
|
-
|
|
18
|
-
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
|
|
19
|
-
typedef PyObject *(*_PyCFunctionFast) (PyObject *, PyObject *const *, Py_ssize_t);
|
|
20
|
-
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
|
|
21
|
-
PyObject *);
|
|
22
|
-
typedef PyObject *(*_PyCFunctionFastWithKeywords) (PyObject *,
|
|
23
|
-
PyObject *const *, Py_ssize_t,
|
|
24
|
-
PyObject *);
|
|
25
|
-
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
|
|
26
|
-
|
|
27
|
-
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
|
|
28
|
-
PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *);
|
|
29
|
-
PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
|
|
30
|
-
|
|
31
|
-
/* Macros for direct access to these values. Type checks are *not*
|
|
32
|
-
done, so use with care. */
|
|
33
|
-
#ifndef Py_LIMITED_API
|
|
34
|
-
#define PyCFunction_GET_FUNCTION(func) \
|
|
35
|
-
(((PyCFunctionObject *)func) -> m_ml -> ml_meth)
|
|
36
|
-
#define PyCFunction_GET_SELF(func) \
|
|
37
|
-
(((PyCFunctionObject *)func) -> m_ml -> ml_flags & METH_STATIC ? \
|
|
38
|
-
NULL : ((PyCFunctionObject *)func) -> m_self)
|
|
39
|
-
#define PyCFunction_GET_FLAGS(func) \
|
|
40
|
-
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
|
|
41
|
-
#endif
|
|
42
|
-
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
|
|
43
|
-
|
|
44
|
-
#ifndef Py_LIMITED_API
|
|
45
|
-
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
|
|
46
|
-
PyObject *const *args,
|
|
47
|
-
Py_ssize_t nargs,
|
|
48
|
-
PyObject *kwargs);
|
|
49
|
-
#endif
|
|
50
|
-
|
|
51
|
-
struct PyMethodDef {
|
|
52
|
-
const char *ml_name; /* The name of the built-in function/method */
|
|
53
|
-
PyCFunction ml_meth; /* The C function that implements it */
|
|
54
|
-
int ml_flags; /* Combination of METH_xxx flags, which mostly
|
|
55
|
-
describe the args expected by the C func */
|
|
56
|
-
const char *ml_doc; /* The __doc__ attribute, or NULL */
|
|
57
|
-
};
|
|
58
|
-
typedef struct PyMethodDef PyMethodDef;
|
|
59
|
-
|
|
60
|
-
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
|
|
61
|
-
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
|
|
62
|
-
PyObject *);
|
|
63
|
-
|
|
64
|
-
/* Flag passed to newmethodobject */
|
|
65
|
-
/* #define METH_OLDARGS 0x0000 -- unsupported now */
|
|
66
|
-
#define METH_VARARGS 0x0001
|
|
67
|
-
#define METH_KEYWORDS 0x0002
|
|
68
|
-
/* METH_NOARGS and METH_O must not be combined with the flags above. */
|
|
69
|
-
#define METH_NOARGS 0x0004
|
|
70
|
-
#define METH_O 0x0008
|
|
71
|
-
|
|
72
|
-
/* METH_CLASS and METH_STATIC are a little different; these control
|
|
73
|
-
the construction of methods for a class. These cannot be used for
|
|
74
|
-
functions in modules. */
|
|
75
|
-
#define METH_CLASS 0x0010
|
|
76
|
-
#define METH_STATIC 0x0020
|
|
77
|
-
|
|
78
|
-
/* METH_COEXIST allows a method to be entered even though a slot has
|
|
79
|
-
already filled the entry. When defined, the flag allows a separate
|
|
80
|
-
method, "__contains__" for example, to coexist with a defined
|
|
81
|
-
slot like sq_contains. */
|
|
82
|
-
|
|
83
|
-
#define METH_COEXIST 0x0040
|
|
84
|
-
|
|
85
|
-
#ifndef Py_LIMITED_API
|
|
86
|
-
#define METH_FASTCALL 0x0080
|
|
87
|
-
#endif
|
|
88
|
-
|
|
89
|
-
/* This bit is preserved for Stackless Python */
|
|
90
|
-
#ifdef STACKLESS
|
|
91
|
-
#define METH_STACKLESS 0x0100
|
|
92
|
-
#else
|
|
93
|
-
#define METH_STACKLESS 0x0000
|
|
94
|
-
#endif
|
|
95
|
-
|
|
96
|
-
#ifndef Py_LIMITED_API
|
|
97
|
-
typedef struct {
|
|
98
|
-
PyObject_HEAD
|
|
99
|
-
PyMethodDef *m_ml; /* Description of the C function to call */
|
|
100
|
-
PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
|
|
101
|
-
PyObject *m_module; /* The __module__ attribute, can be anything */
|
|
102
|
-
PyObject *m_weakreflist; /* List of weak references */
|
|
103
|
-
vectorcallfunc vectorcall;
|
|
104
|
-
} PyCFunctionObject;
|
|
105
|
-
|
|
106
|
-
PyAPI_FUNC(PyObject *) _PyMethodDef_RawFastCallDict(
|
|
107
|
-
PyMethodDef *method,
|
|
108
|
-
PyObject *self,
|
|
109
|
-
PyObject *const *args,
|
|
110
|
-
Py_ssize_t nargs,
|
|
111
|
-
PyObject *kwargs);
|
|
112
|
-
|
|
113
|
-
PyAPI_FUNC(PyObject *) _PyMethodDef_RawFastCallKeywords(
|
|
114
|
-
PyMethodDef *method,
|
|
115
|
-
PyObject *self,
|
|
116
|
-
PyObject *const *args,
|
|
117
|
-
Py_ssize_t nargs,
|
|
118
|
-
PyObject *kwnames);
|
|
119
|
-
#endif
|
|
120
|
-
|
|
121
|
-
PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);
|
|
122
|
-
|
|
123
|
-
#ifndef Py_LIMITED_API
|
|
124
|
-
PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out);
|
|
125
|
-
PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out);
|
|
126
|
-
#endif
|
|
127
|
-
|
|
128
|
-
#ifdef __cplusplus
|
|
129
|
-
}
|
|
130
|
-
#endif
|
|
131
|
-
#endif /* !Py_METHODOBJECT_H */
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#ifndef Py_MODSUPPORT_H
|
|
3
|
-
#define Py_MODSUPPORT_H
|
|
4
|
-
#ifdef __cplusplus
|
|
5
|
-
extern "C" {
|
|
6
|
-
#endif
|
|
7
|
-
|
|
8
|
-
/* Module support interface */
|
|
9
|
-
|
|
10
|
-
#include <stdarg.h>
|
|
11
|
-
|
|
12
|
-
/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
|
|
13
|
-
to mean Py_ssize_t */
|
|
14
|
-
#ifdef PY_SSIZE_T_CLEAN
|
|
15
|
-
#define PyArg_Parse _PyArg_Parse_SizeT
|
|
16
|
-
#define PyArg_ParseTuple _PyArg_ParseTuple_SizeT
|
|
17
|
-
#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT
|
|
18
|
-
#define PyArg_VaParse _PyArg_VaParse_SizeT
|
|
19
|
-
#define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT
|
|
20
|
-
#define Py_BuildValue _Py_BuildValue_SizeT
|
|
21
|
-
#define Py_VaBuildValue _Py_VaBuildValue_SizeT
|
|
22
|
-
#ifndef Py_LIMITED_API
|
|
23
|
-
#define _Py_VaBuildStack _Py_VaBuildStack_SizeT
|
|
24
|
-
#endif
|
|
25
|
-
#else
|
|
26
|
-
#ifndef Py_LIMITED_API
|
|
27
|
-
PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
|
|
28
|
-
PyAPI_FUNC(PyObject **) _Py_VaBuildStack_SizeT(
|
|
29
|
-
PyObject **small_stack,
|
|
30
|
-
Py_ssize_t small_stack_len,
|
|
31
|
-
const char *format,
|
|
32
|
-
va_list va,
|
|
33
|
-
Py_ssize_t *p_nargs);
|
|
34
|
-
#endif /* !Py_LIMITED_API */
|
|
35
|
-
#endif
|
|
36
|
-
|
|
37
|
-
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
|
|
38
|
-
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
39
|
-
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
|
|
40
|
-
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
|
|
41
|
-
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
|
|
42
|
-
const char *, char **, ...);
|
|
43
|
-
PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list);
|
|
44
|
-
PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
|
|
45
|
-
const char *, char **, va_list);
|
|
46
|
-
#endif
|
|
47
|
-
PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);
|
|
48
|
-
PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
|
|
49
|
-
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
|
|
50
|
-
PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
#ifndef Py_LIMITED_API
|
|
54
|
-
PyAPI_FUNC(int) _PyArg_UnpackStack(
|
|
55
|
-
PyObject *const *args,
|
|
56
|
-
Py_ssize_t nargs,
|
|
57
|
-
const char *name,
|
|
58
|
-
Py_ssize_t min,
|
|
59
|
-
Py_ssize_t max,
|
|
60
|
-
...);
|
|
61
|
-
|
|
62
|
-
PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kwargs);
|
|
63
|
-
PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args);
|
|
64
|
-
#define _PyArg_NoKeywords(funcname, kwargs) \
|
|
65
|
-
((kwargs) == NULL || _PyArg_NoKeywords((funcname), (kwargs)))
|
|
66
|
-
#define _PyArg_NoPositional(funcname, args) \
|
|
67
|
-
((args) == NULL || _PyArg_NoPositional((funcname), (args)))
|
|
68
|
-
|
|
69
|
-
PyAPI_FUNC(void) _PyArg_BadArgument(const char *, const char *, const char *, PyObject *);
|
|
70
|
-
PyAPI_FUNC(int) _PyArg_CheckPositional(const char *, Py_ssize_t,
|
|
71
|
-
Py_ssize_t, Py_ssize_t);
|
|
72
|
-
#define _PyArg_CheckPositional(funcname, nargs, min, max) \
|
|
73
|
-
(((min) <= (nargs) && (nargs) <= (max)) \
|
|
74
|
-
|| _PyArg_CheckPositional((funcname), (nargs), (min), (max)))
|
|
75
|
-
|
|
76
|
-
#endif
|
|
77
|
-
|
|
78
|
-
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
|
|
79
|
-
#ifndef Py_LIMITED_API
|
|
80
|
-
PyAPI_FUNC(PyObject **) _Py_VaBuildStack(
|
|
81
|
-
PyObject **small_stack,
|
|
82
|
-
Py_ssize_t small_stack_len,
|
|
83
|
-
const char *format,
|
|
84
|
-
va_list va,
|
|
85
|
-
Py_ssize_t *p_nargs);
|
|
86
|
-
#endif
|
|
87
|
-
|
|
88
|
-
#ifndef Py_LIMITED_API
|
|
89
|
-
typedef struct _PyArg_Parser {
|
|
90
|
-
const char *format;
|
|
91
|
-
const char * const *keywords;
|
|
92
|
-
const char *fname;
|
|
93
|
-
const char *custom_msg;
|
|
94
|
-
int pos; /* number of positional-only arguments */
|
|
95
|
-
int min; /* minimal number of arguments */
|
|
96
|
-
int max; /* maximal number of positional arguments */
|
|
97
|
-
PyObject *kwtuple; /* tuple of keyword parameter names */
|
|
98
|
-
struct _PyArg_Parser *next;
|
|
99
|
-
} _PyArg_Parser;
|
|
100
|
-
#ifdef PY_SSIZE_T_CLEAN
|
|
101
|
-
#define _PyArg_ParseTupleAndKeywordsFast _PyArg_ParseTupleAndKeywordsFast_SizeT
|
|
102
|
-
#define _PyArg_ParseStack _PyArg_ParseStack_SizeT
|
|
103
|
-
#define _PyArg_ParseStackAndKeywords _PyArg_ParseStackAndKeywords_SizeT
|
|
104
|
-
#define _PyArg_VaParseTupleAndKeywordsFast _PyArg_VaParseTupleAndKeywordsFast_SizeT
|
|
105
|
-
#endif
|
|
106
|
-
PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
|
|
107
|
-
struct _PyArg_Parser *, ...);
|
|
108
|
-
PyAPI_FUNC(int) _PyArg_ParseStack(
|
|
109
|
-
PyObject *const *args,
|
|
110
|
-
Py_ssize_t nargs,
|
|
111
|
-
const char *format,
|
|
112
|
-
...);
|
|
113
|
-
PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords(
|
|
114
|
-
PyObject *const *args,
|
|
115
|
-
Py_ssize_t nargs,
|
|
116
|
-
PyObject *kwnames,
|
|
117
|
-
struct _PyArg_Parser *,
|
|
118
|
-
...);
|
|
119
|
-
PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *,
|
|
120
|
-
struct _PyArg_Parser *, va_list);
|
|
121
|
-
PyAPI_FUNC(PyObject * const *) _PyArg_UnpackKeywords(
|
|
122
|
-
PyObject *const *args, Py_ssize_t nargs,
|
|
123
|
-
PyObject *kwargs, PyObject *kwnames,
|
|
124
|
-
struct _PyArg_Parser *parser,
|
|
125
|
-
int minpos, int maxpos, int minkw,
|
|
126
|
-
PyObject **buf);
|
|
127
|
-
#define _PyArg_UnpackKeywords(args, nargs, kwargs, kwnames, parser, minpos, maxpos, minkw, buf) \
|
|
128
|
-
(((minkw) == 0 && (kwargs) == NULL && (kwnames) == NULL && \
|
|
129
|
-
(minpos) <= (nargs) && (nargs) <= (maxpos) && args != NULL) ? (args) : \
|
|
130
|
-
_PyArg_UnpackKeywords((args), (nargs), (kwargs), (kwnames), (parser), \
|
|
131
|
-
(minpos), (maxpos), (minkw), (buf)))
|
|
132
|
-
|
|
133
|
-
void _PyArg_Fini(void);
|
|
134
|
-
#endif /* Py_LIMITED_API */
|
|
135
|
-
|
|
136
|
-
PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *);
|
|
137
|
-
PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
|
|
138
|
-
PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *);
|
|
139
|
-
#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
|
|
140
|
-
#define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)
|
|
141
|
-
|
|
142
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
143
|
-
/* New in 3.5 */
|
|
144
|
-
PyAPI_FUNC(int) PyModule_SetDocString(PyObject *, const char *);
|
|
145
|
-
PyAPI_FUNC(int) PyModule_AddFunctions(PyObject *, PyMethodDef *);
|
|
146
|
-
PyAPI_FUNC(int) PyModule_ExecDef(PyObject *module, PyModuleDef *def);
|
|
147
|
-
#endif
|
|
148
|
-
|
|
149
|
-
#define Py_CLEANUP_SUPPORTED 0x20000
|
|
150
|
-
|
|
151
|
-
#define PYTHON_API_VERSION 1013
|
|
152
|
-
#define PYTHON_API_STRING "1013"
|
|
153
|
-
/* The API version is maintained (independently from the Python version)
|
|
154
|
-
so we can detect mismatches between the interpreter and dynamically
|
|
155
|
-
loaded modules. These are diagnosed by an error message but
|
|
156
|
-
the module is still loaded (because the mismatch can only be tested
|
|
157
|
-
after loading the module). The error message is intended to
|
|
158
|
-
explain the core dump a few seconds later.
|
|
159
|
-
|
|
160
|
-
The symbol PYTHON_API_STRING defines the same value as a string
|
|
161
|
-
literal. *** PLEASE MAKE SURE THE DEFINITIONS MATCH. ***
|
|
162
|
-
|
|
163
|
-
Please add a line or two to the top of this log for each API
|
|
164
|
-
version change:
|
|
165
|
-
|
|
166
|
-
22-Feb-2006 MvL 1013 PEP 353 - long indices for sequence lengths
|
|
167
|
-
|
|
168
|
-
19-Aug-2002 GvR 1012 Changes to string object struct for
|
|
169
|
-
interning changes, saving 3 bytes.
|
|
170
|
-
|
|
171
|
-
17-Jul-2001 GvR 1011 Descr-branch, just to be on the safe side
|
|
172
|
-
|
|
173
|
-
25-Jan-2001 FLD 1010 Parameters added to PyCode_New() and
|
|
174
|
-
PyFrame_New(); Python 2.1a2
|
|
175
|
-
|
|
176
|
-
14-Mar-2000 GvR 1009 Unicode API added
|
|
177
|
-
|
|
178
|
-
3-Jan-1999 GvR 1007 Decided to change back! (Don't reuse 1008!)
|
|
179
|
-
|
|
180
|
-
3-Dec-1998 GvR 1008 Python 1.5.2b1
|
|
181
|
-
|
|
182
|
-
18-Jan-1997 GvR 1007 string interning and other speedups
|
|
183
|
-
|
|
184
|
-
11-Oct-1996 GvR renamed Py_Ellipses to Py_Ellipsis :-(
|
|
185
|
-
|
|
186
|
-
30-Jul-1996 GvR Slice and ellipses syntax added
|
|
187
|
-
|
|
188
|
-
23-Jul-1996 GvR For 1.4 -- better safe than sorry this time :-)
|
|
189
|
-
|
|
190
|
-
7-Nov-1995 GvR Keyword arguments (should've been done at 1.3 :-( )
|
|
191
|
-
|
|
192
|
-
10-Jan-1995 GvR Renamed globals to new naming scheme
|
|
193
|
-
|
|
194
|
-
9-Jan-1995 GvR Initial version (incompatible with older API)
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
/* The PYTHON_ABI_VERSION is introduced in PEP 384. For the lifetime of
|
|
198
|
-
Python 3, it will stay at the value of 3; changes to the limited API
|
|
199
|
-
must be performed in a strictly backwards-compatible manner. */
|
|
200
|
-
#define PYTHON_ABI_VERSION 3
|
|
201
|
-
#define PYTHON_ABI_STRING "3"
|
|
202
|
-
|
|
203
|
-
#ifdef Py_TRACE_REFS
|
|
204
|
-
/* When we are tracing reference counts, rename module creation functions so
|
|
205
|
-
modules compiled with incompatible settings will generate a
|
|
206
|
-
link-time error. */
|
|
207
|
-
#define PyModule_Create2 PyModule_Create2TraceRefs
|
|
208
|
-
#define PyModule_FromDefAndSpec2 PyModule_FromDefAndSpec2TraceRefs
|
|
209
|
-
#endif
|
|
210
|
-
|
|
211
|
-
PyAPI_FUNC(PyObject *) PyModule_Create2(struct PyModuleDef*,
|
|
212
|
-
int apiver);
|
|
213
|
-
#ifndef Py_LIMITED_API
|
|
214
|
-
PyAPI_FUNC(PyObject *) _PyModule_CreateInitialized(struct PyModuleDef*,
|
|
215
|
-
int apiver);
|
|
216
|
-
#endif
|
|
217
|
-
|
|
218
|
-
#ifdef Py_LIMITED_API
|
|
219
|
-
#define PyModule_Create(module) \
|
|
220
|
-
PyModule_Create2(module, PYTHON_ABI_VERSION)
|
|
221
|
-
#else
|
|
222
|
-
#define PyModule_Create(module) \
|
|
223
|
-
PyModule_Create2(module, PYTHON_API_VERSION)
|
|
224
|
-
#endif
|
|
225
|
-
|
|
226
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
227
|
-
/* New in 3.5 */
|
|
228
|
-
PyAPI_FUNC(PyObject *) PyModule_FromDefAndSpec2(PyModuleDef *def,
|
|
229
|
-
PyObject *spec,
|
|
230
|
-
int module_api_version);
|
|
231
|
-
|
|
232
|
-
#ifdef Py_LIMITED_API
|
|
233
|
-
#define PyModule_FromDefAndSpec(module, spec) \
|
|
234
|
-
PyModule_FromDefAndSpec2(module, spec, PYTHON_ABI_VERSION)
|
|
235
|
-
#else
|
|
236
|
-
#define PyModule_FromDefAndSpec(module, spec) \
|
|
237
|
-
PyModule_FromDefAndSpec2(module, spec, PYTHON_API_VERSION)
|
|
238
|
-
#endif /* Py_LIMITED_API */
|
|
239
|
-
#endif /* New in 3.5 */
|
|
240
|
-
|
|
241
|
-
#ifndef Py_LIMITED_API
|
|
242
|
-
PyAPI_DATA(const char *) _Py_PackageContext;
|
|
243
|
-
#endif
|
|
244
|
-
|
|
245
|
-
#ifdef __cplusplus
|
|
246
|
-
}
|
|
247
|
-
#endif
|
|
248
|
-
#endif /* !Py_MODSUPPORT_H */
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Module object interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_MODULEOBJECT_H
|
|
5
|
-
#define Py_MODULEOBJECT_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
PyAPI_DATA(PyTypeObject) PyModule_Type;
|
|
11
|
-
|
|
12
|
-
#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
|
|
13
|
-
#define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type)
|
|
14
|
-
|
|
15
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
16
|
-
PyAPI_FUNC(PyObject *) PyModule_NewObject(
|
|
17
|
-
PyObject *name
|
|
18
|
-
);
|
|
19
|
-
#endif
|
|
20
|
-
PyAPI_FUNC(PyObject *) PyModule_New(
|
|
21
|
-
const char *name /* UTF-8 encoded string */
|
|
22
|
-
);
|
|
23
|
-
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
|
|
24
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
25
|
-
PyAPI_FUNC(PyObject *) PyModule_GetNameObject(PyObject *);
|
|
26
|
-
#endif
|
|
27
|
-
PyAPI_FUNC(const char *) PyModule_GetName(PyObject *);
|
|
28
|
-
Py_DEPRECATED(3.2) PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);
|
|
29
|
-
PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *);
|
|
30
|
-
#ifndef Py_LIMITED_API
|
|
31
|
-
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
|
|
32
|
-
PyAPI_FUNC(void) _PyModule_ClearDict(PyObject *);
|
|
33
|
-
PyAPI_FUNC(int) _PyModuleSpec_IsInitializing(PyObject *);
|
|
34
|
-
#endif
|
|
35
|
-
PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);
|
|
36
|
-
PyAPI_FUNC(void*) PyModule_GetState(PyObject*);
|
|
37
|
-
|
|
38
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
39
|
-
/* New in 3.5 */
|
|
40
|
-
PyAPI_FUNC(PyObject *) PyModuleDef_Init(struct PyModuleDef*);
|
|
41
|
-
PyAPI_DATA(PyTypeObject) PyModuleDef_Type;
|
|
42
|
-
#endif
|
|
43
|
-
|
|
44
|
-
typedef struct PyModuleDef_Base {
|
|
45
|
-
PyObject_HEAD
|
|
46
|
-
PyObject* (*m_init)(void);
|
|
47
|
-
Py_ssize_t m_index;
|
|
48
|
-
PyObject* m_copy;
|
|
49
|
-
} PyModuleDef_Base;
|
|
50
|
-
|
|
51
|
-
#define PyModuleDef_HEAD_INIT { \
|
|
52
|
-
PyObject_HEAD_INIT(NULL) \
|
|
53
|
-
NULL, /* m_init */ \
|
|
54
|
-
0, /* m_index */ \
|
|
55
|
-
NULL, /* m_copy */ \
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
struct PyModuleDef_Slot;
|
|
59
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
60
|
-
/* New in 3.5 */
|
|
61
|
-
typedef struct PyModuleDef_Slot{
|
|
62
|
-
int slot;
|
|
63
|
-
void *value;
|
|
64
|
-
} PyModuleDef_Slot;
|
|
65
|
-
|
|
66
|
-
#define Py_mod_create 1
|
|
67
|
-
#define Py_mod_exec 2
|
|
68
|
-
|
|
69
|
-
#ifndef Py_LIMITED_API
|
|
70
|
-
#define _Py_mod_LAST_SLOT 2
|
|
71
|
-
#endif
|
|
72
|
-
|
|
73
|
-
#endif /* New in 3.5 */
|
|
74
|
-
|
|
75
|
-
typedef struct PyModuleDef{
|
|
76
|
-
PyModuleDef_Base m_base;
|
|
77
|
-
const char* m_name;
|
|
78
|
-
const char* m_doc;
|
|
79
|
-
Py_ssize_t m_size;
|
|
80
|
-
PyMethodDef *m_methods;
|
|
81
|
-
struct PyModuleDef_Slot* m_slots;
|
|
82
|
-
traverseproc m_traverse;
|
|
83
|
-
inquiry m_clear;
|
|
84
|
-
freefunc m_free;
|
|
85
|
-
} PyModuleDef;
|
|
86
|
-
|
|
87
|
-
#ifdef __cplusplus
|
|
88
|
-
}
|
|
89
|
-
#endif
|
|
90
|
-
#endif /* !Py_MODULEOBJECT_H */
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* simple namespace object interface */
|
|
3
|
-
|
|
4
|
-
#ifndef NAMESPACEOBJECT_H
|
|
5
|
-
#define NAMESPACEOBJECT_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
#ifndef Py_LIMITED_API
|
|
11
|
-
PyAPI_DATA(PyTypeObject) _PyNamespace_Type;
|
|
12
|
-
|
|
13
|
-
PyAPI_FUNC(PyObject *) _PyNamespace_New(PyObject *kwds);
|
|
14
|
-
#endif /* !Py_LIMITED_API */
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
}
|
|
18
|
-
#endif
|
|
19
|
-
#endif /* !NAMESPACEOBJECT_H */
|
package/include/python3.8/node.h
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Parse tree node interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_NODE_H
|
|
5
|
-
#define Py_NODE_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
typedef struct _node {
|
|
11
|
-
short n_type;
|
|
12
|
-
char *n_str;
|
|
13
|
-
int n_lineno;
|
|
14
|
-
int n_col_offset;
|
|
15
|
-
int n_nchildren;
|
|
16
|
-
struct _node *n_child;
|
|
17
|
-
int n_end_lineno;
|
|
18
|
-
int n_end_col_offset;
|
|
19
|
-
} node;
|
|
20
|
-
|
|
21
|
-
PyAPI_FUNC(node *) PyNode_New(int type);
|
|
22
|
-
PyAPI_FUNC(int) PyNode_AddChild(node *n, int type,
|
|
23
|
-
char *str, int lineno, int col_offset,
|
|
24
|
-
int end_lineno, int end_col_offset);
|
|
25
|
-
PyAPI_FUNC(void) PyNode_Free(node *n);
|
|
26
|
-
#ifndef Py_LIMITED_API
|
|
27
|
-
PyAPI_FUNC(Py_ssize_t) _PyNode_SizeOf(node *n);
|
|
28
|
-
#endif
|
|
29
|
-
|
|
30
|
-
/* Node access functions */
|
|
31
|
-
#define NCH(n) ((n)->n_nchildren)
|
|
32
|
-
|
|
33
|
-
#define CHILD(n, i) (&(n)->n_child[i])
|
|
34
|
-
#define RCHILD(n, i) (CHILD(n, NCH(n) + i))
|
|
35
|
-
#define TYPE(n) ((n)->n_type)
|
|
36
|
-
#define STR(n) ((n)->n_str)
|
|
37
|
-
#define LINENO(n) ((n)->n_lineno)
|
|
38
|
-
|
|
39
|
-
/* Assert that the type of a node is what we expect */
|
|
40
|
-
#define REQ(n, type) assert(TYPE(n) == (type))
|
|
41
|
-
|
|
42
|
-
PyAPI_FUNC(void) PyNode_ListTree(node *);
|
|
43
|
-
void _PyNode_FinalizeEndPos(node *n); // helper also used in parsetok.c
|
|
44
|
-
|
|
45
|
-
#ifdef __cplusplus
|
|
46
|
-
}
|
|
47
|
-
#endif
|
|
48
|
-
#endif /* !Py_NODE_H */
|