Hacked const and volatile modifiers a bit.
[fw/sdcc] / src / SDCC.y
index bc7137e668b9a95f9d78f40a2fe3ff8c28da72fe..16839f811f7fe07169248a7be0689d95ab75a545 100644 (file)
@@ -769,7 +769,7 @@ struct_declaration
                   sym->etype = getSpec(sym->type);
               }
               else
-                  addDecl (sym,0,cloneSpec($1));              
+                addDecl (sym,0,copyLinkChain($1));
               /* make sure the type is complete and sane */
               checkTypeSanity(sym->etype, sym->name);
           }
@@ -1009,7 +1009,6 @@ pointer
                     DCL_TYPE($3) = POINTER ;
                     break;
                 case S_CODE:
-                    DCL_PTR_CONST($3) = 1;
                     DCL_TYPE($3) = CPOINTER ;
                     break;
                 case S_EEPROM: