• Home
  • Raw
  • Download

Lines Matching refs:cmdline

115 _PyPreCmdline_Clear(_PyPreCmdline *cmdline)  in _PyPreCmdline_Clear()  argument
117 _PyWideStringList_Clear(&cmdline->argv); in _PyPreCmdline_Clear()
118 _PyWideStringList_Clear(&cmdline->xoptions); in _PyPreCmdline_Clear()
123 _PyPreCmdline_SetArgv(_PyPreCmdline *cmdline, const _PyArgv *args) in _PyPreCmdline_SetArgv() argument
125 return _PyArgv_AsWstrList(args, &cmdline->argv); in _PyPreCmdline_SetArgv()
130 precmdline_get_preconfig(_PyPreCmdline *cmdline, const PyPreConfig *config) in precmdline_get_preconfig() argument
134 cmdline->ATTR = config->ATTR; \ in precmdline_get_preconfig()
146 precmdline_set_preconfig(const _PyPreCmdline *cmdline, PyPreConfig *config) in precmdline_set_preconfig() argument
149 config->ATTR = cmdline->ATTR in precmdline_set_preconfig()
160 _PyPreCmdline_SetConfig(const _PyPreCmdline *cmdline, PyConfig *config) in _PyPreCmdline_SetConfig() argument
163 config->ATTR = cmdline->ATTR in _PyPreCmdline_SetConfig()
165 PyStatus status = _PyWideStringList_Extend(&config->xoptions, &cmdline->xoptions); in _PyPreCmdline_SetConfig()
181 precmdline_parse_cmdline(_PyPreCmdline *cmdline) in precmdline_parse_cmdline() argument
183 const PyWideStringList *argv = &cmdline->argv; in precmdline_parse_cmdline()
199 cmdline->use_environment = 0; in precmdline_parse_cmdline()
203 cmdline->isolated = 1; in precmdline_parse_cmdline()
208 PyStatus status = PyWideStringList_Append(&cmdline->xoptions, in precmdline_parse_cmdline()
228 _PyPreCmdline_Read(_PyPreCmdline *cmdline, const PyPreConfig *preconfig) in _PyPreCmdline_Read() argument
230 precmdline_get_preconfig(cmdline, preconfig); in _PyPreCmdline_Read()
233 PyStatus status = precmdline_parse_cmdline(cmdline); in _PyPreCmdline_Read()
240 if (cmdline->isolated < 0) { in _PyPreCmdline_Read()
241 cmdline->isolated = 0; in _PyPreCmdline_Read()
243 if (cmdline->isolated > 0) { in _PyPreCmdline_Read()
244 cmdline->use_environment = 0; in _PyPreCmdline_Read()
246 if (cmdline->use_environment < 0) { in _PyPreCmdline_Read()
247 cmdline->use_environment = 0; in _PyPreCmdline_Read()
251 if ((cmdline->dev_mode < 0) in _PyPreCmdline_Read()
252 && (_Py_get_xoption(&cmdline->xoptions, L"dev") in _PyPreCmdline_Read()
253 || _Py_GetEnv(cmdline->use_environment, "PYTHONDEVMODE"))) in _PyPreCmdline_Read()
255 cmdline->dev_mode = 1; in _PyPreCmdline_Read()
257 if (cmdline->dev_mode < 0) { in _PyPreCmdline_Read()
258 cmdline->dev_mode = 0; in _PyPreCmdline_Read()
261 assert(cmdline->use_environment >= 0); in _PyPreCmdline_Read()
262 assert(cmdline->isolated >= 0); in _PyPreCmdline_Read()
263 assert(cmdline->dev_mode >= 0); in _PyPreCmdline_Read()
586 preconfig_init_utf8_mode(PyPreConfig *config, const _PyPreCmdline *cmdline) in preconfig_init_utf8_mode() argument
599 xopt = _Py_get_xoption(&cmdline->xoptions, L"utf8"); in preconfig_init_utf8_mode()
729 preconfig_read(PyPreConfig *config, _PyPreCmdline *cmdline) in preconfig_read() argument
733 status = _PyPreCmdline_Read(cmdline, config); in preconfig_read()
738 precmdline_set_preconfig(cmdline, config); in preconfig_read()
749 status = preconfig_init_utf8_mode(config, cmdline); in preconfig_read()
815 _PyPreCmdline cmdline = _PyPreCmdline_INIT; in _PyPreConfig_Read() local
822 status = _PyPreCmdline_SetArgv(&cmdline, args); in _PyPreConfig_Read()
849 status = preconfig_read(config, &cmdline); in _PyPreConfig_Read()
909 _PyPreCmdline_Clear(&cmdline); in _PyPreConfig_Read()