00001 00020 #ifndef MEMRYERR_H 00021 #define MEMRYERR_H 00022 00023 #include "errcode.h" 00024 00025 const ERRCODE MEMTOOBIG = "Memory request too big"; 00026 const ERRCODE NOMOREBLOCKS = "Max total memory blocks exceeded"; 00027 const ERRCODE NOMOREMEM = "No more memory available from malloc"; 00028 const ERRCODE FREENULLPTR = "Attempt to free memory NULL pointer"; 00029 const ERRCODE NOTMALLOCMEM = 00030 "Attempt to free memory not belonging to memalloc"; 00031 const ERRCODE FREEILLEGALPTR = "Pointer or memory corrupted"; 00032 const ERRCODE FREEFREEDBLOCK = "Memory block already marked free"; 00033 const ERRCODE BADMEMCHUNKS = "Inconsistency in memory chunks"; 00034 const ERRCODE BADSTRUCTCOUNT = "Memory incorrect freelist length"; 00035 const ERRCODE NEGATIVE_USED_STRUCTS = 00036 "Negative number of used memory structures"; 00037 const ERRCODE NOTASTRING = "Illegal pointer for memory strfree"; 00038 #endif