added setRecSize
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user