@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,240 +0,0 @@
|
|
|
1
|
-
#ifndef Py_CODECREGISTRY_H
|
|
2
|
-
#define Py_CODECREGISTRY_H
|
|
3
|
-
#ifdef __cplusplus
|
|
4
|
-
extern "C" {
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
/* ------------------------------------------------------------------------
|
|
8
|
-
|
|
9
|
-
Python Codec Registry and support functions
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Written by Marc-Andre Lemburg (mal@lemburg.com).
|
|
13
|
-
|
|
14
|
-
Copyright (c) Corporation for National Research Initiatives.
|
|
15
|
-
|
|
16
|
-
------------------------------------------------------------------------ */
|
|
17
|
-
|
|
18
|
-
/* Register a new codec search function.
|
|
19
|
-
|
|
20
|
-
As side effect, this tries to load the encodings package, if not
|
|
21
|
-
yet done, to make sure that it is always first in the list of
|
|
22
|
-
search functions.
|
|
23
|
-
|
|
24
|
-
The search_function's refcount is incremented by this function. */
|
|
25
|
-
|
|
26
|
-
PyAPI_FUNC(int) PyCodec_Register(
|
|
27
|
-
PyObject *search_function
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
/* Codec registry lookup API.
|
|
31
|
-
|
|
32
|
-
Looks up the given encoding and returns a CodecInfo object with
|
|
33
|
-
function attributes which implement the different aspects of
|
|
34
|
-
processing the encoding.
|
|
35
|
-
|
|
36
|
-
The encoding string is looked up converted to all lower-case
|
|
37
|
-
characters. This makes encodings looked up through this mechanism
|
|
38
|
-
effectively case-insensitive.
|
|
39
|
-
|
|
40
|
-
If no codec is found, a KeyError is set and NULL returned.
|
|
41
|
-
|
|
42
|
-
As side effect, this tries to load the encodings package, if not
|
|
43
|
-
yet done. This is part of the lazy load strategy for the encodings
|
|
44
|
-
package.
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
#ifndef Py_LIMITED_API
|
|
49
|
-
PyAPI_FUNC(PyObject *) _PyCodec_Lookup(
|
|
50
|
-
const char *encoding
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
PyAPI_FUNC(int) _PyCodec_Forget(
|
|
54
|
-
const char *encoding
|
|
55
|
-
);
|
|
56
|
-
#endif
|
|
57
|
-
|
|
58
|
-
/* Codec registry encoding check API.
|
|
59
|
-
|
|
60
|
-
Returns 1/0 depending on whether there is a registered codec for
|
|
61
|
-
the given encoding.
|
|
62
|
-
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
PyAPI_FUNC(int) PyCodec_KnownEncoding(
|
|
66
|
-
const char *encoding
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
/* Generic codec based encoding API.
|
|
70
|
-
|
|
71
|
-
object is passed through the encoder function found for the given
|
|
72
|
-
encoding using the error handling method defined by errors. errors
|
|
73
|
-
may be NULL to use the default method defined for the codec.
|
|
74
|
-
|
|
75
|
-
Raises a LookupError in case no encoder can be found.
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
PyAPI_FUNC(PyObject *) PyCodec_Encode(
|
|
80
|
-
PyObject *object,
|
|
81
|
-
const char *encoding,
|
|
82
|
-
const char *errors
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
/* Generic codec based decoding API.
|
|
86
|
-
|
|
87
|
-
object is passed through the decoder function found for the given
|
|
88
|
-
encoding using the error handling method defined by errors. errors
|
|
89
|
-
may be NULL to use the default method defined for the codec.
|
|
90
|
-
|
|
91
|
-
Raises a LookupError in case no encoder can be found.
|
|
92
|
-
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
PyAPI_FUNC(PyObject *) PyCodec_Decode(
|
|
96
|
-
PyObject *object,
|
|
97
|
-
const char *encoding,
|
|
98
|
-
const char *errors
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
#ifndef Py_LIMITED_API
|
|
102
|
-
/* Text codec specific encoding and decoding API.
|
|
103
|
-
|
|
104
|
-
Checks the encoding against a list of codecs which do not
|
|
105
|
-
implement a str<->bytes encoding before attempting the
|
|
106
|
-
operation.
|
|
107
|
-
|
|
108
|
-
Please note that these APIs are internal and should not
|
|
109
|
-
be used in Python C extensions.
|
|
110
|
-
|
|
111
|
-
XXX (ncoghlan): should we make these, or something like them, public
|
|
112
|
-
in Python 3.5+?
|
|
113
|
-
|
|
114
|
-
*/
|
|
115
|
-
PyAPI_FUNC(PyObject *) _PyCodec_LookupTextEncoding(
|
|
116
|
-
const char *encoding,
|
|
117
|
-
const char *alternate_command
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
PyAPI_FUNC(PyObject *) _PyCodec_EncodeText(
|
|
121
|
-
PyObject *object,
|
|
122
|
-
const char *encoding,
|
|
123
|
-
const char *errors
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
PyAPI_FUNC(PyObject *) _PyCodec_DecodeText(
|
|
127
|
-
PyObject *object,
|
|
128
|
-
const char *encoding,
|
|
129
|
-
const char *errors
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
/* These two aren't actually text encoding specific, but _io.TextIOWrapper
|
|
133
|
-
* is the only current API consumer.
|
|
134
|
-
*/
|
|
135
|
-
PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalDecoder(
|
|
136
|
-
PyObject *codec_info,
|
|
137
|
-
const char *errors
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalEncoder(
|
|
141
|
-
PyObject *codec_info,
|
|
142
|
-
const char *errors
|
|
143
|
-
);
|
|
144
|
-
#endif
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
/* --- Codec Lookup APIs --------------------------------------------------
|
|
149
|
-
|
|
150
|
-
All APIs return a codec object with incremented refcount and are
|
|
151
|
-
based on _PyCodec_Lookup(). The same comments w/r to the encoding
|
|
152
|
-
name also apply to these APIs.
|
|
153
|
-
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
/* Get an encoder function for the given encoding. */
|
|
157
|
-
|
|
158
|
-
PyAPI_FUNC(PyObject *) PyCodec_Encoder(
|
|
159
|
-
const char *encoding
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
/* Get a decoder function for the given encoding. */
|
|
163
|
-
|
|
164
|
-
PyAPI_FUNC(PyObject *) PyCodec_Decoder(
|
|
165
|
-
const char *encoding
|
|
166
|
-
);
|
|
167
|
-
|
|
168
|
-
/* Get an IncrementalEncoder object for the given encoding. */
|
|
169
|
-
|
|
170
|
-
PyAPI_FUNC(PyObject *) PyCodec_IncrementalEncoder(
|
|
171
|
-
const char *encoding,
|
|
172
|
-
const char *errors
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
/* Get an IncrementalDecoder object function for the given encoding. */
|
|
176
|
-
|
|
177
|
-
PyAPI_FUNC(PyObject *) PyCodec_IncrementalDecoder(
|
|
178
|
-
const char *encoding,
|
|
179
|
-
const char *errors
|
|
180
|
-
);
|
|
181
|
-
|
|
182
|
-
/* Get a StreamReader factory function for the given encoding. */
|
|
183
|
-
|
|
184
|
-
PyAPI_FUNC(PyObject *) PyCodec_StreamReader(
|
|
185
|
-
const char *encoding,
|
|
186
|
-
PyObject *stream,
|
|
187
|
-
const char *errors
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
/* Get a StreamWriter factory function for the given encoding. */
|
|
191
|
-
|
|
192
|
-
PyAPI_FUNC(PyObject *) PyCodec_StreamWriter(
|
|
193
|
-
const char *encoding,
|
|
194
|
-
PyObject *stream,
|
|
195
|
-
const char *errors
|
|
196
|
-
);
|
|
197
|
-
|
|
198
|
-
/* Unicode encoding error handling callback registry API */
|
|
199
|
-
|
|
200
|
-
/* Register the error handling callback function error under the given
|
|
201
|
-
name. This function will be called by the codec when it encounters
|
|
202
|
-
unencodable characters/undecodable bytes and doesn't know the
|
|
203
|
-
callback name, when name is specified as the error parameter
|
|
204
|
-
in the call to the encode/decode function.
|
|
205
|
-
Return 0 on success, -1 on error */
|
|
206
|
-
PyAPI_FUNC(int) PyCodec_RegisterError(const char *name, PyObject *error);
|
|
207
|
-
|
|
208
|
-
/* Lookup the error handling callback function registered under the given
|
|
209
|
-
name. As a special case NULL can be passed, in which case
|
|
210
|
-
the error handling callback for "strict" will be returned. */
|
|
211
|
-
PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name);
|
|
212
|
-
|
|
213
|
-
/* raise exc as an exception */
|
|
214
|
-
PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
|
|
215
|
-
|
|
216
|
-
/* ignore the unicode error, skipping the faulty input */
|
|
217
|
-
PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
|
|
218
|
-
|
|
219
|
-
/* replace the unicode encode error with ? or U+FFFD */
|
|
220
|
-
PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
|
|
221
|
-
|
|
222
|
-
/* replace the unicode encode error with XML character references */
|
|
223
|
-
PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
|
|
224
|
-
|
|
225
|
-
/* replace the unicode encode error with backslash escapes (\x, \u and \U) */
|
|
226
|
-
PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
|
|
227
|
-
|
|
228
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
229
|
-
/* replace the unicode encode error with backslash escapes (\N, \x, \u and \U) */
|
|
230
|
-
PyAPI_FUNC(PyObject *) PyCodec_NameReplaceErrors(PyObject *exc);
|
|
231
|
-
#endif
|
|
232
|
-
|
|
233
|
-
#ifndef Py_LIMITED_API
|
|
234
|
-
PyAPI_DATA(const char *) Py_hexdigits;
|
|
235
|
-
#endif
|
|
236
|
-
|
|
237
|
-
#ifdef __cplusplus
|
|
238
|
-
}
|
|
239
|
-
#endif
|
|
240
|
-
#endif /* !Py_CODECREGISTRY_H */
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
#ifndef Py_COMPILE_H
|
|
2
|
-
#define Py_COMPILE_H
|
|
3
|
-
|
|
4
|
-
#ifndef Py_LIMITED_API
|
|
5
|
-
#include "code.h"
|
|
6
|
-
|
|
7
|
-
#ifdef __cplusplus
|
|
8
|
-
extern "C" {
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
/* Public interface */
|
|
12
|
-
struct _node; /* Declare the existence of this type */
|
|
13
|
-
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
|
|
14
|
-
/* XXX (ncoghlan): Unprefixed type name in a public API! */
|
|
15
|
-
|
|
16
|
-
#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
|
|
17
|
-
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
|
|
18
|
-
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \
|
|
19
|
-
CO_FUTURE_GENERATOR_STOP | CO_FUTURE_ANNOTATIONS)
|
|
20
|
-
#define PyCF_MASK_OBSOLETE (CO_NESTED)
|
|
21
|
-
|
|
22
|
-
/* bpo-39562: CO_FUTURE_ and PyCF_ constants must be kept unique.
|
|
23
|
-
PyCF_ constants can use bits from 0x0100 to 0x10000.
|
|
24
|
-
CO_FUTURE_ constants use bits starting at 0x20000. */
|
|
25
|
-
#define PyCF_SOURCE_IS_UTF8 0x0100
|
|
26
|
-
#define PyCF_DONT_IMPLY_DEDENT 0x0200
|
|
27
|
-
#define PyCF_ONLY_AST 0x0400
|
|
28
|
-
#define PyCF_IGNORE_COOKIE 0x0800
|
|
29
|
-
#define PyCF_TYPE_COMMENTS 0x1000
|
|
30
|
-
#define PyCF_ALLOW_TOP_LEVEL_AWAIT 0x2000
|
|
31
|
-
#define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
|
|
32
|
-
PyCF_TYPE_COMMENTS | PyCF_DONT_IMPLY_DEDENT)
|
|
33
|
-
|
|
34
|
-
#ifndef Py_LIMITED_API
|
|
35
|
-
typedef struct {
|
|
36
|
-
int cf_flags; /* bitmask of CO_xxx flags relevant to future */
|
|
37
|
-
int cf_feature_version; /* minor Python version (PyCF_ONLY_AST) */
|
|
38
|
-
} PyCompilerFlags;
|
|
39
|
-
|
|
40
|
-
#define _PyCompilerFlags_INIT \
|
|
41
|
-
(PyCompilerFlags){.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION}
|
|
42
|
-
#endif
|
|
43
|
-
|
|
44
|
-
/* Future feature support */
|
|
45
|
-
|
|
46
|
-
typedef struct {
|
|
47
|
-
int ff_features; /* flags set by future statements */
|
|
48
|
-
int ff_lineno; /* line number of last future statement */
|
|
49
|
-
} PyFutureFeatures;
|
|
50
|
-
|
|
51
|
-
#define FUTURE_NESTED_SCOPES "nested_scopes"
|
|
52
|
-
#define FUTURE_GENERATORS "generators"
|
|
53
|
-
#define FUTURE_DIVISION "division"
|
|
54
|
-
#define FUTURE_ABSOLUTE_IMPORT "absolute_import"
|
|
55
|
-
#define FUTURE_WITH_STATEMENT "with_statement"
|
|
56
|
-
#define FUTURE_PRINT_FUNCTION "print_function"
|
|
57
|
-
#define FUTURE_UNICODE_LITERALS "unicode_literals"
|
|
58
|
-
#define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
|
|
59
|
-
#define FUTURE_GENERATOR_STOP "generator_stop"
|
|
60
|
-
#define FUTURE_ANNOTATIONS "annotations"
|
|
61
|
-
|
|
62
|
-
struct _mod; /* Declare the existence of this type */
|
|
63
|
-
#define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar)
|
|
64
|
-
PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
|
|
65
|
-
struct _mod *mod,
|
|
66
|
-
const char *filename, /* decoded from the filesystem encoding */
|
|
67
|
-
PyCompilerFlags *flags,
|
|
68
|
-
int optimize,
|
|
69
|
-
PyArena *arena);
|
|
70
|
-
PyAPI_FUNC(PyCodeObject *) PyAST_CompileObject(
|
|
71
|
-
struct _mod *mod,
|
|
72
|
-
PyObject *filename,
|
|
73
|
-
PyCompilerFlags *flags,
|
|
74
|
-
int optimize,
|
|
75
|
-
PyArena *arena);
|
|
76
|
-
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(
|
|
77
|
-
struct _mod * mod,
|
|
78
|
-
const char *filename /* decoded from the filesystem encoding */
|
|
79
|
-
);
|
|
80
|
-
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromASTObject(
|
|
81
|
-
struct _mod * mod,
|
|
82
|
-
PyObject *filename
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
/* _Py_Mangle is defined in compile.c */
|
|
86
|
-
PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
|
|
87
|
-
|
|
88
|
-
#define PY_INVALID_STACK_EFFECT INT_MAX
|
|
89
|
-
PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
|
|
90
|
-
PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
|
|
91
|
-
|
|
92
|
-
PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena, int optimize);
|
|
93
|
-
|
|
94
|
-
#ifdef __cplusplus
|
|
95
|
-
}
|
|
96
|
-
#endif
|
|
97
|
-
|
|
98
|
-
#endif /* !Py_LIMITED_API */
|
|
99
|
-
|
|
100
|
-
/* These definitions must match corresponding definitions in graminit.h. */
|
|
101
|
-
#define Py_single_input 256
|
|
102
|
-
#define Py_file_input 257
|
|
103
|
-
#define Py_eval_input 258
|
|
104
|
-
#define Py_func_type_input 345
|
|
105
|
-
|
|
106
|
-
#endif /* !Py_COMPILE_H */
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* Complex number structure */
|
|
2
|
-
|
|
3
|
-
#ifndef Py_COMPLEXOBJECT_H
|
|
4
|
-
#define Py_COMPLEXOBJECT_H
|
|
5
|
-
#ifdef __cplusplus
|
|
6
|
-
extern "C" {
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
#ifndef Py_LIMITED_API
|
|
10
|
-
typedef struct {
|
|
11
|
-
double real;
|
|
12
|
-
double imag;
|
|
13
|
-
} Py_complex;
|
|
14
|
-
|
|
15
|
-
/* Operations on complex numbers from complexmodule.c */
|
|
16
|
-
|
|
17
|
-
PyAPI_FUNC(Py_complex) _Py_c_sum(Py_complex, Py_complex);
|
|
18
|
-
PyAPI_FUNC(Py_complex) _Py_c_diff(Py_complex, Py_complex);
|
|
19
|
-
PyAPI_FUNC(Py_complex) _Py_c_neg(Py_complex);
|
|
20
|
-
PyAPI_FUNC(Py_complex) _Py_c_prod(Py_complex, Py_complex);
|
|
21
|
-
PyAPI_FUNC(Py_complex) _Py_c_quot(Py_complex, Py_complex);
|
|
22
|
-
PyAPI_FUNC(Py_complex) _Py_c_pow(Py_complex, Py_complex);
|
|
23
|
-
PyAPI_FUNC(double) _Py_c_abs(Py_complex);
|
|
24
|
-
#endif
|
|
25
|
-
|
|
26
|
-
/* Complex object interface */
|
|
27
|
-
|
|
28
|
-
/*
|
|
29
|
-
PyComplexObject represents a complex number with double-precision
|
|
30
|
-
real and imaginary parts.
|
|
31
|
-
*/
|
|
32
|
-
#ifndef Py_LIMITED_API
|
|
33
|
-
typedef struct {
|
|
34
|
-
PyObject_HEAD
|
|
35
|
-
Py_complex cval;
|
|
36
|
-
} PyComplexObject;
|
|
37
|
-
#endif
|
|
38
|
-
|
|
39
|
-
PyAPI_DATA(PyTypeObject) PyComplex_Type;
|
|
40
|
-
|
|
41
|
-
#define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
|
|
42
|
-
#define PyComplex_CheckExact(op) (Py_TYPE(op) == &PyComplex_Type)
|
|
43
|
-
|
|
44
|
-
#ifndef Py_LIMITED_API
|
|
45
|
-
PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex);
|
|
46
|
-
#endif
|
|
47
|
-
PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
|
|
48
|
-
|
|
49
|
-
PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
|
|
50
|
-
PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
|
|
51
|
-
#ifndef Py_LIMITED_API
|
|
52
|
-
PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
|
|
53
|
-
#endif
|
|
54
|
-
|
|
55
|
-
/* Format the object based on the format_spec, as defined in PEP 3101
|
|
56
|
-
(Advanced String Formatting). */
|
|
57
|
-
#ifndef Py_LIMITED_API
|
|
58
|
-
PyAPI_FUNC(int) _PyComplex_FormatAdvancedWriter(
|
|
59
|
-
_PyUnicodeWriter *writer,
|
|
60
|
-
PyObject *obj,
|
|
61
|
-
PyObject *format_spec,
|
|
62
|
-
Py_ssize_t start,
|
|
63
|
-
Py_ssize_t end);
|
|
64
|
-
#endif
|
|
65
|
-
|
|
66
|
-
#ifdef __cplusplus
|
|
67
|
-
}
|
|
68
|
-
#endif
|
|
69
|
-
#endif /* !Py_COMPLEXOBJECT_H */
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
#ifndef Py_CONTEXT_H
|
|
2
|
-
#define Py_CONTEXT_H
|
|
3
|
-
#ifdef __cplusplus
|
|
4
|
-
extern "C" {
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
#ifndef Py_LIMITED_API
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
PyAPI_DATA(PyTypeObject) PyContext_Type;
|
|
11
|
-
typedef struct _pycontextobject PyContext;
|
|
12
|
-
|
|
13
|
-
PyAPI_DATA(PyTypeObject) PyContextVar_Type;
|
|
14
|
-
typedef struct _pycontextvarobject PyContextVar;
|
|
15
|
-
|
|
16
|
-
PyAPI_DATA(PyTypeObject) PyContextToken_Type;
|
|
17
|
-
typedef struct _pycontexttokenobject PyContextToken;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
#define PyContext_CheckExact(o) (Py_TYPE(o) == &PyContext_Type)
|
|
21
|
-
#define PyContextVar_CheckExact(o) (Py_TYPE(o) == &PyContextVar_Type)
|
|
22
|
-
#define PyContextToken_CheckExact(o) (Py_TYPE(o) == &PyContextToken_Type)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
PyAPI_FUNC(PyObject *) PyContext_New(void);
|
|
26
|
-
PyAPI_FUNC(PyObject *) PyContext_Copy(PyObject *);
|
|
27
|
-
PyAPI_FUNC(PyObject *) PyContext_CopyCurrent(void);
|
|
28
|
-
|
|
29
|
-
PyAPI_FUNC(int) PyContext_Enter(PyObject *);
|
|
30
|
-
PyAPI_FUNC(int) PyContext_Exit(PyObject *);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/* Create a new context variable.
|
|
34
|
-
|
|
35
|
-
default_value can be NULL.
|
|
36
|
-
*/
|
|
37
|
-
PyAPI_FUNC(PyObject *) PyContextVar_New(
|
|
38
|
-
const char *name, PyObject *default_value);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/* Get a value for the variable.
|
|
42
|
-
|
|
43
|
-
Returns -1 if an error occurred during lookup.
|
|
44
|
-
|
|
45
|
-
Returns 0 if value either was or was not found.
|
|
46
|
-
|
|
47
|
-
If value was found, *value will point to it.
|
|
48
|
-
If not, it will point to:
|
|
49
|
-
|
|
50
|
-
- default_value, if not NULL;
|
|
51
|
-
- the default value of "var", if not NULL;
|
|
52
|
-
- NULL.
|
|
53
|
-
|
|
54
|
-
'*value' will be a new ref, if not NULL.
|
|
55
|
-
*/
|
|
56
|
-
PyAPI_FUNC(int) PyContextVar_Get(
|
|
57
|
-
PyObject *var, PyObject *default_value, PyObject **value);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/* Set a new value for the variable.
|
|
61
|
-
Returns NULL if an error occurs.
|
|
62
|
-
*/
|
|
63
|
-
PyAPI_FUNC(PyObject *) PyContextVar_Set(PyObject *var, PyObject *value);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* Reset a variable to its previous value.
|
|
67
|
-
Returns 0 on success, -1 on error.
|
|
68
|
-
*/
|
|
69
|
-
PyAPI_FUNC(int) PyContextVar_Reset(PyObject *var, PyObject *token);
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/* This method is exposed only for CPython tests. Don not use it. */
|
|
73
|
-
PyAPI_FUNC(PyObject *) _PyContext_NewHamtForTests(void);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
PyAPI_FUNC(int) PyContext_ClearFreeList(void);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
#endif /* !Py_LIMITED_API */
|
|
80
|
-
|
|
81
|
-
#ifdef __cplusplus
|
|
82
|
-
}
|
|
83
|
-
#endif
|
|
84
|
-
#endif /* !Py_CONTEXT_H */
|