diff options
author | Max Horn | 2008-07-23 10:27:24 +0000 |
---|---|---|
committer | Max Horn | 2008-07-23 10:27:24 +0000 |
commit | bc2ec5afdeb9be3cc35b4e45f21d783c79cf6709 (patch) | |
tree | b5ba2678b87cccce2728fc67c6bc55fdc2ba1094 /engines/tinsel/heapmem.h | |
parent | d5e2c6d4bf32d066948df8a8a2bd4730e473a1cc (diff) | |
download | scummvm-rg350-bc2ec5afdeb9be3cc35b4e45f21d783c79cf6709.tar.gz scummvm-rg350-bc2ec5afdeb9be3cc35b4e45f21d783c79cf6709.tar.bz2 scummvm-rg350-bc2ec5afdeb9be3cc35b4e45f21d783c79cf6709.zip |
Got rid of some typedefs
svn-id: r33235
Diffstat (limited to 'engines/tinsel/heapmem.h')
-rw-r--r-- | engines/tinsel/heapmem.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/engines/tinsel/heapmem.h b/engines/tinsel/heapmem.h index c5d022b7f9..7fb85985a9 100644 --- a/engines/tinsel/heapmem.h +++ b/engines/tinsel/heapmem.h @@ -41,7 +41,6 @@ struct MEM_NODE { uint32 lruTime; // time when memory object was last accessed int flags; // allocation attributes }; -typedef MEM_NODE *PMEM_NODE; // allocation flags for the MemoryAlloc function #define DWM_FIXED 0x0001 // allocates fixed memory @@ -71,35 +70,35 @@ void MemoryInit(void); // initialises the memory manager void MemoryStats(void); // Shows the maximum number of mnodes used at once #endif -PMEM_NODE MemoryAlloc( // allocates the specified number of bytes from the heap +MEM_NODE *MemoryAlloc( // allocates the specified number of bytes from the heap int flags, // allocation attributes long size); // number of bytes to allocate void MemoryDiscard( // discards the specified memory object - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object int MemoryFlags( // returns information about the specified memory object - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object void MemoryFree( // frees the specified memory object and invalidates its node - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object -PMEM_NODE MemoryHandle( // Retrieves the mnode associated with the specified pointer to a memory object +MEM_NODE *MemoryHandle( // Retrieves the mnode associated with the specified pointer to a memory object void *pMem); // address of memory object void *MemoryLock( // locks a memory object and returns a pointer to the first byte of the objects memory block - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object -PMEM_NODE MemoryReAlloc( // changes the size or attributes of a specified memory object - PMEM_NODE pMemNode, // node of the memory object +MEM_NODE *MemoryReAlloc( // changes the size or attributes of a specified memory object + MEM_NODE *pMemNode, // node of the memory object long size, // new size of block int flags); // how to reallocate the object long MemorySize( // returns the size, in bytes, of the specified memory object - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object void MemoryUnlock( // unlocks a memory object - PMEM_NODE pMemNode); // node of the memory object + MEM_NODE *pMemNode); // node of the memory object bool HeapCompact( // Allocates the specified number of bytes from the specified heap long size, // number of bytes to free up |