Changeset 21766 for branches/gcc-kmk/tools/impdef/ImpDef.cpp
- Timestamp:
- Oct 31, 2011, 4:33:29 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/tools/impdef/ImpDef.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/tools/impdef/ImpDef.cpp
r21763 r21766 14 14 #include <string.h> 15 15 #include <stdlib.h> 16 17 #include <string> 18 #include <set> 16 19 17 20 #include "kTypes.h" … … 186 189 static long processFile(const char *pszInput, const char *pszOutput, const POPTIONS pOptions) 187 190 { 191 std::set<std::string> exports; 192 188 193 long lRc = 0; 189 194 … … 215 220 do 216 221 { 217 char szName[MAXEXPORTNAME ];222 char szName[MAXEXPORTNAME + 2 /*quotes*/]; 218 223 const char *pszName; 219 224 … … 237 242 238 243 /* real work */ 239 pszName = generateExportName(&exp, &szName[0], pOptions); 240 241 pOutput->printf(" %-*s @%ld\n", 40, pszName, exp.ulOrdinal); 244 pszName = generateExportName(&exp, &szName[1], pOptions); 245 if (exports.count(pszName) == 0) { 246 exports.insert(pszName); 247 szName[0] = '"'; 248 strcat(szName, "\""); 249 pszName = szName; 250 251 pOutput->printf(" %-*s @%ld\n", 40, pszName, exp.ulOrdinal); 252 } 242 253 } while (pDefFile->exportFindNext(&exp)); 243 254 pOutput->setSize();
Note:
See TracChangeset
for help on using the changeset viewer.
