Home
last modified time | relevance | path

Searched refs:Py_ARRAY_LENGTH (Results 1 - 25 of 41) sorted by relevance

12

/third_party/python/Programs/
H A D_testembed.c422 Py_Main(Py_ARRAY_LENGTH(argv), argv); in test_initialize_pymain()
622 config_set_argv(&config, Py_ARRAY_LENGTH(argv), argv); in test_init_from_config()
631 Py_ARRAY_LENGTH(xoptions), xoptions); in test_init_from_config()
637 Py_ARRAY_LENGTH(warnoptions), warnoptions); in test_init_from_config()
733 config_set_argv(&config, Py_ARRAY_LENGTH(argv), argv); in check_init_parse_argv()
942 Py_ARRAY_LENGTH(argv), argv); in test_preinit_dont_parse_argv()
954 config_set_argv(&config, Py_ARRAY_LENGTH(argv), argv); in test_preinit_dont_parse_argv()
972 config_set_argv(&config, Py_ARRAY_LENGTH(argv), argv); in test_preinit_parse_argv()
1348 return Py_Main(Py_ARRAY_LENGTH(argv), argv); in test_audit_run_command()
1359 return Py_Main(Py_ARRAY_LENGTH(arg in test_audit_run_file()
[all...]
/third_party/python/PC/
H A Dfrozen_dllmain.c80 for (modName = possibleModules+Py_ARRAY_LENGTH(possibleModules)-2; in PyWinFreeze_ExeTerm()
106 for (modName = possibleModules+Py_ARRAY_LENGTH(possibleModules)-2; in DllMain()
H A D_msi.c363 DWORD size = Py_ARRAY_LENGTH(buf); in msierror()
487 DWORD size = Py_ARRAY_LENGTH(buf); in _msi_Record_GetString_impl()
/third_party/python/Include/
H A Dpymacro.h81 #define Py_ARRAY_LENGTH(array) \ macro
86 #define Py_ARRAY_LENGTH(array) \ macro
/third_party/python/Include/internal/
H A Dpycore_blocks_output_buffer.h204 if (list_len < (Py_ssize_t) Py_ARRAY_LENGTH(BUFFER_BLOCK_SIZE)) { in _BlocksOutputBuffer_Grow()
207 block_size = BUFFER_BLOCK_SIZE[Py_ARRAY_LENGTH(BUFFER_BLOCK_SIZE) - 1]; in _BlocksOutputBuffer_Grow()
/third_party/python/Python/
H A Dpathconfig.c418 if (!_Py_wgetcwd(fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0()
434 nr = _Py_wreadlink(path0, link, Py_ARRAY_LENGTH(link)); in _PyPathConfig_ComputeSysPath0()
474 Py_ARRAY_LENGTH(fullpath), in _PyPathConfig_ComputeSysPath0()
495 if (_Py_wrealpath(path0, fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeSysPath0()
H A Dfileutils.c901 swprintf(encoding, Py_ARRAY_LENGTH(encoding), L"cp%u", ansi_codepage); in _Py_GetLocaleEncoding()
902 encoding[Py_ARRAY_LENGTH(encoding) - 1] = 0; in _Py_GetLocaleEncoding()
1675 wmode, Py_ARRAY_LENGTH(wmode)); in _Py_fopen_obj()
1922 size_t cbuf_len = Py_ARRAY_LENGTH(cbuf); in _Py_wreadlink()
2037 cwd[Py_ARRAY_LENGTH(cwd) - 1] = 0; in _Py_abspath()
2038 if (!_Py_wgetcwd(cwd, Py_ARRAY_LENGTH(cwd) - 1)) { in _Py_abspath()
2055 cwd[Py_ARRAY_LENGTH(cwd) - 1] = 0; in _Py_abspath()
2056 if (!_Py_wgetcwd(cwd, Py_ARRAY_LENGTH(cwd) - 1)) { in _Py_abspath()
2337 if (getcwd(fname, Py_ARRAY_LENGTH(fname)) == NULL) in _Py_wgetcwd()
H A Dtraceback.c1050 end = &buffer[Py_ARRAY_LENGTH(buffer) - 1]; in _Py_DumpDecimal()
1069 const Py_ssize_t size = Py_ARRAY_LENGTH(buffer) - 1; in _Py_DumpHexadecimal()
H A Dcodecs.c1516 for (size_t i = 0; i < Py_ARRAY_LENGTH(methods); ++i) { in _PyCodecRegistry_Init()
/third_party/python/Modules/_io/
H A D_iomodule.c675 for (Py_ssize_t i=Py_ARRAY_LENGTH(static_types) - 1; i >= 0; i--) { in _PyIO_Fini()
727 for (size_t i=0; i < Py_ARRAY_LENGTH(static_types); i++) { in PyInit__io()
/third_party/python/Modules/
H A D_randommodule.c247 init_by_array(self, key, Py_ARRAY_LENGTH(key)); in random_seed_urandom()
271 init_by_array(self, key, Py_ARRAY_LENGTH(key)); in random_seed_time_pid()
H A D_stat.c570 for (int i = 0; i < (int)Py_ARRAY_LENGTH(st_constants); i++) { in stat_exec()
H A Dossaudiodev.c1069 num_controls = Py_ARRAY_LENGTH(control_labels); in build_namelists()
1070 assert(num_controls == Py_ARRAY_LENGTH(control_names)); in build_namelists()
H A Dmathmodule.c2129 if (x < (long)Py_ARRAY_LENGTH(SmallFactorials)) in math_factorial()
3402 if (k < Py_ARRAY_LENGTH(fast_comb_limits1) && n <= fast_comb_limits1[k]) { in perm_comb_small()
3429 if (k < Py_ARRAY_LENGTH(fast_comb_limits2) && n <= fast_comb_limits2[k]) { in perm_comb_small()
3447 if (k < Py_ARRAY_LENGTH(fast_perm_limits) && n <= fast_perm_limits[k]) { in perm_comb_small()
H A Daudioop.c1699 (size_t)index >= Py_ARRAY_LENGTH(stepsizeTable)) { in audioop_lin2adpcm_impl()
1829 (size_t)index >= Py_ARRAY_LENGTH(stepsizeTable)) { in audioop_adpcm2lin_impl()
H A Dposixmodule.c1803 result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(path_buf), new_path); in win32_wchdir()
1806 if (result > Py_ARRAY_LENGTH(path_buf)) { in win32_wchdir()
3796 len = GetCurrentDirectoryW(Py_ARRAY_LENGTH(wbuf), wbuf); in posix_getcwd()
3800 if (len >= Py_ARRAY_LENGTH(wbuf)) { in posix_getcwd()
4045 Py_ssize_t len = Py_ARRAY_LENGTH(namebuf)-4; in _listdir_windows_no_opendir()
4293 Py_ARRAY_LENGTH(woutbuf), woutbuf, in _PyOS_getfullpathname()
4299 if (result >= Py_ARRAY_LENGTH(woutbuf)) { in _PyOS_getfullpathname()
4377 int buf_size = Py_ARRAY_LENGTH(buf); in os__getfinalpathname_impl()
7997 DWORD num_chars = Py_ARRAY_LENGTH(user_name); in os_getlogin_impl()
H A Dfaulthandler.c135 Py_ARRAY_LENGTH(faulthandler_handlers);
H A Dgetpath.c442 int linklen = _Py_wreadlink(path, resolved, Py_ARRAY_LENGTH(resolved));
H A D_datetimemodule.c4397 for (given_spec = 0; given_spec < Py_ARRAY_LENGTH(specs); given_spec++) { in time_isoformat()
4408 if (given_spec == Py_ARRAY_LENGTH(specs)) { in time_isoformat()
5777 for (given_spec = 0; given_spec < Py_ARRAY_LENGTH(specs); given_spec++) { in datetime_isoformat()
5787 if (given_spec == Py_ARRAY_LENGTH(specs)) { in datetime_isoformat()
6738 for (size_t i = 0; i < Py_ARRAY_LENGTH(types); i++) { in _datetime_exec()
H A Dpyexpat.c1230 assert((hi - handler_info) < (Py_ssize_t)Py_ARRAY_LENGTH(handler_info)); in xmlparse_handler_getter()
1242 assert((hi - handler_info) < (Py_ssize_t)Py_ARRAY_LENGTH(handler_info)); in xmlparse_handler_setter()
H A D_functoolsmodule.c245 if (newnargs_total <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in partial_vectorcall()
/third_party/python/Objects/
H A Dcall.c465 if (argcount + 1 <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in _PyObject_Call_Prepend()
499 const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack); in _PyObject_CallFunctionVa()
798 if (nargs <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in object_vacall()
H A Dclassobject.c72 if (totalargs <= (Py_ssize_t)Py_ARRAY_LENGTH(newargs_stack) - 1) { in method_vectorcall()
H A Dobject.c1984 for (size_t i=0; i < Py_ARRAY_LENGTH(static_types); i++) { in _PyTypes_InitTypes()
2015 for (Py_ssize_t i=Py_ARRAY_LENGTH(static_types)-1; i>=0; i--) { in _PyTypes_FiniTypes()
H A Dexceptions.c3599 for (size_t i=0; i < Py_ARRAY_LENGTH(static_exceptions); i++) { in _PyExc_InitTypes()
3617 for (Py_ssize_t i=Py_ARRAY_LENGTH(static_exceptions) - 1; i >= 0; i--) { in _PyExc_FiniTypes()
3702 for (size_t i=0; i < Py_ARRAY_LENGTH(static_exceptions); i++) { in _PyBuiltins_AddExceptions()

Completed in 62 milliseconds

12