Home
last modified time | relevance | path

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

/third_party/python/Programs/
D_testembed.c400 PyPreConfig preconfig; in check_init_compat_config() local
401 _PyPreConfig_InitCompatConfig(&preconfig); in check_init_compat_config()
403 status = Py_PreInitialize(&preconfig); in check_init_compat_config()
484 PyPreConfig preconfig; in test_init_from_config() local
485 _PyPreConfig_InitCompatConfig(&preconfig); in test_init_from_config()
488 preconfig.allocator = PYMEM_ALLOCATOR_MALLOC; in test_init_from_config()
492 preconfig.utf8_mode = 1; in test_init_from_config()
494 PyStatus status = Py_PreInitialize(&preconfig); in test_init_from_config()
786 PyPreConfig preconfig; in test_preinit_isolated1() local
787 _PyPreConfig_InitCompatConfig(&preconfig); in test_preinit_isolated1()
[all …]
/third_party/python/Include/internal/
Dpycore_initconfig.h122 const PyPreConfig *preconfig);
127 PyAPI_FUNC(void) _PyPreConfig_InitCompatConfig(PyPreConfig *preconfig);
129 PyPreConfig *preconfig,
132 PyPreConfig *preconfig,
134 extern PyObject* _PyPreConfig_AsDict(const PyPreConfig *preconfig);
135 extern void _PyPreConfig_GetConfig(PyPreConfig *preconfig,
137 extern PyStatus _PyPreConfig_Read(PyPreConfig *preconfig,
139 extern PyStatus _PyPreConfig_Write(const PyPreConfig *preconfig);
Dpycore_runtime.h110 PyPreConfig preconfig; member
/third_party/python/Lib/test/
Dtest_embed.py775 preconfig = {
794 self.check_all_configs("test_init_global_config", config, preconfig,
798 preconfig = {
856 self.check_all_configs("test_init_from_config", config, preconfig,
860 preconfig = {
884 self.check_all_configs("test_init_compat_env", config, preconfig,
888 preconfig = {
913 self.check_all_configs("test_init_python_env", config, preconfig,
917 preconfig = dict(allocator=PYMEM_ALLOCATOR_DEBUG)
921 self.check_all_configs("test_init_env_dev_mode", config, preconfig,
[all …]
/third_party/python/Python/
Dpreconfig.c228 _PyPreCmdline_Read(_PyPreCmdline *cmdline, const PyPreConfig *preconfig) in _PyPreCmdline_Read() argument
230 precmdline_get_preconfig(cmdline, preconfig); in _PyPreCmdline_Read()
232 if (preconfig->parse_argv) { in _PyPreCmdline_Read()
367 _PyPreConfig_InitFromConfig(PyPreConfig *preconfig, const PyConfig *config) in _PyPreConfig_InitFromConfig() argument
372 PyPreConfig_InitPythonConfig(preconfig); in _PyPreConfig_InitFromConfig()
375 PyPreConfig_InitIsolatedConfig(preconfig); in _PyPreConfig_InitFromConfig()
379 _PyPreConfig_InitCompatConfig(preconfig); in _PyPreConfig_InitFromConfig()
382 _PyPreConfig_GetConfig(preconfig, config); in _PyPreConfig_InitFromConfig()
456 _PyPreConfig_GetConfig(PyPreConfig *preconfig, const PyConfig *config) in _PyPreConfig_GetConfig() argument
460 preconfig->ATTR = config->ATTR; \ in _PyPreConfig_GetConfig()
[all …]
Dinitconfig.c1824 config_get_stdio_errors(const PyPreConfig *preconfig) in config_get_stdio_errors() argument
1826 if (preconfig->utf8_mode) { in config_get_stdio_errors()
1857 config_get_locale_encoding(PyConfig *config, const PyPreConfig *preconfig, in config_get_locale_encoding() argument
1872 const PyPreConfig *preconfig) in config_init_stdio_encoding() argument
1954 status = config_get_locale_encoding(config, preconfig, in config_init_stdio_encoding()
1961 const wchar_t *errors = config_get_stdio_errors(preconfig); in config_init_stdio_encoding()
1976 config_get_fs_encoding(PyConfig *config, const PyPreConfig *preconfig, in config_get_fs_encoding() argument
1983 if (preconfig->legacy_windows_fs_encoding) { in config_get_fs_encoding()
1993 if (preconfig->utf8_mode) { in config_get_fs_encoding()
2001 return config_get_locale_encoding(config, preconfig, fs_encoding); in config_get_fs_encoding()
[all …]
Dpylifecycle.c273 const PyPreConfig *preconfig = &runtime->preconfig; in emit_stderr_warning_for_legacy_locale() local
274 if (preconfig->coerce_c_locale_warn && _Py_LegacyLocaleDetected(1)) { in emit_stderr_warning_for_legacy_locale()
964 PyPreConfig preconfig; in _Py_PreInitializeFromConfig() local
966 _PyPreConfig_InitFromConfig(&preconfig, config); in _Py_PreInitializeFromConfig()
969 return Py_PreInitialize(&preconfig); in _Py_PreInitializeFromConfig()
976 return _Py_PreInitializeFromPyArgv(&preconfig, &config_args); in _Py_PreInitializeFromConfig()
979 return _Py_PreInitializeFromPyArgv(&preconfig, args); in _Py_PreInitializeFromConfig()
Dfileutils.c891 const PyPreConfig *preconfig = &_PyRuntime.preconfig; in _Py_GetLocaleEncoding()
892 if (preconfig->utf8_mode) { in _Py_GetLocaleEncoding()
Dsysmodule.c2532 const PyPreConfig *preconfig = &interp->runtime->preconfig; in set_flags_from_config() local
2564 SetFlag(preconfig->utf8_mode); in set_flags_from_config()
Dpystate.c69 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/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/Doc/c-api/
Dinit_config.rst215 .. c:function:: void PyPreConfig_InitPythonConfig(PyPreConfig *preconfig)
220 .. c:function:: void PyPreConfig_InitIsolatedConfig(PyPreConfig *preconfig)
351 ``_PyRuntime.preconfig``.
355 .. c:function:: PyStatus Py_PreInitialize(const PyPreConfig *preconfig)
357 Preinitialize Python from *preconfig* preconfiguration.
359 *preconfig* must not be ``NULL``.
361 .. c:function:: PyStatus Py_PreInitializeFromBytesArgs(const PyPreConfig *preconfig, int argc, char…
363 Preinitialize Python from *preconfig* preconfiguration.
366 :c:member:`~PyPreConfig.parse_argv` of *preconfig* is non-zero.
368 *preconfig* must not be ``NULL``.
[all …]
/third_party/python/
DMakefile.pre.in369 Python/preconfig.o \
/third_party/python/Doc/whatsnew/
D3.8.rst335 This PEP also adds ``_PyRuntimeState.preconfig`` (:c:type:`PyPreConfig` type)
/third_party/NuttX/
DReleaseNotes9432 file. A new apps/ make target call preconfig: was added to support
11383 make.defs, Add empty preconfig rules to 'leaf' makefiles, Use