Accept a segment attribute for symbols, but don't do anything with it for now.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5058 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
795d9e1a1c
commit
51ccf2d576
1 changed files with 12 additions and 2 deletions
|
@ -2223,6 +2223,7 @@ static void ParseSym (InputData* D)
|
||||||
ibAddrSize = 0x04,
|
ibAddrSize = 0x04,
|
||||||
ibType = 0x08,
|
ibType = 0x08,
|
||||||
ibSize = 0x10,
|
ibSize = 0x10,
|
||||||
|
ibSegment = 0x20,
|
||||||
ibRequired = ibSymName | ibValue | ibAddrSize | ibType,
|
ibRequired = ibSymName | ibValue | ibAddrSize | ibType,
|
||||||
} InfoBits = ibNone;
|
} InfoBits = ibNone;
|
||||||
|
|
||||||
|
@ -2236,8 +2237,8 @@ static void ParseSym (InputData* D)
|
||||||
|
|
||||||
/* Something we know? */
|
/* Something we know? */
|
||||||
if (D->Tok != TOK_ADDRSIZE && D->Tok != TOK_NAME &&
|
if (D->Tok != TOK_ADDRSIZE && D->Tok != TOK_NAME &&
|
||||||
D->Tok != TOK_SIZE && D->Tok != TOK_TYPE &&
|
D->Tok != TOK_SEGMENT && D->Tok != TOK_SIZE &&
|
||||||
D->Tok != TOK_VALUE) {
|
D->Tok != TOK_TYPE && D->Tok != TOK_VALUE) {
|
||||||
|
|
||||||
/* Try smart error recovery */
|
/* Try smart error recovery */
|
||||||
if (D->Tok == TOK_IDENT || TokenIsKeyword (D->Tok)) {
|
if (D->Tok == TOK_IDENT || TokenIsKeyword (D->Tok)) {
|
||||||
|
@ -2274,6 +2275,15 @@ static void ParseSym (InputData* D)
|
||||||
NextToken (D);
|
NextToken (D);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case TOK_SEGMENT:
|
||||||
|
if (!IntConstFollows (D)) {
|
||||||
|
goto ErrorExit;
|
||||||
|
}
|
||||||
|
/* ### Drop value for now */
|
||||||
|
InfoBits |= ibSegment;
|
||||||
|
NextToken (D);
|
||||||
|
break;
|
||||||
|
|
||||||
case TOK_SIZE:
|
case TOK_SIZE:
|
||||||
if (!IntConstFollows (D)) {
|
if (!IntConstFollows (D)) {
|
||||||
goto ErrorExit;
|
goto ErrorExit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue