- line = malloc_chk(LINESIZE + 1, "assemble.line");
- while(fgets(line, LINESIZE, fp)) {
- lineno++;
- if((pass == FIRST && asmode.src == true) ||
- (pass == SECOND && asmode.asdetail == true))
- {
+ for(line = malloc_chk(LINESIZE + 1, "assemble.line"); fgets(line, LINESIZE, fp); lineno++) {
+ if((pass == FIRST && asmode.src == true) || (pass == SECOND && asmode.asdetail == true)) {