Lines Matching refs:ptr

386 ESR_ReturnCode PMemLogFree(void* ptr)
396 if (ptr == NULL || gNbInit == 0)
401 data = (MemoryData*)(((unsigned char*) ptr) - sizeof(MemoryData));
442 pfprintf(gFile, L("pmem|free|%s|%s|%d|0x%x|%s|\n"), e->tag, data->stackTrace, data->size, ptr, stackTrace);
444 pfprintf(gFile, L("pmem|free|%s|%d|0x%x\n"), e->tag, data->size, ptr);
723 The realloc() function changes the size of the memory object pointed to by ptr to the size specified by size. The contents of the object will remain unchanged up to the lesser of the new and old sizes. If the new size of the memory object would require movement of the object, the space for the previous instantiation of the object is freed. If the new size is larger, the contents of the newly allocated portion of the object are unspecified. If size is 0 and ptr is not a null pointer, the object pointed to is freed. If the space cannot be allocated, the object remains unchanged.
724 If ptr is a null pointer, realloc() behaves like malloc() for the specified size.
726 If ptr does not match a pointer returned earlier by calloc(), malloc() or realloc() or if the space has previously been deallocated by a call to free() or realloc(), the behaviour is undefined.
734 void *prealloc(void *ptr, size_t newSize, const LCHAR *file, int line)
736 void *prealloc(void *ptr, size_t newSize)
757 if (newSize == 0 && ptr != NULL)
760 pfree(ptr, file, line);
762 pfree(ptr);
766 else if (ptr == NULL)
777 oldData = (MemoryData *)(((unsigned char *) ptr) - sizeof(MemoryData));
869 pfprintf(gFile, L("pmem|%s|%d|realloc|%d|0x%x|%s|\n"), e->tag, oldSize, actualSize, ptr, stackTrace);
871 pfprintf(gFile, L("pmem|%s|%d|realloc|%d|0x%x|\n"), e->tag, oldSize, actualSize, ptr);
886 void pfree(void* ptr, const LCHAR* file, int line)
888 void pfree(void* ptr)
895 if (ptr == NULL || gNbInit == 0)
900 data = (MemoryData*)(((unsigned char*) ptr) - sizeof(MemoryData));
940 pfprintf(gFile, L("pmem|free|%s|%s|%d|0x%x|%s|\n"), e->tag, data->stackTrace, data->size, ptr, stackTrace);
942 pfprintf(gFile, L("pmem|free|%s|%d|0x%x\n"), e->tag, data->size, ptr);