Ignore:
Timestamp:
Feb 13, 2000, 12:54:30 AM (26 years ago)
Author:
bird
Message:

Corrections, DB optimizations, and some new features in StateUpd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/APIImport.cpp

    r2759 r2770  
    1 /* $Id: APIImport.cpp,v 1.2 2000-02-11 18:35:53 bird Exp $ */
     1/* $Id: APIImport.cpp,v 1.3 2000-02-12 23:54:28 bird Exp $ */
    22/*
    33 *
     
    3535static void closeLog(void);
    3636static long processFile(const char *pszFilename, const POPTIONS pOptions, long &cFunctions);
    37 static void demangle(const char *pszMangledName, char *pszDemangled);
     37static void demangle(char *pszDemangled, const char *pszMangledName);
    3838
    3939
     
    286286                            char szName[64];
    287287
    288                             demangle(export.achIntName, &szIntName[0]);
     288                            /* exported name */
    289289                            if (export.achName == '\0')
    290290                                sprintf(&szName[0], "Ordinal%04ld", export.ulOrdinal);
    291291                            else
    292292                                strcpy(&szName[0], &export.achName[0]);
     293
     294                            /* internal name */
     295                            if (export.achIntName[0] == '\0')
     296                                demangle(&szIntName[0], &szName[0]);
     297                            else
     298                                demangle(&szIntName[0], export.achIntName);
    293299
    294300                            fprintf(phLog, "%s: %08ld %-30s %s\n",
     
    342348/**
    343349 * Demangles stdcall functions.
     350 * @param       pszDemangled    Pointer to buffer which will hold the demangled name upon return.
    344351 * @param       pszMangledName  Mangled name
    345  * @param       pszDemangled    Pointer to buffer which will hold the demangled name upon return.
    346  */
    347 static void demangle(const char *pszMangledName, char *pszDemangled)
     352 */
     353static void demangle(char *pszDemangled, const char *pszMangledName)
    348354{
    349355    int iEnd;
Note: See TracChangeset for help on using the changeset viewer.