+/* common */
+#include "addrsize.h"
+
/* ca65 */
+#include "expr.h"
#include "sizeof.h"
#include "symtab.h"
+SymEntry* DefSizeOfScope (SymTable* Scope, long Size)
+/* Define the size of a scope and return the size symbol */
+{
+ SymEntry* SizeSym = GetSizeOfScope (Scope);
+ SymDef (SizeSym, GenLiteralExpr (Size), ADDR_SIZE_DEFAULT, SF_NONE);
+ return SizeSym;
+}
+
+
+
+SymEntry* DefSizeOfSymbol (SymEntry* Sym, long Size)
+/* Define the size of a symbol and return the size symbol */
+{
+ SymEntry* SizeSym = GetSizeOfSymbol (Sym);
+ SymDef (SizeSym, GenLiteralExpr (Size), ADDR_SIZE_DEFAULT, SF_NONE);
+ return SizeSym;
+}
+
+
+