Home
last modified time | relevance | path

Searched refs:_PyOS_optarg (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Python/
Dgetopt.c42 wchar_t *_PyOS_optarg = NULL; /* optional argument */ variable
50 _PyOS_optarg = NULL; in _PyOS_ResetGetOpt()
121 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()
139 _PyOS_optarg = opt_ptr; in _PyOS_GetOpt()
151 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()
/external/python/cpython2/Python/
Dgetopt.c39 char *_PyOS_optarg = NULL; /* optional argument */ variable
46 _PyOS_optarg = NULL; in _PyOS_ResetGetOpt()
114 _PyOS_optarg = opt_ptr; in _PyOS_GetOpt()
126 _PyOS_optarg = argv[_PyOS_optind++]; in _PyOS_GetOpt()
/external/python/cpython2/Modules/
Dmain.c304 command = (char *)malloc(strlen(_PyOS_optarg) + 2); in Py_Main()
308 strcpy(command, _PyOS_optarg); in Py_Main()
317 module = (char *)malloc(strlen(_PyOS_optarg) + 2); in Py_Main()
321 strcpy(module, _PyOS_optarg); in Py_Main()
341 if (strcmp(_PyOS_optarg, "old") == 0) { in Py_Main()
345 if (strcmp(_PyOS_optarg, "warn") == 0) { in Py_Main()
349 if (strcmp(_PyOS_optarg, "warnall") == 0) { in Py_Main()
353 if (strcmp(_PyOS_optarg, "new") == 0) { in Py_Main()
431 PySys_AddWarnOption(_PyOS_optarg); in Py_Main()
/external/python/cpython2/Include/
Dpygetopt.h10 PyAPI_DATA(char *) _PyOS_optarg;
/external/python/cpython3/Include/internal/
Dpygetopt.h6 extern wchar_t *_PyOS_optarg;
/external/python/cpython3/Modules/
Dmain.c754 size_t len = wcslen(_PyOS_optarg) + 1 + 1; in pymain_parse_cmdline_impl()
760 memcpy(command, _PyOS_optarg, (len - 2) * sizeof(wchar_t)); in pymain_parse_cmdline_impl()
771 pymain->module = pymain_wstrdup(pymain, _PyOS_optarg); in pymain_parse_cmdline_impl()
782 if (!wcscmp(_PyOS_optarg, L"always")) { in pymain_parse_cmdline_impl()
784 } else if (!wcscmp(_PyOS_optarg, L"never")) { in pymain_parse_cmdline_impl()
786 } else if (!wcscmp(_PyOS_optarg, L"default")) { in pymain_parse_cmdline_impl()
865 _PyOS_optarg) < 0) { in pymain_parse_cmdline_impl()
874 _PyOS_optarg) < 0) { in pymain_parse_cmdline_impl()
/external/python/cpython3/Tools/c-globals/
Dignored-globals.txt30 _PyOS_optarg
/external/python/cpython2/PC/os2emx/
Dpython27.def1154 "_PyOS_optarg"