Move the Debug flag into a new module "debugflag" in the common directory.
Remove the const qualifier from the argument of xfree(). git-svn-id: svn://svn.cc65.org/cc65/trunk@1877 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -37,12 +37,13 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "abend.h"
|
||||
#include "debugflag.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* code */
|
||||
/* code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -81,10 +82,10 @@ void* xrealloc (void* P, size_t Size)
|
||||
|
||||
|
||||
|
||||
void xfree (const void* Block)
|
||||
void xfree (void* Block)
|
||||
/* Free the block, do some debugging */
|
||||
{
|
||||
free ((void*) Block);
|
||||
free (Block);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user