00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
#ifndef PI_Memory_h
00014 
#define PI_Memory_h
00015 
00016 
#include <stdlib.h>
00017 typedef INT32 Size;
00018 
00019 
#ifdef __cplusplus
00020 
extern "C" {
00021 
#endif
00022 
void *
LH_malloc(
long a);
00023 
void LH_free(
void *a);
00024 
void LH_mallocInit();
00025 
#ifdef __cplusplus
00026 
}
00027 
#endif
00028 
00029 
#ifdef __cplusplus
00030 
extern "C" {
00031 
#endif
00032 
00033 
Ptr             DisposeIfPtr            ( Ptr aPtr );
00034 
00035 
Ptr
00036 
SmartNewPtr(Size byteCount, OSErr *resultCode);
00037 
00038 
Ptr
00039 
SmartNewPtrClear(Size byteCount, OSErr *resultCode);
00040 
00041 
UINT32 TickCount(
void);
00042 
double MyTickCount(
void);
00043 
00044 
double rint(
double a);
00045 
void BlockMove(
const void* srcPtr,
00046                            
void* destPtr,
00047                            Size byteCount);
00048 
#ifdef __cplusplus
00049 
}
00050 
#endif
00051 
00052 
#endif