added setRecSize

This commit is contained in:
Partho Bhattacharya
2025-03-27 20:10:14 -04:00
parent 8f1c7590bd
commit c93534e9d4

View File

@ -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);