Home
last modified time | relevance | path

Searched refs:Py_ARRAY_LENGTH (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython3/PC/
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()
Dgetpathp.c384 keyBufPtr += Py_ARRAY_LENGTH(keyPrefix) - 1; in getpythonregpath()
/external/python/cpython3/Programs/
D_testembed.c288 Py_Main(Py_ARRAY_LENGTH(argv), argv); in test_initialize_pymain()
474 config.argc = Py_ARRAY_LENGTH(argv); in test_init_from_config()
484 config.nxoption = Py_ARRAY_LENGTH(xoptions); in test_init_from_config()
491 config.nwarnoption = Py_ARRAY_LENGTH(warnoptions); in test_init_from_config()
/external/python/cpython3/Include/
Dpymacro.h59 #define Py_ARRAY_LENGTH(array) \ macro
64 #define Py_ARRAY_LENGTH(array) \ macro
/external/python/cpython3/Python/
Dpathconfig.c308 _Py_wgetcwd(fullpath, Py_ARRAY_LENGTH(fullpath)); in _PyPathConfig_ComputeArgv0()
352 Py_ARRAY_LENGTH(fullpath), in _PyPathConfig_ComputeArgv0()
372 if (_Py_wrealpath(argv0, fullpath, Py_ARRAY_LENGTH(fullpath))) { in _PyPathConfig_ComputeArgv0()
Dfileutils.c1323 wmode, Py_ARRAY_LENGTH(wmode)); in _Py_fopen_obj()
1556 res = (int)readlink(cpath, cbuf, Py_ARRAY_LENGTH(cbuf)); in _Py_wreadlink()
1560 if (res == Py_ARRAY_LENGTH(cbuf)) { in _Py_wreadlink()
1637 if (getcwd(fname, Py_ARRAY_LENGTH(fname)) == NULL) in _Py_wgetcwd()
Ddynload_aix.c139 for (j=0; j < Py_ARRAY_LENGTH(load_errtab); j++) { in aix_loaderror()
Dtraceback.c628 end = &buffer[Py_ARRAY_LENGTH(buffer) - 1]; in _Py_DumpDecimal()
650 const Py_ssize_t size = Py_ARRAY_LENGTH(buffer) - 1; in _Py_DumpHexadecimal()
Dcodecs.c1511 for (i = 0; i < Py_ARRAY_LENGTH(methods); ++i) { in _PyCodecRegistry_Init()
Dpylifecycle.c2075 size_t buflen = Py_ARRAY_LENGTH(buffer) - 1; in fatal_output_debug()
Dbltinmodule.c1299 if (niters <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in map_next()
/external/python/cpython3/Modules/
D_randommodule.c211 init_by_array(self, key, Py_ARRAY_LENGTH(key)); in random_seed_urandom()
231 init_by_array(self, key, Py_ARRAY_LENGTH(key)); in random_seed_time_pid()
Dossaudiodev.c1065 num_controls = Py_ARRAY_LENGTH(control_labels); in build_namelists()
1066 assert(num_controls == Py_ARRAY_LENGTH(control_names)); in build_namelists()
Daudioop.c1665 (size_t)index >= Py_ARRAY_LENGTH(stepsizeTable)) { in audioop_lin2adpcm_impl()
1795 (size_t)index >= Py_ARRAY_LENGTH(stepsizeTable)) { in audioop_adpcm2lin_impl()
Dposixmodule.c1530 result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(path_buf), new_path); in win32_wchdir()
1533 if (result > Py_ARRAY_LENGTH(path_buf)) { in win32_wchdir()
3276 len = GetCurrentDirectoryW(Py_ARRAY_LENGTH(wbuf), wbuf); in posix_getcwd()
3280 if (len >= Py_ARRAY_LENGTH(wbuf)) { in posix_getcwd()
3465 Py_ssize_t len = Py_ARRAY_LENGTH(namebuf)-4; in _listdir_windows_no_opendir()
3715 Py_ARRAY_LENGTH(woutbuf), in os__getfullpathname_impl()
3717 if (result > Py_ARRAY_LENGTH(woutbuf)) { in os__getfullpathname_impl()
3750 int buf_size = Py_ARRAY_LENGTH(buf); in os__getfinalpathname_impl()
6500 DWORD num_chars = Py_ARRAY_LENGTH(user_name); in os_getlogin_impl()
Dunicodedata.c434 assert(prefix_index < Py_ARRAY_LENGTH(decomp_prefix)); in unicodedata_UCD_decomposition_impl()
Dfaulthandler.c124 Py_ARRAY_LENGTH(faulthandler_handlers);
D_datetimemodule.c4112 for (given_spec = 0; given_spec < Py_ARRAY_LENGTH(specs); given_spec++) { in time_isoformat()
4123 if (given_spec == Py_ARRAY_LENGTH(specs)) { in time_isoformat()
5343 for (given_spec = 0; given_spec < Py_ARRAY_LENGTH(specs); given_spec++) { in datetime_isoformat()
5353 if (given_spec == Py_ARRAY_LENGTH(specs)) { in datetime_isoformat()
D_functoolsmodule.c148 if (nargs2 <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in partial_fastcall()
Dmathmodule.c1694 if (x < (long)Py_ARRAY_LENGTH(SmallFactorials)) in math_factorial()
D_sre.c1263 for (i = 0; i < Py_ARRAY_LENGTH(flag_names); i++) { in pattern_repr()
Darraymodule.c3027 char buffer[Py_ARRAY_LENGTH(descriptors)], *p; in array_modexec()
Dsocketmodule.c5149 DWORD size = Py_ARRAY_LENGTH(buf);
7967 for(i = 0; i<Py_ARRAY_LENGTH(codes); ++i) {
/external/python/cpython3/Objects/
Dcall.c849 if (nargs <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in _PyObject_FastCall_Prepend()
887 if (argcount + 1 <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in _PyObject_Call_Prepend()
921 const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack); in _PyObject_CallFunctionVa()
1182 if (nargs <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack)) { in object_vacall()
Dunicodeobject.c7216 if (size > PY_SSIZE_T_MAX / (Py_ssize_t)Py_ARRAY_LENGTH(buffer)) { in decode_code_page_errors()
7221 *v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer)); in decode_code_page_errors()
7229 if (size > (PY_SSIZE_T_MAX - n) / (Py_ssize_t)Py_ARRAY_LENGTH(buffer)) { in decode_code_page_errors()
7233 if (unicode_resize(v, n + size * Py_ARRAY_LENGTH(buffer)) < 0) in decode_code_page_errors()
7247 buffer, Py_ARRAY_LENGTH(buffer)); in decode_code_page_errors()
7568 if (Py_ARRAY_LENGTH(buffer) > PY_SSIZE_T_MAX / insize) { in encode_code_page_errors()
7572 outsize = insize * Py_ARRAY_LENGTH(buffer); in encode_code_page_errors()
7611 buffer, Py_ARRAY_LENGTH(buffer), in encode_code_page_errors()
15212 Py_ARRAY_LENGTH(linebreak)); in _PyUnicode_Init()

12