Skip to content

Commit

Permalink
corrected formatting of code
Browse files Browse the repository at this point in the history
  • Loading branch information
YashasSamaga committed Jan 14, 2018
1 parent 39ec842 commit 0ecffcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/compiler/sc1.c
Original file line number Diff line number Diff line change
Expand Up @@ -3752,7 +3752,7 @@ static int newfunc(char *firstname,int firsttag,int fpublic,int fstatic,int stoc
declared=0;
} /* if */
if ((lastst!=tRETURN) && (lastst!=tGOTO)){
destructsymbols(&loctab, 0);
destructsymbols(&loctab,0);
ldconst(0,sPRI);
ffret(strcmp(sym->name,uENTRYFUNC)!=0);
if ((sym->usage & uRETVALUE)!=0 && (sym->flags & flagNAKED)==0) {
Expand Down Expand Up @@ -4861,7 +4861,7 @@ static void destructsymbols(symbol *root,int level)
int savepri=FALSE;
symbol *sym=root->next;
while (sym!=NULL && sym->compound>=level) {
if ((sym->ident==iVARIABLE || sym->ident==iARRAY) && !(sym->vclass == sSTATIC && sym->fnumber == -1)) {
if ((sym->ident==iVARIABLE || sym->ident==iARRAY) && !(sym->vclass==sSTATIC && sym->fnumber==-1)) {
char symbolname[16];
symbol *opsym;
cell elements;
Expand All @@ -4880,10 +4880,10 @@ static void destructsymbols(symbol *root,int level)
* if the array is a part of a larger array, it must be ignored
* as it's parent would(or has already) trigger(ed) the destructor
*/
if (sym->parent != NULL) {
if (sym->parent!=NULL) {
sym=sym->next;
continue;
}
} /* if */
elements=calc_array_datasize(sym,&offset);
/* "elements" can be zero when the variable is declared like
* new mytag: myvar[2][] = { {1, 2}, {3, 4} }
Expand Down

0 comments on commit 0ecffcb

Please sign in to comment.