159 static const size_t max_to_print=15;
166 vfprintf(stderr, fmt, ap);
169 fprintf(stderr,
"Import message limit reached; import diagnostics are now suppressed.\n");
202 ROSE_ASSERT(fhdr!=NULL);
209 for (
size_t i = 0; 1; i++) {
212 if (NULL==idir->
parse(idir_va)) {
235 ROSE_ASSERT(dirlist.end()==
std::find(dirlist.begin(), dirlist.end(), d));
237 dirlist.push_back(d);
247 SgAsmPEImportDirectoryPtrList::iterator found =
std::find(dirlist.begin(), dirlist.end(), d);
248 if (found!=dirlist.end()) {
249 dirlist.erase(found);
268 size_t nimports = dirlist.size();
272 for (
size_t i=0; i<nimports; i++)
273 end_rva.
increment(dirlist[i]->reallocate(end_rva));
302 for (SgAsmPEImportDirectoryPtrList::const_iterator di=dirs.begin(); di!=dirs.end(); ++di) {
303 (*di)->set_iat_rva(rva);
304 size_t need = (*di)->iat_required_size();
305 (*di)->set_iat_nalloc(need);
321 write(f, i, 1, &byte);
333 import_mesg(
"SgAsmImportSection::unparse: error: Import Directory #%zu skipped (short write)\n", i);
339 memset(&zero, 0,
sizeof zero);
349 sprintf(p,
"%sPEImportSection[%zd].", prefix, idx);
351 sprintf(p,
"%sPEImportSection.", prefix);