@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.
Files changed (216) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/locales/ca/LC_MESSAGES/volto.po +12 -2
  3. package/locales/ca.json +1 -1
  4. package/locales/de/LC_MESSAGES/volto.po +12 -2
  5. package/locales/de.json +1 -1
  6. package/locales/en/LC_MESSAGES/volto.po +12 -2
  7. package/locales/en.json +1 -1
  8. package/locales/es/LC_MESSAGES/volto.po +12 -2
  9. package/locales/es.json +1 -1
  10. package/locales/eu/LC_MESSAGES/volto.po +12 -2
  11. package/locales/eu.json +1 -1
  12. package/locales/fr/LC_MESSAGES/volto.po +12 -2
  13. package/locales/fr.json +1 -1
  14. package/locales/it/LC_MESSAGES/volto.po +12 -2
  15. package/locales/it.json +1 -1
  16. package/locales/ja/LC_MESSAGES/volto.po +12 -2
  17. package/locales/ja.json +1 -1
  18. package/locales/nl/LC_MESSAGES/volto.po +12 -2
  19. package/locales/nl.json +1 -1
  20. package/locales/pt/LC_MESSAGES/volto.po +12 -2
  21. package/locales/pt.json +1 -1
  22. package/locales/pt_BR/LC_MESSAGES/volto.po +12 -2
  23. package/locales/pt_BR.json +1 -1
  24. package/locales/ro/LC_MESSAGES/volto.po +12 -2
  25. package/locales/ro.json +1 -1
  26. package/locales/volto.pot +12 -2
  27. package/package.json +2 -1
  28. package/public/icon.svg +13 -0
  29. package/src/actions/vocabularies/vocabularies.js +15 -3
  30. package/src/components/index.js +1 -0
  31. package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +1 -1
  32. package/src/components/manage/Blocks/Listing/getAsyncData.js +1 -1
  33. package/src/components/manage/Blocks/Text/Edit.jsx +19 -0
  34. package/src/components/manage/Form/Form.jsx +11 -1
  35. package/src/components/manage/Form/UndoToolbar.jsx +78 -0
  36. package/src/components/manage/Widgets/AlignWidget.stories.jsx +5 -21
  37. package/src/components/manage/Widgets/ArrayWidget.jsx +83 -101
  38. package/src/components/manage/Widgets/ArrayWidget.stories.jsx +29 -64
  39. package/src/components/manage/Widgets/CheckboxWidget.stories.jsx +5 -22
  40. package/src/components/manage/Widgets/DatetimeWidget.jsx +65 -74
  41. package/src/components/manage/Widgets/DatetimeWidget.stories.jsx +7 -23
  42. package/src/components/manage/Widgets/DatetimeWidget.test.jsx +17 -15
  43. package/src/components/manage/Widgets/EmailWidget.stories.jsx +5 -22
  44. package/src/components/manage/Widgets/FileWidget.stories.jsx +5 -22
  45. package/src/components/manage/Widgets/NumberWidget.stories.jsx +5 -23
  46. package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -32
  47. package/src/components/manage/Widgets/ObjectListWidget.stories.js +44 -44
  48. package/src/components/manage/Widgets/ObjectWidget.stories.jsx +13 -28
  49. package/src/components/manage/Widgets/PasswordWidget.stories.jsx +5 -22
  50. package/src/components/manage/Widgets/QueryWidget.jsx +2 -2
  51. package/src/components/manage/Widgets/QueryWidget.stories.jsx +1637 -22
  52. package/src/components/manage/Widgets/SelectAutoComplete.jsx +79 -48
  53. package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +16 -0
  54. package/src/components/manage/Widgets/SelectAutocompleteWidget.stories.jsx +161 -0
  55. package/src/components/manage/Widgets/SelectUtils.js +90 -30
  56. package/src/components/manage/Widgets/SelectUtils.test.jsx +76 -1
  57. package/src/components/manage/Widgets/SelectWidget.jsx +26 -37
  58. package/src/components/manage/Widgets/SelectWidget.stories.jsx +96 -28
  59. package/src/components/manage/Widgets/TextWidget.stories.jsx +5 -22
  60. package/src/components/manage/Widgets/TextareaWidget.stories.jsx +5 -22
  61. package/src/components/manage/Widgets/TokenWidget.jsx +19 -17
  62. package/src/components/manage/Widgets/TokenWidget.stories.jsx +141 -0
  63. package/src/components/manage/Widgets/UrlWidget.stories.jsx +5 -21
  64. package/src/components/manage/Widgets/VocabularyTermsWidget.stories.js +27 -64
  65. package/src/components/manage/Widgets/WysiwygWidget.stories.jsx +5 -22
  66. package/src/components/manage/Widgets/story.jsx +38 -0
  67. package/src/components/theme/ContactForm/ContactForm.jsx +1 -0
  68. package/src/components/theme/ContactForm/ContactForm.stories.jsx +126 -0
  69. package/src/components/theme/CorsError/CorsError.jsx +2 -2
  70. package/src/config/Loadables.jsx +2 -0
  71. package/src/config/index.js +1 -0
  72. package/src/helpers/Html/Html.jsx +2 -12
  73. package/src/helpers/UndoManager/useUndoManager.js +102 -0
  74. package/src/helpers/index.js +1 -0
  75. package/src/middleware/Api.test.js +57 -6
  76. package/src/middleware/api.js +34 -13
  77. package/src/reducers/vocabularies/vocabularies.js +13 -2
  78. package/src/store.js +1 -1
  79. package/src/storybook.jsx +55 -0
  80. package/theme/themes/pastanaga/extras/time-picker-overrides.less +1 -1
  81. package/include/python3.8/Python-ast.h +0 -715
  82. package/include/python3.8/Python.h +0 -160
  83. package/include/python3.8/abstract.h +0 -844
  84. package/include/python3.8/asdl.h +0 -46
  85. package/include/python3.8/ast.h +0 -37
  86. package/include/python3.8/bitset.h +0 -23
  87. package/include/python3.8/bltinmodule.h +0 -14
  88. package/include/python3.8/boolobject.h +0 -34
  89. package/include/python3.8/bytearrayobject.h +0 -62
  90. package/include/python3.8/bytes_methods.h +0 -69
  91. package/include/python3.8/bytesobject.h +0 -224
  92. package/include/python3.8/cellobject.h +0 -29
  93. package/include/python3.8/ceval.h +0 -231
  94. package/include/python3.8/classobject.h +0 -59
  95. package/include/python3.8/code.h +0 -180
  96. package/include/python3.8/codecs.h +0 -240
  97. package/include/python3.8/compile.h +0 -106
  98. package/include/python3.8/complexobject.h +0 -69
  99. package/include/python3.8/context.h +0 -84
  100. package/include/python3.8/cpython/abstract.h +0 -319
  101. package/include/python3.8/cpython/dictobject.h +0 -94
  102. package/include/python3.8/cpython/fileobject.h +0 -24
  103. package/include/python3.8/cpython/initconfig.h +0 -434
  104. package/include/python3.8/cpython/interpreteridobject.h +0 -19
  105. package/include/python3.8/cpython/object.h +0 -470
  106. package/include/python3.8/cpython/objimpl.h +0 -113
  107. package/include/python3.8/cpython/pyerrors.h +0 -188
  108. package/include/python3.8/cpython/pylifecycle.h +0 -78
  109. package/include/python3.8/cpython/pymem.h +0 -108
  110. package/include/python3.8/cpython/pystate.h +0 -252
  111. package/include/python3.8/cpython/sysmodule.h +0 -21
  112. package/include/python3.8/cpython/traceback.h +0 -22
  113. package/include/python3.8/cpython/tupleobject.h +0 -36
  114. package/include/python3.8/cpython/unicodeobject.h +0 -1239
  115. package/include/python3.8/datetime.h +0 -259
  116. package/include/python3.8/descrobject.h +0 -108
  117. package/include/python3.8/dictobject.h +0 -94
  118. package/include/python3.8/dtoa.h +0 -19
  119. package/include/python3.8/dynamic_annotations.h +0 -499
  120. package/include/python3.8/enumobject.h +0 -17
  121. package/include/python3.8/errcode.h +0 -38
  122. package/include/python3.8/eval.h +0 -37
  123. package/include/python3.8/fileobject.h +0 -49
  124. package/include/python3.8/fileutils.h +0 -185
  125. package/include/python3.8/floatobject.h +0 -130
  126. package/include/python3.8/frameobject.h +0 -92
  127. package/include/python3.8/funcobject.h +0 -104
  128. package/include/python3.8/genobject.h +0 -109
  129. package/include/python3.8/graminit.h +0 -94
  130. package/include/python3.8/grammar.h +0 -77
  131. package/include/python3.8/import.h +0 -149
  132. package/include/python3.8/internal/pycore_accu.h +0 -39
  133. package/include/python3.8/internal/pycore_atomic.h +0 -558
  134. package/include/python3.8/internal/pycore_ceval.h +0 -37
  135. package/include/python3.8/internal/pycore_code.h +0 -27
  136. package/include/python3.8/internal/pycore_condvar.h +0 -95
  137. package/include/python3.8/internal/pycore_context.h +0 -42
  138. package/include/python3.8/internal/pycore_fileutils.h +0 -54
  139. package/include/python3.8/internal/pycore_getopt.h +0 -22
  140. package/include/python3.8/internal/pycore_gil.h +0 -50
  141. package/include/python3.8/internal/pycore_hamt.h +0 -116
  142. package/include/python3.8/internal/pycore_initconfig.h +0 -166
  143. package/include/python3.8/internal/pycore_object.h +0 -81
  144. package/include/python3.8/internal/pycore_pathconfig.h +0 -75
  145. package/include/python3.8/internal/pycore_pyerrors.h +0 -62
  146. package/include/python3.8/internal/pycore_pyhash.h +0 -10
  147. package/include/python3.8/internal/pycore_pylifecycle.h +0 -118
  148. package/include/python3.8/internal/pycore_pymem.h +0 -212
  149. package/include/python3.8/internal/pycore_pystate.h +0 -326
  150. package/include/python3.8/internal/pycore_traceback.h +0 -96
  151. package/include/python3.8/internal/pycore_tupleobject.h +0 -19
  152. package/include/python3.8/internal/pycore_warnings.h +0 -25
  153. package/include/python3.8/interpreteridobject.h +0 -17
  154. package/include/python3.8/intrcheck.h +0 -33
  155. package/include/python3.8/iterobject.h +0 -25
  156. package/include/python3.8/listobject.h +0 -81
  157. package/include/python3.8/longintrepr.h +0 -99
  158. package/include/python3.8/longobject.h +0 -242
  159. package/include/python3.8/marshal.h +0 -28
  160. package/include/python3.8/memoryobject.h +0 -72
  161. package/include/python3.8/methodobject.h +0 -131
  162. package/include/python3.8/modsupport.h +0 -248
  163. package/include/python3.8/moduleobject.h +0 -90
  164. package/include/python3.8/namespaceobject.h +0 -19
  165. package/include/python3.8/node.h +0 -48
  166. package/include/python3.8/object.h +0 -753
  167. package/include/python3.8/objimpl.h +0 -284
  168. package/include/python3.8/odictobject.h +0 -43
  169. package/include/python3.8/opcode.h +0 -148
  170. package/include/python3.8/osdefs.h +0 -51
  171. package/include/python3.8/osmodule.h +0 -17
  172. package/include/python3.8/parsetok.h +0 -110
  173. package/include/python3.8/patchlevel.h +0 -35
  174. package/include/python3.8/picklebufobject.h +0 -31
  175. package/include/python3.8/py_curses.h +0 -100
  176. package/include/python3.8/pyarena.h +0 -64
  177. package/include/python3.8/pycapsule.h +0 -59
  178. package/include/python3.8/pyconfig.h +0 -1665
  179. package/include/python3.8/pyctype.h +0 -39
  180. package/include/python3.8/pydebug.h +0 -40
  181. package/include/python3.8/pydtrace.h +0 -59
  182. package/include/python3.8/pydtrace_probes.h +0 -228
  183. package/include/python3.8/pyerrors.h +0 -335
  184. package/include/python3.8/pyexpat.h +0 -55
  185. package/include/python3.8/pyfpe.h +0 -12
  186. package/include/python3.8/pyhash.h +0 -145
  187. package/include/python3.8/pylifecycle.h +0 -75
  188. package/include/python3.8/pymacconfig.h +0 -102
  189. package/include/python3.8/pymacro.h +0 -106
  190. package/include/python3.8/pymath.h +0 -230
  191. package/include/python3.8/pymem.h +0 -150
  192. package/include/python3.8/pyport.h +0 -850
  193. package/include/python3.8/pystate.h +0 -136
  194. package/include/python3.8/pystrcmp.h +0 -23
  195. package/include/python3.8/pystrhex.h +0 -22
  196. package/include/python3.8/pystrtod.h +0 -45
  197. package/include/python3.8/pythonrun.h +0 -210
  198. package/include/python3.8/pythread.h +0 -161
  199. package/include/python3.8/pytime.h +0 -246
  200. package/include/python3.8/rangeobject.h +0 -27
  201. package/include/python3.8/setobject.h +0 -108
  202. package/include/python3.8/sliceobject.h +0 -65
  203. package/include/python3.8/structmember.h +0 -74
  204. package/include/python3.8/structseq.h +0 -49
  205. package/include/python3.8/symtable.h +0 -123
  206. package/include/python3.8/sysmodule.h +0 -41
  207. package/include/python3.8/token.h +0 -92
  208. package/include/python3.8/traceback.h +0 -28
  209. package/include/python3.8/tracemalloc.h +0 -38
  210. package/include/python3.8/tupleobject.h +0 -48
  211. package/include/python3.8/typeslots.h +0 -85
  212. package/include/python3.8/ucnhash.h +0 -36
  213. package/include/python3.8/unicodeobject.h +0 -1044
  214. package/include/python3.8/warnings.h +0 -67
  215. package/include/python3.8/weakrefobject.h +0 -86
  216. package/src/components/theme/ContactForm/ContactForm.stories.mdx +0 -39
@@ -1,94 +0,0 @@
1
- /* Generated by Parser/pgen */
2
-
3
- #define single_input 256
4
- #define file_input 257
5
- #define eval_input 258
6
- #define decorator 259
7
- #define decorators 260
8
- #define decorated 261
9
- #define async_funcdef 262
10
- #define funcdef 263
11
- #define parameters 264
12
- #define typedargslist 265
13
- #define tfpdef 266
14
- #define varargslist 267
15
- #define vfpdef 268
16
- #define stmt 269
17
- #define simple_stmt 270
18
- #define small_stmt 271
19
- #define expr_stmt 272
20
- #define annassign 273
21
- #define testlist_star_expr 274
22
- #define augassign 275
23
- #define del_stmt 276
24
- #define pass_stmt 277
25
- #define flow_stmt 278
26
- #define break_stmt 279
27
- #define continue_stmt 280
28
- #define return_stmt 281
29
- #define yield_stmt 282
30
- #define raise_stmt 283
31
- #define import_stmt 284
32
- #define import_name 285
33
- #define import_from 286
34
- #define import_as_name 287
35
- #define dotted_as_name 288
36
- #define import_as_names 289
37
- #define dotted_as_names 290
38
- #define dotted_name 291
39
- #define global_stmt 292
40
- #define nonlocal_stmt 293
41
- #define assert_stmt 294
42
- #define compound_stmt 295
43
- #define async_stmt 296
44
- #define if_stmt 297
45
- #define while_stmt 298
46
- #define for_stmt 299
47
- #define try_stmt 300
48
- #define with_stmt 301
49
- #define with_item 302
50
- #define except_clause 303
51
- #define suite 304
52
- #define namedexpr_test 305
53
- #define test 306
54
- #define test_nocond 307
55
- #define lambdef 308
56
- #define lambdef_nocond 309
57
- #define or_test 310
58
- #define and_test 311
59
- #define not_test 312
60
- #define comparison 313
61
- #define comp_op 314
62
- #define star_expr 315
63
- #define expr 316
64
- #define xor_expr 317
65
- #define and_expr 318
66
- #define shift_expr 319
67
- #define arith_expr 320
68
- #define term 321
69
- #define factor 322
70
- #define power 323
71
- #define atom_expr 324
72
- #define atom 325
73
- #define testlist_comp 326
74
- #define trailer 327
75
- #define subscriptlist 328
76
- #define subscript 329
77
- #define sliceop 330
78
- #define exprlist 331
79
- #define testlist 332
80
- #define dictorsetmaker 333
81
- #define classdef 334
82
- #define arglist 335
83
- #define argument 336
84
- #define comp_iter 337
85
- #define sync_comp_for 338
86
- #define comp_for 339
87
- #define comp_if 340
88
- #define encoding_decl 341
89
- #define yield_expr 342
90
- #define yield_arg 343
91
- #define func_body_suite 344
92
- #define func_type_input 345
93
- #define func_type 346
94
- #define typelist 347
@@ -1,77 +0,0 @@
1
-
2
- /* Grammar interface */
3
-
4
- #ifndef Py_GRAMMAR_H
5
- #define Py_GRAMMAR_H
6
- #ifdef __cplusplus
7
- extern "C" {
8
- #endif
9
-
10
- #include "bitset.h" /* Sigh... */
11
-
12
- /* A label of an arc */
13
-
14
- typedef struct {
15
- int lb_type;
16
- const char *lb_str;
17
- } label;
18
-
19
- #define EMPTY 0 /* Label number 0 is by definition the empty label */
20
-
21
- /* A list of labels */
22
-
23
- typedef struct {
24
- int ll_nlabels;
25
- const label *ll_label;
26
- } labellist;
27
-
28
- /* An arc from one state to another */
29
-
30
- typedef struct {
31
- short a_lbl; /* Label of this arc */
32
- short a_arrow; /* State where this arc goes to */
33
- } arc;
34
-
35
- /* A state in a DFA */
36
-
37
- typedef struct {
38
- int s_narcs;
39
- const arc *s_arc; /* Array of arcs */
40
-
41
- /* Optional accelerators */
42
- int s_lower; /* Lowest label index */
43
- int s_upper; /* Highest label index */
44
- int *s_accel; /* Accelerator */
45
- int s_accept; /* Nonzero for accepting state */
46
- } state;
47
-
48
- /* A DFA */
49
-
50
- typedef struct {
51
- int d_type; /* Non-terminal this represents */
52
- char *d_name; /* For printing */
53
- int d_nstates;
54
- state *d_state; /* Array of states */
55
- bitset d_first;
56
- } dfa;
57
-
58
- /* A grammar */
59
-
60
- typedef struct {
61
- int g_ndfas;
62
- const dfa *g_dfa; /* Array of DFAs */
63
- const labellist g_ll;
64
- int g_start; /* Start symbol of the grammar */
65
- int g_accel; /* Set if accelerators present */
66
- } grammar;
67
-
68
- /* FUNCTIONS */
69
- const dfa *PyGrammar_FindDFA(grammar *g, int type);
70
- const char *PyGrammar_LabelRepr(label *lb);
71
- void PyGrammar_AddAccelerators(grammar *g);
72
- void PyGrammar_RemoveAccelerators(grammar *);
73
-
74
- #ifdef __cplusplus
75
- }
76
- #endif
77
- #endif /* !Py_GRAMMAR_H */
@@ -1,149 +0,0 @@
1
-
2
- /* Module definition and import interface */
3
-
4
- #ifndef Py_IMPORT_H
5
- #define Py_IMPORT_H
6
- #ifdef __cplusplus
7
- extern "C" {
8
- #endif
9
-
10
- #ifndef Py_LIMITED_API
11
- PyMODINIT_FUNC PyInit__imp(void);
12
- #endif /* !Py_LIMITED_API */
13
- PyAPI_FUNC(long) PyImport_GetMagicNumber(void);
14
- PyAPI_FUNC(const char *) PyImport_GetMagicTag(void);
15
- PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(
16
- const char *name, /* UTF-8 encoded string */
17
- PyObject *co
18
- );
19
- PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx(
20
- const char *name, /* UTF-8 encoded string */
21
- PyObject *co,
22
- const char *pathname /* decoded from the filesystem encoding */
23
- );
24
- PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames(
25
- const char *name, /* UTF-8 encoded string */
26
- PyObject *co,
27
- const char *pathname, /* decoded from the filesystem encoding */
28
- const char *cpathname /* decoded from the filesystem encoding */
29
- );
30
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
31
- PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(
32
- PyObject *name,
33
- PyObject *co,
34
- PyObject *pathname,
35
- PyObject *cpathname
36
- );
37
- #endif
38
- PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
39
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
40
- PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);
41
- #endif
42
- #ifndef Py_LIMITED_API
43
- PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
44
- PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
45
- PyAPI_FUNC(PyObject *) _PyImport_AddModuleObject(PyObject *name,
46
- PyObject *modules);
47
- PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
48
- PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
49
- #endif
50
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
51
- PyAPI_FUNC(PyObject *) PyImport_AddModuleObject(
52
- PyObject *name
53
- );
54
- #endif
55
- PyAPI_FUNC(PyObject *) PyImport_AddModule(
56
- const char *name /* UTF-8 encoded string */
57
- );
58
- PyAPI_FUNC(PyObject *) PyImport_ImportModule(
59
- const char *name /* UTF-8 encoded string */
60
- );
61
- PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(
62
- const char *name /* UTF-8 encoded string */
63
- );
64
- PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(
65
- const char *name, /* UTF-8 encoded string */
66
- PyObject *globals,
67
- PyObject *locals,
68
- PyObject *fromlist,
69
- int level
70
- );
71
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
72
- PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject(
73
- PyObject *name,
74
- PyObject *globals,
75
- PyObject *locals,
76
- PyObject *fromlist,
77
- int level
78
- );
79
- #endif
80
-
81
- #define PyImport_ImportModuleEx(n, g, l, f) \
82
- PyImport_ImportModuleLevel(n, g, l, f, 0)
83
-
84
- PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);
85
- PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
86
- PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
87
- PyAPI_FUNC(void) PyImport_Cleanup(void);
88
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
89
- PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(
90
- PyObject *name
91
- );
92
- #endif
93
- PyAPI_FUNC(int) PyImport_ImportFrozenModule(
94
- const char *name /* UTF-8 encoded string */
95
- );
96
-
97
- #ifndef Py_LIMITED_API
98
- PyAPI_FUNC(void) _PyImport_AcquireLock(void);
99
- PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
100
-
101
- PyAPI_FUNC(void) _PyImport_ReInitLock(void);
102
-
103
- PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
104
- const char *name, /* UTF-8 encoded string */
105
- PyObject *modules
106
- );
107
- PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
108
- PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObjectEx(PyObject *, PyObject *,
109
- PyObject *);
110
- PyAPI_FUNC(int) _PyImport_FixupBuiltin(
111
- PyObject *mod,
112
- const char *name, /* UTF-8 encoded string */
113
- PyObject *modules
114
- );
115
- PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
116
- PyObject *, PyObject *);
117
-
118
- struct _inittab {
119
- const char *name; /* ASCII encoded string */
120
- PyObject* (*initfunc)(void);
121
- };
122
- PyAPI_DATA(struct _inittab *) PyImport_Inittab;
123
- PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
124
- #endif /* Py_LIMITED_API */
125
-
126
- PyAPI_DATA(PyTypeObject) PyNullImporter_Type;
127
-
128
- PyAPI_FUNC(int) PyImport_AppendInittab(
129
- const char *name, /* ASCII encoded string */
130
- PyObject* (*initfunc)(void)
131
- );
132
-
133
- #ifndef Py_LIMITED_API
134
- struct _frozen {
135
- const char *name; /* ASCII encoded string */
136
- const unsigned char *code;
137
- int size;
138
- };
139
-
140
- /* Embedding apps may change this pointer to point to their favorite
141
- collection of frozen modules: */
142
-
143
- PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
144
- #endif
145
-
146
- #ifdef __cplusplus
147
- }
148
- #endif
149
- #endif /* !Py_IMPORT_H */
@@ -1,39 +0,0 @@
1
- #ifndef Py_LIMITED_API
2
- #ifndef Py_INTERNAL_ACCU_H
3
- #define Py_INTERNAL_ACCU_H
4
- #ifdef __cplusplus
5
- extern "C" {
6
- #endif
7
-
8
- /*** This is a private API for use by the interpreter and the stdlib.
9
- *** Its definition may be changed or removed at any moment.
10
- ***/
11
-
12
- #ifndef Py_BUILD_CORE
13
- # error "this header requires Py_BUILD_CORE define"
14
- #endif
15
-
16
- /*
17
- * A two-level accumulator of unicode objects that avoids both the overhead
18
- * of keeping a huge number of small separate objects, and the quadratic
19
- * behaviour of using a naive repeated concatenation scheme.
20
- */
21
-
22
- #undef small /* defined by some Windows headers */
23
-
24
- typedef struct {
25
- PyObject *large; /* A list of previously accumulated large strings */
26
- PyObject *small; /* Pending small strings */
27
- } _PyAccu;
28
-
29
- PyAPI_FUNC(int) _PyAccu_Init(_PyAccu *acc);
30
- PyAPI_FUNC(int) _PyAccu_Accumulate(_PyAccu *acc, PyObject *unicode);
31
- PyAPI_FUNC(PyObject *) _PyAccu_FinishAsList(_PyAccu *acc);
32
- PyAPI_FUNC(PyObject *) _PyAccu_Finish(_PyAccu *acc);
33
- PyAPI_FUNC(void) _PyAccu_Destroy(_PyAccu *acc);
34
-
35
- #ifdef __cplusplus
36
- }
37
- #endif
38
- #endif /* !Py_INTERNAL_ACCU_H */
39
- #endif /* !Py_LIMITED_API */