@plone/volto 14.0.0 → 14.1.1
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 +40 -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/public/icon.svg +13 -0
- package/src/actions/vocabularies/vocabularies.js +15 -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/Html/Html.jsx +2 -12
- package/src/helpers/UndoManager/useUndoManager.js +102 -0
- package/src/helpers/index.js +1 -0
- package/src/middleware/Api.test.js +57 -6
- package/src/middleware/api.js +34 -13
- 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,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* System module interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_SYSMODULE_H
|
|
5
|
-
#define Py_SYSMODULE_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
|
|
11
|
-
PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
|
|
12
|
-
|
|
13
|
-
PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
|
|
14
|
-
PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
|
|
15
|
-
PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
|
|
16
|
-
|
|
17
|
-
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
|
|
18
|
-
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
19
|
-
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
|
|
20
|
-
Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
|
21
|
-
PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
|
|
22
|
-
PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
|
|
23
|
-
|
|
24
|
-
PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
|
|
25
|
-
PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
|
|
26
|
-
PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
|
|
27
|
-
PyAPI_FUNC(int) PySys_HasWarnOptions(void);
|
|
28
|
-
|
|
29
|
-
PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
|
|
30
|
-
PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
|
|
31
|
-
|
|
32
|
-
#ifndef Py_LIMITED_API
|
|
33
|
-
# define Py_CPYTHON_SYSMODULE_H
|
|
34
|
-
# include "cpython/sysmodule.h"
|
|
35
|
-
# undef Py_CPYTHON_SYSMODULE_H
|
|
36
|
-
#endif
|
|
37
|
-
|
|
38
|
-
#ifdef __cplusplus
|
|
39
|
-
}
|
|
40
|
-
#endif
|
|
41
|
-
#endif /* !Py_SYSMODULE_H */
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* Auto-generated by Tools/scripts/generate_token.py */
|
|
2
|
-
|
|
3
|
-
/* Token types */
|
|
4
|
-
#ifndef Py_LIMITED_API
|
|
5
|
-
#ifndef Py_TOKEN_H
|
|
6
|
-
#define Py_TOKEN_H
|
|
7
|
-
#ifdef __cplusplus
|
|
8
|
-
extern "C" {
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
#undef TILDE /* Prevent clash of our definition with system macro. Ex AIX, ioctl.h */
|
|
12
|
-
|
|
13
|
-
#define ENDMARKER 0
|
|
14
|
-
#define NAME 1
|
|
15
|
-
#define NUMBER 2
|
|
16
|
-
#define STRING 3
|
|
17
|
-
#define NEWLINE 4
|
|
18
|
-
#define INDENT 5
|
|
19
|
-
#define DEDENT 6
|
|
20
|
-
#define LPAR 7
|
|
21
|
-
#define RPAR 8
|
|
22
|
-
#define LSQB 9
|
|
23
|
-
#define RSQB 10
|
|
24
|
-
#define COLON 11
|
|
25
|
-
#define COMMA 12
|
|
26
|
-
#define SEMI 13
|
|
27
|
-
#define PLUS 14
|
|
28
|
-
#define MINUS 15
|
|
29
|
-
#define STAR 16
|
|
30
|
-
#define SLASH 17
|
|
31
|
-
#define VBAR 18
|
|
32
|
-
#define AMPER 19
|
|
33
|
-
#define LESS 20
|
|
34
|
-
#define GREATER 21
|
|
35
|
-
#define EQUAL 22
|
|
36
|
-
#define DOT 23
|
|
37
|
-
#define PERCENT 24
|
|
38
|
-
#define LBRACE 25
|
|
39
|
-
#define RBRACE 26
|
|
40
|
-
#define EQEQUAL 27
|
|
41
|
-
#define NOTEQUAL 28
|
|
42
|
-
#define LESSEQUAL 29
|
|
43
|
-
#define GREATEREQUAL 30
|
|
44
|
-
#define TILDE 31
|
|
45
|
-
#define CIRCUMFLEX 32
|
|
46
|
-
#define LEFTSHIFT 33
|
|
47
|
-
#define RIGHTSHIFT 34
|
|
48
|
-
#define DOUBLESTAR 35
|
|
49
|
-
#define PLUSEQUAL 36
|
|
50
|
-
#define MINEQUAL 37
|
|
51
|
-
#define STAREQUAL 38
|
|
52
|
-
#define SLASHEQUAL 39
|
|
53
|
-
#define PERCENTEQUAL 40
|
|
54
|
-
#define AMPEREQUAL 41
|
|
55
|
-
#define VBAREQUAL 42
|
|
56
|
-
#define CIRCUMFLEXEQUAL 43
|
|
57
|
-
#define LEFTSHIFTEQUAL 44
|
|
58
|
-
#define RIGHTSHIFTEQUAL 45
|
|
59
|
-
#define DOUBLESTAREQUAL 46
|
|
60
|
-
#define DOUBLESLASH 47
|
|
61
|
-
#define DOUBLESLASHEQUAL 48
|
|
62
|
-
#define AT 49
|
|
63
|
-
#define ATEQUAL 50
|
|
64
|
-
#define RARROW 51
|
|
65
|
-
#define ELLIPSIS 52
|
|
66
|
-
#define COLONEQUAL 53
|
|
67
|
-
#define OP 54
|
|
68
|
-
#define AWAIT 55
|
|
69
|
-
#define ASYNC 56
|
|
70
|
-
#define TYPE_IGNORE 57
|
|
71
|
-
#define TYPE_COMMENT 58
|
|
72
|
-
#define ERRORTOKEN 59
|
|
73
|
-
#define N_TOKENS 63
|
|
74
|
-
#define NT_OFFSET 256
|
|
75
|
-
|
|
76
|
-
/* Special definitions for cooperation with parser */
|
|
77
|
-
|
|
78
|
-
#define ISTERMINAL(x) ((x) < NT_OFFSET)
|
|
79
|
-
#define ISNONTERMINAL(x) ((x) >= NT_OFFSET)
|
|
80
|
-
#define ISEOF(x) ((x) == ENDMARKER)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
PyAPI_DATA(const char * const) _PyParser_TokenNames[]; /* Token names */
|
|
84
|
-
PyAPI_FUNC(int) PyToken_OneChar(int);
|
|
85
|
-
PyAPI_FUNC(int) PyToken_TwoChars(int, int);
|
|
86
|
-
PyAPI_FUNC(int) PyToken_ThreeChars(int, int, int);
|
|
87
|
-
|
|
88
|
-
#ifdef __cplusplus
|
|
89
|
-
}
|
|
90
|
-
#endif
|
|
91
|
-
#endif /* !Py_TOKEN_H */
|
|
92
|
-
#endif /* Py_LIMITED_API */
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#ifndef Py_TRACEBACK_H
|
|
2
|
-
#define Py_TRACEBACK_H
|
|
3
|
-
#ifdef __cplusplus
|
|
4
|
-
extern "C" {
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
struct _frame;
|
|
8
|
-
|
|
9
|
-
/* Traceback interface */
|
|
10
|
-
|
|
11
|
-
PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
|
|
12
|
-
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
|
|
13
|
-
|
|
14
|
-
/* Reveal traceback type so we can typecheck traceback objects */
|
|
15
|
-
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
|
|
16
|
-
#define PyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#ifndef Py_LIMITED_API
|
|
20
|
-
# define Py_CPYTHON_TRACEBACK_H
|
|
21
|
-
# include "cpython/traceback.h"
|
|
22
|
-
# undef Py_CPYTHON_TRACEBACK_H
|
|
23
|
-
#endif
|
|
24
|
-
|
|
25
|
-
#ifdef __cplusplus
|
|
26
|
-
}
|
|
27
|
-
#endif
|
|
28
|
-
#endif /* !Py_TRACEBACK_H */
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
#ifndef Py_TRACEMALLOC_H
|
|
2
|
-
#define Py_TRACEMALLOC_H
|
|
3
|
-
|
|
4
|
-
#ifndef Py_LIMITED_API
|
|
5
|
-
/* Track an allocated memory block in the tracemalloc module.
|
|
6
|
-
Return 0 on success, return -1 on error (failed to allocate memory to store
|
|
7
|
-
the trace).
|
|
8
|
-
|
|
9
|
-
Return -2 if tracemalloc is disabled.
|
|
10
|
-
|
|
11
|
-
If memory block is already tracked, update the existing trace. */
|
|
12
|
-
PyAPI_FUNC(int) PyTraceMalloc_Track(
|
|
13
|
-
unsigned int domain,
|
|
14
|
-
uintptr_t ptr,
|
|
15
|
-
size_t size);
|
|
16
|
-
|
|
17
|
-
/* Untrack an allocated memory block in the tracemalloc module.
|
|
18
|
-
Do nothing if the block was not tracked.
|
|
19
|
-
|
|
20
|
-
Return -2 if tracemalloc is disabled, otherwise return 0. */
|
|
21
|
-
PyAPI_FUNC(int) PyTraceMalloc_Untrack(
|
|
22
|
-
unsigned int domain,
|
|
23
|
-
uintptr_t ptr);
|
|
24
|
-
|
|
25
|
-
/* Get the traceback where a memory block was allocated.
|
|
26
|
-
|
|
27
|
-
Return a tuple of (filename: str, lineno: int) tuples.
|
|
28
|
-
|
|
29
|
-
Return None if the tracemalloc module is disabled or if the memory block
|
|
30
|
-
is not tracked by tracemalloc.
|
|
31
|
-
|
|
32
|
-
Raise an exception and return NULL on error. */
|
|
33
|
-
PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback(
|
|
34
|
-
unsigned int domain,
|
|
35
|
-
uintptr_t ptr);
|
|
36
|
-
#endif
|
|
37
|
-
|
|
38
|
-
#endif /* !Py_TRACEMALLOC_H */
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* Tuple object interface */
|
|
2
|
-
|
|
3
|
-
#ifndef Py_TUPLEOBJECT_H
|
|
4
|
-
#define Py_TUPLEOBJECT_H
|
|
5
|
-
#ifdef __cplusplus
|
|
6
|
-
extern "C" {
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
Another generally useful object type is a tuple of object pointers.
|
|
11
|
-
For Python, this is an immutable type. C code can change the tuple items
|
|
12
|
-
(but not their number), and even use tuples as general-purpose arrays of
|
|
13
|
-
object references, but in general only brand new tuples should be mutated,
|
|
14
|
-
not ones that might already have been exposed to Python code.
|
|
15
|
-
|
|
16
|
-
*** WARNING *** PyTuple_SetItem does not increment the new item's reference
|
|
17
|
-
count, but does decrement the reference count of the item it replaces,
|
|
18
|
-
if not nil. It does *decrement* the reference count if it is *not*
|
|
19
|
-
inserted in the tuple. Similarly, PyTuple_GetItem does not increment the
|
|
20
|
-
returned item's reference count.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
PyAPI_DATA(PyTypeObject) PyTuple_Type;
|
|
24
|
-
PyAPI_DATA(PyTypeObject) PyTupleIter_Type;
|
|
25
|
-
|
|
26
|
-
#define PyTuple_Check(op) \
|
|
27
|
-
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
|
|
28
|
-
#define PyTuple_CheckExact(op) (Py_TYPE(op) == &PyTuple_Type)
|
|
29
|
-
|
|
30
|
-
PyAPI_FUNC(PyObject *) PyTuple_New(Py_ssize_t size);
|
|
31
|
-
PyAPI_FUNC(Py_ssize_t) PyTuple_Size(PyObject *);
|
|
32
|
-
PyAPI_FUNC(PyObject *) PyTuple_GetItem(PyObject *, Py_ssize_t);
|
|
33
|
-
PyAPI_FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
|
|
34
|
-
PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
|
|
35
|
-
PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...);
|
|
36
|
-
|
|
37
|
-
PyAPI_FUNC(int) PyTuple_ClearFreeList(void);
|
|
38
|
-
|
|
39
|
-
#ifndef Py_LIMITED_API
|
|
40
|
-
# define Py_CPYTHON_TUPLEOBJECT_H
|
|
41
|
-
# include "cpython/tupleobject.h"
|
|
42
|
-
# undef Py_CPYTHON_TUPLEOBJECT_H
|
|
43
|
-
#endif
|
|
44
|
-
|
|
45
|
-
#ifdef __cplusplus
|
|
46
|
-
}
|
|
47
|
-
#endif
|
|
48
|
-
#endif /* !Py_TUPLEOBJECT_H */
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* Do not renumber the file; these numbers are part of the stable ABI. */
|
|
2
|
-
/* Disabled, see #10181 */
|
|
3
|
-
#undef Py_bf_getbuffer
|
|
4
|
-
#undef Py_bf_releasebuffer
|
|
5
|
-
#define Py_mp_ass_subscript 3
|
|
6
|
-
#define Py_mp_length 4
|
|
7
|
-
#define Py_mp_subscript 5
|
|
8
|
-
#define Py_nb_absolute 6
|
|
9
|
-
#define Py_nb_add 7
|
|
10
|
-
#define Py_nb_and 8
|
|
11
|
-
#define Py_nb_bool 9
|
|
12
|
-
#define Py_nb_divmod 10
|
|
13
|
-
#define Py_nb_float 11
|
|
14
|
-
#define Py_nb_floor_divide 12
|
|
15
|
-
#define Py_nb_index 13
|
|
16
|
-
#define Py_nb_inplace_add 14
|
|
17
|
-
#define Py_nb_inplace_and 15
|
|
18
|
-
#define Py_nb_inplace_floor_divide 16
|
|
19
|
-
#define Py_nb_inplace_lshift 17
|
|
20
|
-
#define Py_nb_inplace_multiply 18
|
|
21
|
-
#define Py_nb_inplace_or 19
|
|
22
|
-
#define Py_nb_inplace_power 20
|
|
23
|
-
#define Py_nb_inplace_remainder 21
|
|
24
|
-
#define Py_nb_inplace_rshift 22
|
|
25
|
-
#define Py_nb_inplace_subtract 23
|
|
26
|
-
#define Py_nb_inplace_true_divide 24
|
|
27
|
-
#define Py_nb_inplace_xor 25
|
|
28
|
-
#define Py_nb_int 26
|
|
29
|
-
#define Py_nb_invert 27
|
|
30
|
-
#define Py_nb_lshift 28
|
|
31
|
-
#define Py_nb_multiply 29
|
|
32
|
-
#define Py_nb_negative 30
|
|
33
|
-
#define Py_nb_or 31
|
|
34
|
-
#define Py_nb_positive 32
|
|
35
|
-
#define Py_nb_power 33
|
|
36
|
-
#define Py_nb_remainder 34
|
|
37
|
-
#define Py_nb_rshift 35
|
|
38
|
-
#define Py_nb_subtract 36
|
|
39
|
-
#define Py_nb_true_divide 37
|
|
40
|
-
#define Py_nb_xor 38
|
|
41
|
-
#define Py_sq_ass_item 39
|
|
42
|
-
#define Py_sq_concat 40
|
|
43
|
-
#define Py_sq_contains 41
|
|
44
|
-
#define Py_sq_inplace_concat 42
|
|
45
|
-
#define Py_sq_inplace_repeat 43
|
|
46
|
-
#define Py_sq_item 44
|
|
47
|
-
#define Py_sq_length 45
|
|
48
|
-
#define Py_sq_repeat 46
|
|
49
|
-
#define Py_tp_alloc 47
|
|
50
|
-
#define Py_tp_base 48
|
|
51
|
-
#define Py_tp_bases 49
|
|
52
|
-
#define Py_tp_call 50
|
|
53
|
-
#define Py_tp_clear 51
|
|
54
|
-
#define Py_tp_dealloc 52
|
|
55
|
-
#define Py_tp_del 53
|
|
56
|
-
#define Py_tp_descr_get 54
|
|
57
|
-
#define Py_tp_descr_set 55
|
|
58
|
-
#define Py_tp_doc 56
|
|
59
|
-
#define Py_tp_getattr 57
|
|
60
|
-
#define Py_tp_getattro 58
|
|
61
|
-
#define Py_tp_hash 59
|
|
62
|
-
#define Py_tp_init 60
|
|
63
|
-
#define Py_tp_is_gc 61
|
|
64
|
-
#define Py_tp_iter 62
|
|
65
|
-
#define Py_tp_iternext 63
|
|
66
|
-
#define Py_tp_methods 64
|
|
67
|
-
#define Py_tp_new 65
|
|
68
|
-
#define Py_tp_repr 66
|
|
69
|
-
#define Py_tp_richcompare 67
|
|
70
|
-
#define Py_tp_setattr 68
|
|
71
|
-
#define Py_tp_setattro 69
|
|
72
|
-
#define Py_tp_str 70
|
|
73
|
-
#define Py_tp_traverse 71
|
|
74
|
-
#define Py_tp_members 72
|
|
75
|
-
#define Py_tp_getset 73
|
|
76
|
-
#define Py_tp_free 74
|
|
77
|
-
#define Py_nb_matrix_multiply 75
|
|
78
|
-
#define Py_nb_inplace_matrix_multiply 76
|
|
79
|
-
#define Py_am_await 77
|
|
80
|
-
#define Py_am_aiter 78
|
|
81
|
-
#define Py_am_anext 79
|
|
82
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
83
|
-
/* New in 3.5 */
|
|
84
|
-
#define Py_tp_finalize 80
|
|
85
|
-
#endif
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* Unicode name database interface */
|
|
2
|
-
#ifndef Py_LIMITED_API
|
|
3
|
-
#ifndef Py_UCNHASH_H
|
|
4
|
-
#define Py_UCNHASH_H
|
|
5
|
-
#ifdef __cplusplus
|
|
6
|
-
extern "C" {
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
/* revised ucnhash CAPI interface (exported through a "wrapper") */
|
|
10
|
-
|
|
11
|
-
#define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI"
|
|
12
|
-
|
|
13
|
-
typedef struct {
|
|
14
|
-
|
|
15
|
-
/* Size of this struct */
|
|
16
|
-
int size;
|
|
17
|
-
|
|
18
|
-
/* Get name for a given character code. Returns non-zero if
|
|
19
|
-
success, zero if not. Does not set Python exceptions.
|
|
20
|
-
If self is NULL, data come from the default version of the database.
|
|
21
|
-
If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */
|
|
22
|
-
int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen,
|
|
23
|
-
int with_alias_and_seq);
|
|
24
|
-
|
|
25
|
-
/* Get character code for a given name. Same error handling
|
|
26
|
-
as for getname. */
|
|
27
|
-
int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code,
|
|
28
|
-
int with_named_seq);
|
|
29
|
-
|
|
30
|
-
} _PyUnicode_Name_CAPI;
|
|
31
|
-
|
|
32
|
-
#ifdef __cplusplus
|
|
33
|
-
}
|
|
34
|
-
#endif
|
|
35
|
-
#endif /* !Py_UCNHASH_H */
|
|
36
|
-
#endif /* !Py_LIMITED_API */
|