From d17e99758f5e36774408824dc3c2ab2225f0b027 Mon Sep 17 00:00:00 2001 From: Annie Date: Wed, 9 Apr 2025 13:29:50 -0400 Subject: [PATCH] added offsets to record type structure --- src/symbol_table.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/symbol_table.h b/src/symbol_table.h index 7c5322d..e2fac84 100644 --- a/src/symbol_table.h +++ b/src/symbol_table.h @@ -24,6 +24,8 @@ typedef struct { typedef struct { int numofelements; struct SymbolTable *recordScope; + int totalsize; + int offsets[]; } record_info; typedef struct { @@ -164,4 +166,4 @@ extern char *COLOR_YELLOW; extern char *COLOR_LIGHTBLUE; extern char *COLOR_LIGHTPURPLE; extern char *COLOR_LIGHTCYAN; -extern char *COLOR_WHITE; \ No newline at end of file +extern char *COLOR_WHITE;