"Invalid parameter(s).\n",\r
Final,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"Invalid parameter.\n",\r
Final,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nFile=%s, Line=%u, nSize=%u, Head=%xh, Tail=%xh\n",\r
Final,\r
File,\r
- (UINT32)Line,\r
+ (unsigned)Line,\r
Tmp->File,\r
- (UINT32)Tmp->Line,\r
- (UINT32)Tmp->Size,\r
- *(UINT32 *) (Tmp->Buffer),\r
- *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
+ (unsigned) Tmp->Line,\r
+ (unsigned) Tmp->Size,\r
+ (unsigned) *(UINT32 *) (Tmp->Buffer),\r
+ (unsigned) *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
);\r
\r
exit (1);\r
"\nSome allocated items have not been freed.\n",\r
Final,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
for (Tmp = MyAllocData; Tmp != NULL; Tmp = Tmp->Next) {\r
printf (\r
"File=%s, Line=%u, nSize=%u, Head=%xh, Tail=%xh\n",\r
Tmp->File,\r
- (UINT32)Tmp->Line,\r
- (UINT32)Tmp->Size,\r
- *(UINT32 *) (Tmp->Buffer),\r
- *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
+ (unsigned) Tmp->Line,\r
+ (unsigned) Tmp->Size,\r
+ (unsigned) *(UINT32 *) (Tmp->Buffer),\r
+ (unsigned) *(UINT32 *) (&Tmp->Buffer[Tmp->Size + sizeof (UINT32)])\r
);\r
}\r
}\r
printf (\r
"\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
"\nInvalid parameter(s).\n",\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
printf (\r
"\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
"\nInvalid parameter.\n",\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
printf (\r
"\nMyAlloc(Size=%u, File=%s, Line=%u)"\r
"\nOut of memory.\n",\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
"\nInvalid parameter(s).\n",\r
Ptr,\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
"\nInvalid parameter.\n",\r
Ptr,\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nMyRealloc(Ptr=%p, Size=%u, File=%s, Line=%u)"\r
"\nCould not find buffer.\n",\r
Ptr,\r
- (UINT32)Size,\r
+ (unsigned)Size,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nInvalid parameter(s).\n",\r
Ptr,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nInvalid parameter.\n",\r
Ptr,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nCalled before memory allocated.\n",\r
Ptr,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r
"\nNot found.\n",\r
Ptr,\r
File,\r
- (UINT32)Line\r
+ (unsigned)Line\r
);\r
\r
exit (1);\r