Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / scalos / libraries / popupmenu / pmmem.h
blob26fad90133c5b6b7f5e677e7df2df11e52ec4fdc
1 //
2 // pmmem.h
3 //
4 // Operating System Independent Memory Management
5 //
6 // $Date$
7 // $Revision$
8 //
10 #ifndef PM_MEM_H
11 #define PM_MEM_H
13 #include "pmtypes.h"
15 #include <proto/exec.h>
16 #define PM_Mem_Alloc(size) PM_AllocVecPooled(size)
17 #define PM_Mem_Free(mem) PM_FreeVecPooled(mem)
18 #define PM_Mem_Copy(s, d, l) CopyMem(s, d, l)
20 STRPTR PM_String_Copy(STRPTR Source, STRPTR Dest, LONG Len);
21 ULONG PM_String_Length(STRPTR s);
22 ULONG PM_String_Compare(STRPTR str1, STRPTR str2);
23 void PM_StrCat(STRPTR Dst, STRPTR Src);
25 APTR PM_AllocVecPooled(size_t size);
26 void PM_FreeVecPooled(APTR mem);
28 #endif /* PM_MEM_H */