Make .sizeof work with code scopes. First support for segment ranges.

git-svn-id: svn://svn.cc65.org/cc65/trunk@2718 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-12-06 14:16:27 +00:00
parent ad86e4679a
commit eea9accba6
7 changed files with 49 additions and 13 deletions

View File

@@ -708,7 +708,7 @@ static void DoEnd (void)
static void DoEndProc (void)
/* Leave a lexical level */
{
if (CurrentScope == RootScope || GetCurrentSymTabType () != ST_PROC) {
if (GetCurrentSymTabType () != ST_PROC) {
/* No local scope */
ErrorSkip ("No open .PROC");
} else {
@@ -721,7 +721,7 @@ static void DoEndProc (void)
static void DoEndScope (void)
/* Leave a lexical level */
{
if (CurrentScope == RootScope || GetCurrentSymTabType () != ST_SCOPE) {
if ( GetCurrentSymTabType () != ST_SCOPE) {
/* No local scope */
ErrorSkip ("No open .SCOPE");
} else {
@@ -1508,7 +1508,7 @@ static void DoSunPlus (void)
static void DoTag (void)
/* Allocate space for a struct */
{
{
SymEntry* SizeSym;
long Size;