diff --git a/src/symbol_table.c b/src/symbol_table.c index b453c6b..2457042 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c @@ -194,6 +194,15 @@ SymbolTable *getRecList(TableNode *definition) { return definition->additionalinfo->RecAdInfo->recordScope; } +TableNode* setRecSize(TableNode* tn, int n){ + if(tn == NULL){ + printf("passed in NULL entry for setRecSize. Invalid\n"); + return NULL; + } + tn->AdInfo->RecAdInfo->numofelements = n; + return tn; + } + int getRecSize(SymbolTable* tn){ int s = 0; TableNode* cur = getFirstEntry(tn);