]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/vld/src/vldheap.cpp
Add support for glue length in parskip (#12867)
[lyx.git] / development / Win32 / vld / src / vldheap.cpp
index cb2d13972c474c53a80239983d1ad2d02528d1e7..b6dff2eed34cf08da5a00e8aa48be5f6fb95359b 100644 (file)
@@ -1,5 +1,4 @@
 ////////////////////////////////////////////////////////////////////////////////
-//  $Id: vldheap.cpp,v 1.13 2006/11/18 03:12:35 dmouldin Exp $
 //
 //  Visual Leak Detector - Internal C++ Heap Management
 //  Copyright (c) 2006 Dan Moulding
@@ -35,7 +34,7 @@ CRITICAL_SECTION  vldheaplock;         // Serializes access to VLD's private hea
 
 // Local helper functions.
 static inline void vlddelete (void *block);
-static inline void* vldnew (unsigned int size, const char *file, int line);
+static inline void* vldnew (size_t size, const char *file, int line);
 
 // scalar delete operator - Delete operator used to free internally used memory
 //   back to VLD's private heap.
@@ -105,7 +104,7 @@ void operator delete [] (void *block, const char *, int)
 //    If the allocation succeeds, a pointer to the allocated memory block is
 //    returned. If the allocation fails, NULL is returned.
 //
-void* operator new (unsigned int size, const char *file, int line)
+void* operator new (size_t size, const char *file, int line)
 {
     return vldnew(size, file, line);
 }
@@ -126,7 +125,7 @@ void* operator new (unsigned int size, const char *file, int line)
 //    If the allocation succeeds, a pointer to the allocated memory block is
 //    returned. If the allocation fails, NULL is returned.
 //
-void* operator new [] (unsigned int size, const char *file, int line)
+void* operator new [] (size_t size, const char *file, int line)
 {
     return vldnew(size, file, line);
 }
@@ -182,7 +181,7 @@ void vlddelete (void *block)
 //    If the memory allocation succeeds, a pointer to the allocated memory
 //    block is returned. If the allocation fails, NULL is returned.
 //
-void* vldnew (unsigned int size, const char *file, int line)
+void* vldnew (size_t size, const char *file, int line)
 {
     vldblockheader_t *header = (vldblockheader_t*)RtlAllocateHeap(vldheap, 0x0, size + sizeof(vldblockheader_t));
     static SIZE_T     serialnumber = 0;
@@ -210,4 +209,4 @@ void* vldnew (unsigned int size, const char *file, int line)
 
     // Return a pointer to the beginning of the data section of the block.
     return (void*)VLDBLOCKDATA(header);
-}
\ No newline at end of file
+}