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:
@@ -50,7 +50,7 @@
|
||||
|
||||
|
||||
/* Predefined packages */
|
||||
static const char MacGeneric [] = /* Generic macros */
|
||||
static char MacGeneric [] = /* Generic macros */
|
||||
".macro add Arg1, Arg2\n"
|
||||
" clc\n"
|
||||
" .if .paramcount = 2\n"
|
||||
@@ -70,7 +70,7 @@ static const char MacGeneric [] = /* Generic macros */
|
||||
|
||||
|
||||
|
||||
static const char MacLongBranch [] = /* Long branch macros */
|
||||
static char MacLongBranch [] = /* Long branch macros */
|
||||
".macro jeq Target\n"
|
||||
" .if .match(Target, 0)\n"
|
||||
" bne *+5\n"
|
||||
@@ -163,7 +163,7 @@ static const char MacLongBranch [] = /* Long branch macros */
|
||||
|
||||
|
||||
/* Table with pointers to the different packages */
|
||||
static const char* MacPackages [] = {
|
||||
static char* MacPackages [] = {
|
||||
MacGeneric,
|
||||
MacLongBranch,
|
||||
};
|
||||
|
||||
@@ -95,7 +95,7 @@ struct InputFile_ {
|
||||
/* Struct to handle textual input data */
|
||||
typedef struct InputData_ InputData;
|
||||
struct InputData_ {
|
||||
const char* Data; /* Pointer to the data */
|
||||
char* Data; /* Pointer to the data */
|
||||
const char* Pos; /* Pointer to current position */
|
||||
int Malloced; /* Memory was malloced */
|
||||
enum Token Tok; /* Last token */
|
||||
@@ -370,7 +370,7 @@ void DoneInputFile (void)
|
||||
|
||||
|
||||
|
||||
void NewInputData (const char* Data, int Malloced)
|
||||
void NewInputData (char* Data, int Malloced)
|
||||
/* Add a chunk of input data to the input stream */
|
||||
{
|
||||
InputData* I;
|
||||
|
||||
@@ -186,7 +186,7 @@ enum Token {
|
||||
TOK_P816,
|
||||
TOK_PAGELENGTH,
|
||||
TOK_PARAMCOUNT,
|
||||
TOK_PC02,
|
||||
TOK_PC02,
|
||||
TOK_POPSEG,
|
||||
TOK_PROC,
|
||||
TOK_PUSHSEG,
|
||||
@@ -240,7 +240,7 @@ void NewInputFile (const char* Name);
|
||||
void DoneInputFile (void);
|
||||
/* Close the current input file */
|
||||
|
||||
void NewInputData (const char* Data, int Malloced);
|
||||
void NewInputData (char* Data, int Malloced);
|
||||
/* Add a chunk of input data to the input stream */
|
||||
|
||||
void LocaseSVal (void);
|
||||
|
||||
Reference in New Issue
Block a user