Changeset 21763 for branches/gcc-kmk/tools/impdef/ImpDef.cpp
- Timestamp:
- Oct 29, 2011, 4:58:47 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/tools/impdef/ImpDef.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/tools/impdef/ImpDef.cpp
r8002 r21763 197 197 { 198 198 kFile * pOutput = new kFile(pszOutput, FALSE); 199 kExportEntry exp ort;199 kExportEntry exp; 200 200 201 201 /* generate LIBRARY line */ … … 210 210 211 211 /* Exports */ 212 if (pDefFile->exportFindFirst(&exp ort))212 if (pDefFile->exportFindFirst(&exp)) 213 213 { 214 214 pOutput->printf("EXPORTS\n"); … … 219 219 220 220 /* validate export struct */ 221 if (exp ort.achName[0] == '\0')221 if (exp.achName[0] == '\0') 222 222 { 223 223 kFile::StdErr.printf( 224 224 "Warning export name is missing.\n" 225 225 "info:\texport.achIntName=%s\n\texport.achName=%s\n\texport.ulOrdinal=%ld\n", 226 exp ort.achIntName, export.achName, export.ulOrdinal);226 exp.achIntName, exp.achName, exp.ulOrdinal); 227 227 continue; 228 228 } 229 if (exp ort.ulOrdinal == ~0UL)229 if (exp.ulOrdinal == ~0UL) 230 230 { 231 231 kFile::StdErr.printf( 232 232 "warning: export is missing ordinal value. Export is ignored\n" 233 233 "info:\texport.achIntName=%s\n\texport.achName=%s\n\texport.ulOrdinal=%ld\n", 234 exp ort.achIntName, export.achName, export.ulOrdinal);234 exp.achIntName, exp.achName, exp.ulOrdinal); 235 235 continue; 236 236 } 237 237 238 238 /* real work */ 239 pszName = generateExportName(&exp ort, &szName[0], pOptions);240 241 pOutput->printf(" %-*s @%ld\n", 40, pszName, exp ort.ulOrdinal);242 } while (pDefFile->exportFindNext(&exp ort));239 pszName = generateExportName(&exp, &szName[0], pOptions); 240 241 pOutput->printf(" %-*s @%ld\n", 40, pszName, exp.ulOrdinal); 242 } while (pDefFile->exportFindNext(&exp)); 243 243 pOutput->setSize(); 244 244 delete pOutput;
Note:
See TracChangeset
for help on using the changeset viewer.
