Ignore:
Timestamp:
Oct 29, 2011, 4:58:47 PM (14 years ago)
Author:
dmik
Message:

Make impdef tool build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/tools/impdef/ImpDef.cpp

    r8002 r21763  
    197197            {
    198198                kFile * pOutput = new kFile(pszOutput, FALSE);
    199                 kExportEntry export;
     199                kExportEntry exp;
    200200
    201201                /* generate LIBRARY line */
     
    210210
    211211                /* Exports */
    212                 if (pDefFile->exportFindFirst(&export))
     212                if (pDefFile->exportFindFirst(&exp))
    213213                {
    214214                    pOutput->printf("EXPORTS\n");
     
    219219
    220220                        /* validate export struct */
    221                         if (export.achName[0] == '\0')
     221                        if (exp.achName[0] == '\0')
    222222                        {
    223223                            kFile::StdErr.printf(
    224224                                "Warning export name is missing.\n"
    225225                                "info:\texport.achIntName=%s\n\texport.achName=%s\n\texport.ulOrdinal=%ld\n",
    226                                 export.achIntName, export.achName, export.ulOrdinal);
     226                                exp.achIntName, exp.achName, exp.ulOrdinal);
    227227                            continue;
    228228                        }
    229                         if (export.ulOrdinal == ~0UL)
     229                        if (exp.ulOrdinal == ~0UL)
    230230                        {
    231231                            kFile::StdErr.printf(
    232232                                "warning: export is missing ordinal value. Export is ignored\n"
    233233                                "info:\texport.achIntName=%s\n\texport.achName=%s\n\texport.ulOrdinal=%ld\n",
    234                                     export.achIntName, export.achName, export.ulOrdinal);
     234                                    exp.achIntName, exp.achName, exp.ulOrdinal);
    235235                            continue;
    236236                        }
    237237
    238238                        /* real work */
    239                         pszName = generateExportName(&export, &szName[0], pOptions);
    240 
    241                         pOutput->printf("    %-*s  @%ld\n", 40, pszName, export.ulOrdinal);
    242                     } while (pDefFile->exportFindNext(&export));
     239                        pszName = generateExportName(&exp, &szName[0], pOptions);
     240
     241                        pOutput->printf("    %-*s  @%ld\n", 40, pszName, exp.ulOrdinal);
     242                    } while (pDefFile->exportFindNext(&exp));
    243243                pOutput->setSize();
    244244                delete pOutput;
Note: See TracChangeset for help on using the changeset viewer.