Lines Matching refs:result

319     char *result = NULL, *out;
332 result = PyMem_RawMalloc(len + 1);
335 result = PyMem_Malloc(len + 1);
337 if (result == NULL) {
341 out = result;
355 PyMem_RawFree(result);
358 PyMem_Free(result);
370 *str = result;
462 * would result from conversion. Use an upper bound.
674 char *result = NULL, *bytes = NULL;
725 if (result != NULL) {
732 result = PyMem_RawMalloc(size);
735 result = PyMem_Malloc(size);
737 if (result == NULL) {
740 bytes = result;
742 *str = result;
747 PyMem_RawFree(result);
750 PyMem_Free(result);
859 /* Similar to Py_EncodeLocale(), but result must be freed by PyMem_RawFree()
1026 wchar_t* result = _Py_ConvertWCharForm(unicode, size, "wchar_t", "UCS-4-INTERNAL");
1027 if (!result) {
1030 memcpy(unicode, result, size * sizeof(wchar_t));
1031 PyMem_Free(result);
1082 struct _Py_stat_struct *result)
1084 memset(result, 0, sizeof(*result));
1085 result->st_mode = attributes_to_mode(info->dwFileAttributes);
1086 result->st_size = (((__int64)info->nFileSizeHigh)<<32) + info->nFileSizeLow;
1087 result->st_dev = info->dwVolumeSerialNumber;
1088 result->st_rdev = result->st_dev;
1089 FILE_TIME_to_time_t_nsec(&info->ftCreationTime, &result->st_ctime, &result->st_ctime_nsec);
1090 FILE_TIME_to_time_t_nsec(&info->ftLastWriteTime, &result->st_mtime, &result->st_mtime_nsec);
1091 FILE_TIME_to_time_t_nsec(&info->ftLastAccessTime, &result->st_atime, &result->st_atime_nsec);
1092 result->st_nlink = info->nNumberOfLinks;
1093 result->st_ino = (((uint64_t)info->nFileIndexHigh) << 32) + info->nFileIndexLow;
1097 result->st_reparse_tag = reparse_tag;
1101 result->st_mode ^= (result->st_mode & S_IFMT);
1103 result->st_mode |= S_IFLNK;
1105 result->st_file_attributes = info->dwFileAttributes;
1913 the result from the locale encoding.
1962 encoding, decode the result from the locale encoding.
2129 for calling PyMem_RawFree() on the result. */