Move scope type definitions to common/

git-svn-id: svn://svn.cc65.org/cc65/trunk@5095 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-07-31 14:01:11 +00:00
parent dd3a841b1a
commit 4191eb7718
7 changed files with 83 additions and 23 deletions

View File

@@ -47,6 +47,7 @@
#include "cddefs.h"
#include "coll.h"
#include "intstack.h"
#include "scopedefs.h"
#include "symdefs.h"
#include "tgttrans.h"
#include "xmalloc.h"
@@ -816,7 +817,7 @@ static void DoEnd (void)
static void DoEndProc (void)
/* Leave a lexical level */
{
if (GetCurrentSymTabType () != ST_PROC) {
if (GetCurrentSymTabType () != SCOPETYPE_PROC) {
/* No local scope */
ErrorSkip ("No open .PROC");
} else {
@@ -829,7 +830,7 @@ static void DoEndProc (void)
static void DoEndScope (void)
/* Leave a lexical level */
{
if ( GetCurrentSymTabType () != ST_SCOPE) {
if ( GetCurrentSymTabType () != SCOPETYPE_SCOPE) {
/* No local scope */
ErrorSkip ("No open .SCOPE");
} else {
@@ -1538,7 +1539,7 @@ static void DoProc (void)
}
/* Enter a new scope */
SymEnterLevel (&Name, ST_PROC, AddrSize, Sym);
SymEnterLevel (&Name, SCOPETYPE_PROC, AddrSize, Sym);
/* Free memory for Name */
SB_Done (&Name);
@@ -1665,7 +1666,7 @@ static void DoScope (void)
AddrSize = OptionalAddrSize ();
/* Enter the new scope */
SymEnterLevel (&Name, ST_SCOPE, AddrSize, 0);
SymEnterLevel (&Name, SCOPETYPE_SCOPE, AddrSize, 0);
/* Free memory for Name */
SB_Done (&Name);
@@ -1759,7 +1760,7 @@ static void DoTag (void)
ErrorSkip ("Unknown struct");
return;
}
if (GetSymTabType (Struct) != ST_STRUCT) {
if (GetSymTabType (Struct) != SCOPETYPE_STRUCT) {
ErrorSkip ("Not a struct");
return;
}