Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

pi_mem.h File Reference

#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef INT32 Size

Functions

void * LH_malloc (long a)
void LH_free (void *a)
void LH_mallocInit ()
Ptr DisposeIfPtr (Ptr aPtr)
Ptr SmartNewPtr (Size byteCount, OSErr *resultCode)
Ptr SmartNewPtrClear (Size byteCount, OSErr *resultCode)
UINT32 TickCount (void)
double MyTickCount (void)
double rint (double a)
void BlockMove (const void *srcPtr, void *destPtr, Size byteCount)


Typedef Documentation

typedef INT32 Size
 

Definition at line 17 of file lh_open/pi_mem.h.

Referenced by __C_specific_handler(), AlAllocateHeap(), AllocateScrollBuffer(), AlRtAllocateHeap(), AlRtCreateHeap(), AlRtReAllocateHeap(), BeginPopup(), CalculateCHSVals(), CleanupSessionObjectDirectories(), CMFullColorRemains(), CmpAddInfoAfterParseFailure(), CmpAddToLeaf(), CmpAllocate(), CmpClaimGlobalQuota(), CmpCreateKeyControlBlock(), CmpGetNameControlBlock(), CmpMapPhysicalAddress(), CmpParseInfBuffer(), CmpReleaseGlobalQuota(), CmpSplitLeaf(), CopyRectangle(), CreateScreenBuffer(), CsrAllocateCaptureBuffer(), DeviceClassCDROMNotify(), DoBitMapTest(), EndPopup(), ExAllocatePool(), ExCreateDebugLog(), ExCreateDebugLogTag(), ExInitializeNPagedLookasideList(), ExInitializePagedLookasideList(), ExpCheckForResource(), ExpCheckForWorker(), ExpInsertPoolTracker(), ExpRemovePoolTracker(), FdCrosses1024Cylinder(), FE_TranslateOutputToAnsiUnicode(), FE_TranslateOutputToAnsiUnicodeInternal(), FindCreateFont(), FontEnum(), GetCPElement(), GetCPElementData(), GetCSAFromProfile(), GetPS2ColorRenderingDictionary(), GetPS2ColorRenderingIntent(), GetScreenBufferInformation(), HvIsCellAllocated(), HvMarkCellDirty(), HvpBuildMapAndCopy(), HvpGrowLog2(), HvpRecoverData(), InitializeFreeSpace(), InitializePool(), IoCreateController(), IoGetBootDiskInformation(), IopAllocateBuffer(), IopCacheNetbiosNameForIpAddress(), IopDeleteSessionSymLinks(), IopSetDefaultGateway(), KdRegisterDebuggerDataBlock(), KeIA32PortIsAccessable(), Ki386VdmDispatchIo(), Ki386VdmDispatchStringIo(), KiAmdK6AddRegion(), KiAmdK6HandleWcRegionRequest(), KiAmdK6MTRRAddRegionFromHW(), KiAmdK6MtrrSetMemoryType(), KiCloneDescriptor(), KiInitializeKernel(), KiInitializeMTRR(), KiInitializePAT(), KiInitMachineDependent(), LdrAccessResource(), LdrEnumResources(), LdrpAccessResourceData(), LdrpDphDetectSnapRoutines(), LdrpTagAllocateHeap(), MapperAdjustResourceList(), MemAlloc(), MiAttemptPageFileExtension(), MiAttemptPageFileReduction(), MiBuildPagedPool(), MiCheckSecuredVad(), MiCreateDataFileMap(), MiCreatePebOrTeb(), MiGrowWsleHash(), MiInitializeNonPagedPool(), MiInitializeSystemSpaceMap(), MiInsertWsle(), MiRearrangeWorkingSetExpansionList(), MiReleaseSystemPtes(), MiRemoveFromSystemSpace(), MiSweepCacheMachineDependent(), MiUnmapViewInSystemSpace(), MmSecureVirtualMemory(), NtAllocateVirtualMemory(), NtCreatePagingFile(), NtMapViewOfSection(), NtSetSystemInformation(), NtWaitForMultipleObjects(), ObpCaptureObjectCreateInformation(), ObpCreateTypeArray(), ObpInitSecurityDescriptorCache(), ProcessInterruptRegion(), PspCreateLdt(), PspSetLdtInformation(), RegDumpKeyValue(), RestorePreservedRegisterFromGR(), RtlAllocateHeap(), RtlAllocateHeapSlowly(), RtlCreateAndSetSD(), RtlCreateAtomTable(), RtlDebugAllocateHeap(), RtlDebugFreeHeap(), RtlDebugReAllocateHeap(), RtlDestroyQueryDebugBuffer(), RtlDispatchException(), RtlExtendHeap(), RtlFreeUserThreadStack(), RtlImageDirectoryEntryToData(), RtlIsTextUnicode(), RtlLookupFunctionEntry(), RtlpChainDebugInfo(), RtlpCheckBusyBlockTail(), RtlpCommitQueryDebugInfo(), RtlpDebugPageHeapAllocate(), RtlpDebugPageHeapCreate(), RtlpDebugPageHeapReAllocate(), RtlpDebugPageHeapSize(), RtlpDeCommitQueryDebugInfo(), RtlpDphDllcalloc(), RtlpDphDllGlobalAlloc(), RtlpDphDllGlobalReAlloc(), RtlpDphDllHeapAlloc(), RtlpDphDllHeapReAlloc(), RtlpDphDllLocalAlloc(), RtlpDphDllLocalReAlloc(), RtlpDphDllmalloc(), RtlpDphDllNew(), RtlpDphDllNewArray(), RtlpDphDllrealloc(), RtlpDphNormalHeapAllocate(), RtlpDphNormalHeapReAllocate(), RtlpDphShouldAllocateInPageHeap(), RtlpDphTargetDllsLoadCallBack(), RtlpFindAndCommitPages(), RtlpGrowBlockInPlace(), RtlpImageDirectoryEntryToData32(), RtlpImageDirectoryEntryToData64(), RtlpInitializeHeapSegment(), RtlpInsertFreeBlock(), RtlpInsertUnCommittedPages(), RtlpLogExceptionHandler(), RtlProtectHeap(), RtlpValidateHeap(), RtlpValidateHeapSegment(), RtlQueryProcessDebugInformation(), RtlQueryProcessHeapInformation(), RtlReAllocateHeap(), RtlSetEnvironmentVariable(), RtlUnwind2(), RtlValidateProcessHeaps(), RtlVirtualUnwind(), RtlZeroHeap(), SB_TranslateOutputToAnsiUnicode(), SB_TranslateOutputToOem(), SB_TranslateOutputToOemUnicode(), SB_TranslateOutputToUnicode(), ScrollRegion(), SeCaptureSecurityDescriptor(), SeComputeQuotaInformationSize(), SeQuerySecurityDescriptorInfo(), SetCursorInformation(), SetFont(), SetInputBufferSize(), SrInitialize(), TestMakeSystemToken(), TranslateOutputToPaddingUnicode(), UdfCreatePcb(), UdfVerifyDescriptor(), UpdateCommandListPopup(), VdmCallStringIoHandler(), VdmDispatchIoToHandler(), VdmDispatchStringIoToHandler(), VdmDispatchUnalignedIoToHandler(), and xxxInitActivateDlg().


Function Documentation

void BlockMove const void *  srcPtr,
void *  destPtr,
Size  byteCount
 

Definition at line 337 of file lh_open/pi_mem.c.

00340 { 00341 memmove(destPtr, srcPtr, byteCount); 00342 }

Ptr DisposeIfPtr Ptr  aPtr  ) 
 

Definition at line 99 of file lh_open/pi_mem.c.

00100 { 00101 if (thePtr) 00102 { 00103 LH_free(thePtr); 00104 } 00105 return NULL; 00106 }

void LH_free void *  a  ) 
 

Definition at line 276 of file lh_open/pi_mem.c.

00277 { 00278 #ifdef __MWERKS__ 00279 DisposePtr((Ptr)a); 00280 #else 00281 free(a); 00282 #endif 00283 00284 }

void* LH_malloc long  a  ) 
 

Definition at line 254 of file lh_open/pi_mem.c.

00255 { 00256 #ifdef __MWERKS__ 00257 return NewPtr(a); 00258 #else 00259 return malloc(a); 00260 #endif 00261 00262 }

void LH_mallocInit  ) 
 

Definition at line 238 of file lh_open/pi_mem.c.

00239 { 00240 }

double MyTickCount void   ) 
 

Definition at line 31 of file lh_open/pi_tick.c.

References TickCount().

00032 { 00033 double timevalue; 00034 #if __IS_MAC 00035 timevalue = TickCount()/60.; 00036 #elif __IS_MSDOS 00037 timevalue = GetTickCount()/1000.; 00038 #else 00039 timevalue = clock()/(CLOCKS_PER_SEC*1000.); 00040 #endif 00041 return timevalue; 00042 }

double rint double  a  ) 
 

Ptr SmartNewPtr Size  byteCount,
OSErr resultCode
 

Definition at line 47 of file lh_open/pi_mem.c.

00049 { 00050 Ptr aPtr; 00051 aPtr = (Ptr)LH_malloc(byteCount); 00052 if (aPtr == 0) 00053 *resultCode = notEnoughMemoryErr; 00054 else 00055 *resultCode = 0; 00056 return aPtr; 00057 }

Ptr SmartNewPtrClear Size  byteCount,
OSErr resultCode
 

Definition at line 72 of file lh_open/pi_mem.c.

00074 { 00075 Ptr ptr = NULL; 00076 00077 ptr = SmartNewPtr(byteCount, resultCode); 00078 00079 if (ptr != NULL) 00080 { 00081 memset( ptr, 0, byteCount ); 00082 } 00083 return ptr; 00084 00085 }

UINT32 TickCount void   ) 
 

Definition at line 55 of file lh_open/pi_tick.c.

Referenced by CMMConcatInitPrivate(), CMMInitPrivate(), KiChkTimerExpireSysDpc(), LHCheckBitMapPrivate(), LHMatchBitMapPrivate(), MiInsertWsle(), and MyTickCount().

00056 { 00057 UINT32 timevalue; 00058 timevalue = (UINT32) time(NULL); 00059 return timevalue; 00060 }


Generated on Sat May 15 19:45:08 2004 for test by doxygen 1.3.7