Lines Matching refs:cmdline

116 _PyPreCmdline_Clear(_PyPreCmdline *cmdline)  in _PyPreCmdline_Clear()  argument
118 _PyWideStringList_Clear(&cmdline->argv); in _PyPreCmdline_Clear()
119 _PyWideStringList_Clear(&cmdline->xoptions); in _PyPreCmdline_Clear()
124 _PyPreCmdline_SetArgv(_PyPreCmdline *cmdline, const _PyArgv *args) in _PyPreCmdline_SetArgv() argument
126 return _PyArgv_AsWstrList(args, &cmdline->argv); in _PyPreCmdline_SetArgv()
131 precmdline_get_preconfig(_PyPreCmdline *cmdline, const PyPreConfig *config) in precmdline_get_preconfig() argument
135 cmdline->ATTR = config->ATTR; \ in precmdline_get_preconfig()
147 precmdline_set_preconfig(const _PyPreCmdline *cmdline, PyPreConfig *config) in precmdline_set_preconfig() argument
150 config->ATTR = cmdline->ATTR in precmdline_set_preconfig()
161 _PyPreCmdline_SetConfig(const _PyPreCmdline *cmdline, PyConfig *config) in _PyPreCmdline_SetConfig() argument
164 config->ATTR = cmdline->ATTR in _PyPreCmdline_SetConfig()
166 PyStatus status = _PyWideStringList_Extend(&config->xoptions, &cmdline->xoptions); in _PyPreCmdline_SetConfig()
182 precmdline_parse_cmdline(_PyPreCmdline *cmdline) in precmdline_parse_cmdline() argument
184 const PyWideStringList *argv = &cmdline->argv; in precmdline_parse_cmdline()
200 cmdline->use_environment = 0; in precmdline_parse_cmdline()
204 cmdline->isolated = 1; in precmdline_parse_cmdline()
209 PyStatus status = PyWideStringList_Append(&cmdline->xoptions, in precmdline_parse_cmdline()
229 _PyPreCmdline_Read(_PyPreCmdline *cmdline, const PyPreConfig *preconfig) in _PyPreCmdline_Read() argument
231 precmdline_get_preconfig(cmdline, preconfig); in _PyPreCmdline_Read()
234 PyStatus status = precmdline_parse_cmdline(cmdline); in _PyPreCmdline_Read()
241 if (cmdline->isolated < 0) { in _PyPreCmdline_Read()
242 cmdline->isolated = 0; in _PyPreCmdline_Read()
244 if (cmdline->isolated > 0) { in _PyPreCmdline_Read()
245 cmdline->use_environment = 0; in _PyPreCmdline_Read()
247 if (cmdline->use_environment < 0) { in _PyPreCmdline_Read()
248 cmdline->use_environment = 0; in _PyPreCmdline_Read()
252 if ((cmdline->dev_mode < 0) in _PyPreCmdline_Read()
253 && (_Py_get_xoption(&cmdline->xoptions, L"dev") in _PyPreCmdline_Read()
254 || _Py_GetEnv(cmdline->use_environment, "PYTHONDEVMODE"))) in _PyPreCmdline_Read()
256 cmdline->dev_mode = 1; in _PyPreCmdline_Read()
258 if (cmdline->dev_mode < 0) { in _PyPreCmdline_Read()
259 cmdline->dev_mode = 0; in _PyPreCmdline_Read()
262 assert(cmdline->use_environment >= 0); in _PyPreCmdline_Read()
263 assert(cmdline->isolated >= 0); in _PyPreCmdline_Read()
264 assert(cmdline->dev_mode >= 0); in _PyPreCmdline_Read()
587 preconfig_init_utf8_mode(PyPreConfig *config, const _PyPreCmdline *cmdline) in preconfig_init_utf8_mode() argument
600 xopt = _Py_get_xoption(&cmdline->xoptions, L"utf8"); in preconfig_init_utf8_mode()
730 preconfig_read(PyPreConfig *config, _PyPreCmdline *cmdline) in preconfig_read() argument
734 status = _PyPreCmdline_Read(cmdline, config); in preconfig_read()
739 precmdline_set_preconfig(cmdline, config); in preconfig_read()
750 status = preconfig_init_utf8_mode(config, cmdline); in preconfig_read()
816 _PyPreCmdline cmdline = _PyPreCmdline_INIT; in _PyPreConfig_Read() local
823 status = _PyPreCmdline_SetArgv(&cmdline, args); in _PyPreConfig_Read()
850 status = preconfig_read(config, &cmdline); in _PyPreConfig_Read()
910 _PyPreCmdline_Clear(&cmdline); in _PyPreConfig_Read()