Home
last modified time | relevance | path

Searched refs:preconfig (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Programs/
D_testembed.c384 PyPreConfig preconfig; in check_init_compat_config() local
385 _PyPreConfig_InitCompatConfig(&preconfig); in check_init_compat_config()
387 status = Py_PreInitialize(&preconfig); in check_init_compat_config()
468 PyPreConfig preconfig; in test_init_from_config() local
469 _PyPreConfig_InitCompatConfig(&preconfig); in test_init_from_config()
472 preconfig.allocator = PYMEM_ALLOCATOR_MALLOC; in test_init_from_config()
476 preconfig.utf8_mode = 1; in test_init_from_config()
478 PyStatus status = Py_PreInitialize(&preconfig); in test_init_from_config()
774 PyPreConfig preconfig; in test_preinit_isolated1() local
775 _PyPreConfig_InitCompatConfig(&preconfig); in test_preinit_isolated1()
[all …]
/third_party/python/Include/internal/
Dpycore_initconfig.h119 const PyPreConfig *preconfig);
124 PyAPI_FUNC(void) _PyPreConfig_InitCompatConfig(PyPreConfig *preconfig);
126 PyPreConfig *preconfig,
129 PyPreConfig *preconfig,
131 extern PyObject* _PyPreConfig_AsDict(const PyPreConfig *preconfig);
132 extern void _PyPreConfig_GetConfig(PyPreConfig *preconfig,
134 extern PyStatus _PyPreConfig_Read(PyPreConfig *preconfig,
136 extern PyStatus _PyPreConfig_Write(const PyPreConfig *preconfig);
Dpycore_runtime.h101 PyPreConfig preconfig; member
/third_party/python/Lib/test/
Dtest_embed.py702 preconfig = {
721 self.check_all_configs("test_init_global_config", config, preconfig,
725 preconfig = {
784 self.check_all_configs("test_init_from_config", config, preconfig,
788 preconfig = {
813 self.check_all_configs("test_init_compat_env", config, preconfig,
817 preconfig = {
843 self.check_all_configs("test_init_python_env", config, preconfig,
847 preconfig = dict(allocator=PYMEM_ALLOCATOR_DEBUG)
851 self.check_all_configs("test_init_env_dev_mode", config, preconfig,
[all …]
/third_party/python/Python/
Dpreconfig.c229 _PyPreCmdline_Read(_PyPreCmdline *cmdline, const PyPreConfig *preconfig) in _PyPreCmdline_Read() argument
231 precmdline_get_preconfig(cmdline, preconfig); in _PyPreCmdline_Read()
233 if (preconfig->parse_argv) { in _PyPreCmdline_Read()
350 _PyPreConfig_InitFromConfig(PyPreConfig *preconfig, const PyConfig *config) in _PyPreConfig_InitFromConfig() argument
355 PyPreConfig_InitPythonConfig(preconfig); in _PyPreConfig_InitFromConfig()
358 PyPreConfig_InitIsolatedConfig(preconfig); in _PyPreConfig_InitFromConfig()
362 _PyPreConfig_InitCompatConfig(preconfig); in _PyPreConfig_InitFromConfig()
365 _PyPreConfig_GetConfig(preconfig, config); in _PyPreConfig_InitFromConfig()
439 _PyPreConfig_GetConfig(PyPreConfig *preconfig, const PyConfig *config) in _PyPreConfig_GetConfig() argument
443 preconfig->ATTR = config->ATTR; \ in _PyPreConfig_GetConfig()
[all …]
Dinitconfig.c1592 const PyPreConfig *preconfig) in config_init_stdio_encoding() argument
1672 if (preconfig->utf8_mode) { in config_init_stdio_encoding()
1711 config_init_fs_encoding(PyConfig *config, const PyPreConfig *preconfig) in config_init_fs_encoding() argument
1721 if (preconfig->legacy_windows_fs_encoding) { in config_init_fs_encoding()
1728 if (preconfig->utf8_mode) { in config_init_fs_encoding()
1758 if (preconfig->legacy_windows_fs_encoding) { in config_init_fs_encoding()
1780 const PyPreConfig *preconfig = &_PyRuntime.preconfig; in config_read() local
1846 status = config_init_fs_encoding(config, preconfig); in config_read()
1852 status = config_init_stdio_encoding(config, preconfig); in config_read()
1932 PyPreConfig *preconfig = &runtime->preconfig; in _PyConfig_Write() local
[all …]
Dpylifecycle.c263 const PyPreConfig *preconfig = &runtime->preconfig; in emit_stderr_warning_for_legacy_locale() local
264 if (preconfig->coerce_c_locale_warn && _Py_LegacyLocaleDetected(1)) { in emit_stderr_warning_for_legacy_locale()
864 PyPreConfig preconfig; in _Py_PreInitializeFromConfig() local
866 _PyPreConfig_InitFromConfig(&preconfig, config); in _Py_PreInitializeFromConfig()
869 return Py_PreInitialize(&preconfig); in _Py_PreInitializeFromConfig()
876 return _Py_PreInitializeFromPyArgv(&preconfig, &config_args); in _Py_PreInitializeFromConfig()
879 return _Py_PreInitializeFromPyArgv(&preconfig, args); in _Py_PreInitializeFromConfig()
Dsysmodule.c2502 const PyPreConfig *preconfig = &interp->runtime->preconfig; in make_flags() local
2530 SetFlag(preconfig->utf8_mode); in make_flags()
Dpystate.c65 PyPreConfig_InitPythonConfig(&runtime->preconfig); in _PyRuntimeState_Init_impl()
/third_party/python/PC/
Dpython_uwp.cpp168 PyPreConfig preconfig; in wmain() local
188 PyPreConfig_InitPythonConfig(&preconfig); in wmain()
190 status = Py_PreInitializeFromArgs(&preconfig, argc, argv); in wmain()
/third_party/python/Doc/c-api/
Dinit_config.rst49 ``_PyRuntime.preconfig`` and the configuration (``PyConfig`` type) is stored in
200 .. c:function:: void PyPreConfig_InitPythonConfig(PyPreConfig *preconfig)
205 .. c:function:: void PyPreConfig_InitIsolatedConfig(PyPreConfig *preconfig)
284 .. c:function:: PyStatus Py_PreInitialize(const PyPreConfig *preconfig)
286 Preinitialize Python from *preconfig* preconfiguration.
288 .. c:function:: PyStatus Py_PreInitializeFromBytesArgs(const PyPreConfig *preconfig, int argc, char…
290 Preinitialize Python from *preconfig* preconfiguration and command line
293 .. c:function:: PyStatus Py_PreInitializeFromArgs(const PyPreConfig *preconfig, int argc, wchar_t *…
295 Preinitialize Python from *preconfig* preconfiguration and command line
321 PyPreConfig preconfig;
[all …]
/third_party/python/Modules/
Dmain.c43 PyPreConfig preconfig; in pymain_init() local
44 PyPreConfig_InitPythonConfig(&preconfig); in pymain_init()
46 status = _Py_PreInitializeFromPyArgv(&preconfig, args); in pymain_init()
/third_party/python/Tools/c-analyzer/
Dknown.tsv980 Python/preconfig.c - Py_FileSystemDefaultEncodeErrors variable const char *Py_FileSystemDefaultEnco…
981 Python/preconfig.c - Py_FileSystemDefaultEncoding variable const char * Py_FileSystemDefaultEncoding
1002 Python/preconfig.c - _Py_HasFileSystemDefaultEncodeErrors variable const(int) _Py_HasFileSystemDefa…
1003 Python/preconfig.c - Py_HasFileSystemDefaultEncoding variable const(int) Py_HasFileSystemDefaultEnc…
/third_party/python/
DMakefile.pre.in371 Python/preconfig.o \
/third_party/python/Doc/whatsnew/
D3.8.rst335 This PEP also adds ``_PyRuntimeState.preconfig`` (:c:type:`PyPreConfig` type)
/third_party/NuttX/
DReleaseNotes9430 file. A new apps/ make target call preconfig: was added to support
11381 make.defs, Add empty preconfig rules to 'leaf' makefiles, Use