Fix misleading closing comments
This commit is contained in:
parent
3b04173d83
commit
05dcdc151b
@ -2812,7 +2812,7 @@ static cell initvector(int ident,int tag,cell size,int startlit,int fillzero,
|
|||||||
if (!matchtoken(',')) {
|
if (!matchtoken(',')) {
|
||||||
needtoken('}');
|
needtoken('}');
|
||||||
break;
|
break;
|
||||||
} /* for */
|
} /* if */
|
||||||
} /* for */
|
} /* for */
|
||||||
/* if this array is based on an enumeration, fill the "field" up with
|
/* if this array is based on an enumeration, fill the "field" up with
|
||||||
* zeros, and toggle the tag
|
* zeros, and toggle the tag
|
||||||
@ -4202,7 +4202,7 @@ static int declargs(symbol *sym,int chkshadow)
|
|||||||
if (matchtoken('}'))
|
if (matchtoken('}'))
|
||||||
break;
|
break;
|
||||||
needtoken(',');
|
needtoken(',');
|
||||||
} /* for */
|
} /* while */
|
||||||
needtoken(':');
|
needtoken(':');
|
||||||
tok=tLABEL; /* for outer loop: flag that we have seen a tagname */
|
tok=tLABEL; /* for outer loop: flag that we have seen a tagname */
|
||||||
break;
|
break;
|
||||||
@ -5033,7 +5033,7 @@ static long max_stacksize(symbol *root,int *recursion)
|
|||||||
if ((sym->usage & uNATIVE)==0)
|
if ((sym->usage & uNATIVE)==0)
|
||||||
numfunctions++;
|
numfunctions++;
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* if */
|
} /* for */
|
||||||
/* allocate function symbol stack */
|
/* allocate function symbol stack */
|
||||||
symstack=(symbol **)malloc((numfunctions+1)*sizeof(symbol*));
|
symstack=(symbol **)malloc((numfunctions+1)*sizeof(symbol*));
|
||||||
rsymstack=(symbol **)malloc((numfunctions+1)*sizeof(symbol*));
|
rsymstack=(symbol **)malloc((numfunctions+1)*sizeof(symbol*));
|
||||||
@ -5163,7 +5163,7 @@ static int testsymbols(symbol *root,int level,int testlabs,int testconst)
|
|||||||
/* also mark the variable (local or global) to the debug information */
|
/* also mark the variable (local or global) to the debug information */
|
||||||
if ((sym->usage & (uWRITTEN | uREAD))!=0 && (sym->usage & uNATIVE)==0)
|
if ((sym->usage & (uWRITTEN | uREAD))!=0 && (sym->usage & uNATIVE)==0)
|
||||||
insert_dbgsymbol(sym);
|
insert_dbgsymbol(sym);
|
||||||
} /* if */
|
} /* switch */
|
||||||
sym=sym->next;
|
sym=sym->next;
|
||||||
} /* while */
|
} /* while */
|
||||||
|
|
||||||
@ -6206,7 +6206,7 @@ static int doswitch(void)
|
|||||||
error(40,val); /* duplicate "case" label */
|
error(40,val); /* duplicate "case" label */
|
||||||
assert(csp==NULL || csp->next==cse);
|
assert(csp==NULL || csp->next==cse);
|
||||||
insert_constval(csp,cse,itoh(lbl_case),val,0);
|
insert_constval(csp,cse,itoh(lbl_case),val,0);
|
||||||
} /* if */
|
} /* while */
|
||||||
} /* if */
|
} /* if */
|
||||||
} while (matchtoken(','));
|
} while (matchtoken(','));
|
||||||
needtoken(':'); /* ':' ends the case */
|
needtoken(':'); /* ':' ends the case */
|
||||||
@ -6264,7 +6264,7 @@ static int doswitch(void)
|
|||||||
errorset(sSETPOS,save_fline);
|
errorset(sSETPOS,save_fline);
|
||||||
error(244,cur->name); /* enum element not handled in switch */
|
error(244,cur->name); /* enum element not handled in switch */
|
||||||
errorset(sSETPOS,-1);
|
errorset(sSETPOS,-1);
|
||||||
} /* while */
|
} /* for */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
#if !defined NDEBUG
|
#if !defined NDEBUG
|
||||||
|
@ -250,7 +250,7 @@ SC_FUNC int plungefile(char *name,int try_currentpath,int try_includepaths)
|
|||||||
strlcpy(path,ptr,arraysize(path));
|
strlcpy(path,ptr,arraysize(path));
|
||||||
strlcat(path,name,arraysize(path));
|
strlcat(path,name,arraysize(path));
|
||||||
result=plungequalifiedfile(path);
|
result=plungequalifiedfile(path);
|
||||||
} /* while */
|
} /* for */
|
||||||
} /* if */
|
} /* if */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -992,7 +992,7 @@ static const unsigned char *getstring(unsigned char *dest,int max,const unsigned
|
|||||||
if (len<max-1)
|
if (len<max-1)
|
||||||
dest[len++]=*line;
|
dest[len++]=*line;
|
||||||
line++;
|
line++;
|
||||||
} /* if */
|
} /* while */
|
||||||
dest[len]='\0';
|
dest[len]='\0';
|
||||||
if (*line=='"')
|
if (*line=='"')
|
||||||
line++; /* skip closing " */
|
line++; /* skip closing " */
|
||||||
|
@ -419,7 +419,7 @@ static int skim(int *opstr,void (*testfunc)(int),int dropval,int endval,
|
|||||||
break; /* none of the operators in "opstr" were found */
|
break; /* none of the operators in "opstr" were found */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
} /* while */
|
} /* for */
|
||||||
|
|
||||||
lval_stgidx=org_index;
|
lval_stgidx=org_index;
|
||||||
lval_cidx=org_cidx;
|
lval_cidx=org_cidx;
|
||||||
@ -834,7 +834,7 @@ static cell array_levelsize(symbol *sym,int level)
|
|||||||
while (level-- > 0) {
|
while (level-- > 0) {
|
||||||
sym=sym->child;
|
sym=sym->child;
|
||||||
assert(sym!=NULL);
|
assert(sym!=NULL);
|
||||||
} /* if */
|
} /* while */
|
||||||
return sym->dim.array.length;
|
return sym->dim.array.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1439,7 +1439,7 @@ static int hier2(value *lval)
|
|||||||
offsmul*=subsym->dim.array.length;
|
offsmul*=subsym->dim.array.length;
|
||||||
arrayidx*=arrayidx*subsym->dim.array.length;
|
arrayidx*=arrayidx*subsym->dim.array.length;
|
||||||
subsym=subsym->child;
|
subsym=subsym->child;
|
||||||
} /* if */
|
} /* while */
|
||||||
lval->constval+=(numoffsets-1+arrayidx)*(cell)sizeof(cell);
|
lval->constval+=(numoffsets-1+arrayidx)*(cell)sizeof(cell);
|
||||||
ldconst(lval->constval,sPRI);
|
ldconst(lval->constval,sPRI);
|
||||||
} /* if */
|
} /* if */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user