Home | History | Annotate | Download | only in Python

Lines Matching defs:argsize

231     size_t argsize = strlen(arg) + 1;
233 if (argsize > PY_SSIZE_T_MAX/sizeof(wchar_t))
235 res = PyMem_RawMalloc(argsize*sizeof(wchar_t));
288 size_t argsize;
314 argsize = strlen(arg);
316 argsize = mbstowcs(NULL, arg, 0);
318 if (argsize != (size_t)-1) {
319 if (argsize == PY_SSIZE_T_MAX)
321 argsize += 1;
322 if (argsize > PY_SSIZE_T_MAX/sizeof(wchar_t))
324 res = (wchar_t *)PyMem_RawMalloc(argsize*sizeof(wchar_t));
327 count = mbstowcs(res, arg, argsize);
349 argsize = strlen(arg) + 1;
350 if (argsize > PY_SSIZE_T_MAX/sizeof(wchar_t))
352 res = (wchar_t*)PyMem_RawMalloc(argsize*sizeof(wchar_t));
358 while (argsize) {
359 size_t converted = mbrtowc(out, (char*)in, argsize, &mbs);
377 argsize--;
384 argsize -= converted;
391 argsize -= converted;