]> git.sur5r.net Git - cc65/blobdiff - src/ca65/struct.c
Write scopes in id order, so we don't need to write out the id itself. Add the
[cc65] / src / ca65 / struct.c
index 6418e722800467a55511c1fea2e0b9336ffe5832..07068ef947464520949abc8a4c39d3e7af7da381 100644 (file)
@@ -108,7 +108,7 @@ static long DoStructInternal (long Offs, unsigned Type)
     int Anon = (CurTok.Tok != TOK_IDENT);
     if (!Anon) {
         /* Enter a new scope, then skip the name */
-        SymEnterLevel (&CurTok.SVal, SCOPETYPE_STRUCT, ADDR_SIZE_ABS, 0);
+        SymEnterLevel (&CurTok.SVal, SCOPE_STRUCT, ADDR_SIZE_ABS, 0);
         NextTok ();
         /* Start at zero offset in the new scope */
         Offs = 0;
@@ -195,7 +195,7 @@ static long DoStructInternal (long Offs, unsigned Type)
                 Struct = ParseScopedSymTable ();
                 if (Struct == 0) {
                     ErrorSkip ("Unknown struct/union");
-                } else if (GetSymTabType (Struct) != SCOPETYPE_STRUCT) {
+                } else if (GetSymTabType (Struct) != SCOPE_STRUCT) {
                     ErrorSkip ("Not a struct/union");
                 } else {
                     SymEntry* SizeSym = GetSizeOfScope (Struct);