Debugging the condes support
git-svn-id: svn://svn.cc65.org/cc65/trunk@461 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -390,12 +390,19 @@ static void LibCheckExports (ObjData* O)
|
|||||||
}
|
}
|
||||||
while (Count--) {
|
while (Count--) {
|
||||||
|
|
||||||
|
unsigned char Tag;
|
||||||
|
unsigned Len;
|
||||||
|
char* Name;
|
||||||
|
|
||||||
/* Get the export tag */
|
/* Get the export tag */
|
||||||
unsigned char Tag = *Exports++;
|
Tag = *Exports++;
|
||||||
|
|
||||||
|
/* condes decls may follow */
|
||||||
|
Exports += GET_EXP_CONDES_COUNT (Tag);
|
||||||
|
|
||||||
/* Next thing is name of symbol */
|
/* Next thing is name of symbol */
|
||||||
unsigned Len = GetVar (&Exports);
|
Len = GetVar (&Exports);
|
||||||
char* Name = xmalloc (Len + 1);
|
Name = xmalloc (Len + 1);
|
||||||
memcpy (Name, Exports, Len);
|
memcpy (Name, Exports, Len);
|
||||||
Name [Len] = '\0';
|
Name [Len] = '\0';
|
||||||
Exports += Len;
|
Exports += Len;
|
||||||
|
|||||||
@@ -38,8 +38,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "../common/exprdefs.h"
|
/* common */
|
||||||
#include "../common/filepos.h"
|
#include "exprdefs.h"
|
||||||
|
#include "filepos.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -76,3 +77,4 @@ extern Fragment* FragLast;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ struct ExprNode {
|
|||||||
unsigned SegNum; /* If this is a segment */
|
unsigned SegNum; /* If this is a segment */
|
||||||
unsigned ImpNum; /* If this is an import */
|
unsigned ImpNum; /* If this is an import */
|
||||||
struct Memory* MemArea; /* If this is a memory area */
|
struct Memory* MemArea; /* If this is a memory area */
|
||||||
|
struct Section* Sec; /* If segment and Obj is NULL */
|
||||||
} V;
|
} V;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user