aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-11 18:45:44 +0200
committergrischka <grischka>2009-05-11 18:45:44 +0200
commitf9181416f604c1c0715fc538316948a9f957a3c3 (patch)
tree44b516fd9c79bd470322480540feda94acb2c6d9 /tccpe.c
parent5c6509578e78db8978b19ab81c4f26398f13c82d (diff)
downloadtinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.gz
tinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.bz2
move some global variables into TCCState
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tccpe.c b/tccpe.c
index 1d6c7fd..1e3fdb3 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -577,7 +577,7 @@ ST_FN int pe_write(struct pe_info *pe)
file_offset = pe->sizeofheaders;
pe_fpad(op, file_offset);
- if (2 == verbose)
+ if (2 == pe->s1->verbose)
printf("-------------------------------"
"\n virt file size section" "\n");
@@ -588,7 +588,7 @@ ST_FN int pe_write(struct pe_info *pe)
unsigned long size = si->sh_size;
IMAGE_SECTION_HEADER *psh = &si->ish;
- if (2 == verbose)
+ if (2 == pe->s1->verbose)
printf("%6lx %6lx %6lx %s\n",
addr, file_offset, size, sh_name);
@@ -662,9 +662,9 @@ ST_FN int pe_write(struct pe_info *pe)
fwrite(&pe->sec_info[i].ish, 1, sizeof(IMAGE_SECTION_HEADER), op);
fclose (op);
- if (2 == verbose)
+ if (2 == pe->s1->verbose)
printf("-------------------------------\n");
- if (verbose)
+ if (pe->s1->verbose)
printf("<- %s (%lu bytes)\n", pe->filename, file_offset);
return 0;
@@ -859,7 +859,7 @@ ST_FN void pe_build_exports(struct pe_info *pe)
error_noabort("could not create '%s': %s", buf, strerror(errno));
} else {
fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname);
- if (verbose)
+ if (pe->s1->verbose)
printf("<- %s (%d symbols)\n", buf, sym_count);
}
#endif
@@ -1065,7 +1065,7 @@ ST_FN int pe_assign_addresses (struct pe_info *pe)
flags & SHF_EXECINSTR ? "exec" : ""
);
}
- verbose = 2;
+ pe->s1->verbose = 2;
#endif
tcc_free(section_order);