Changeset 2770 for trunk/tools/database/APIImport.cpp
- Timestamp:
- Feb 13, 2000, 12:54:30 AM (26 years ago)
- 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:53bird Exp $ */1 /* $Id: APIImport.cpp,v 1.3 2000-02-12 23:54:28 bird Exp $ */ 2 2 /* 3 3 * … … 35 35 static void closeLog(void); 36 36 static long processFile(const char *pszFilename, const POPTIONS pOptions, long &cFunctions); 37 static void demangle(c onst char *pszMangledName, char *pszDemangled);37 static void demangle(char *pszDemangled, const char *pszMangledName); 38 38 39 39 … … 286 286 char szName[64]; 287 287 288 demangle(export.achIntName, &szIntName[0]);288 /* exported name */ 289 289 if (export.achName == '\0') 290 290 sprintf(&szName[0], "Ordinal%04ld", export.ulOrdinal); 291 291 else 292 292 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); 293 299 294 300 fprintf(phLog, "%s: %08ld %-30s %s\n", … … 342 348 /** 343 349 * Demangles stdcall functions. 350 * @param pszDemangled Pointer to buffer which will hold the demangled name upon return. 344 351 * @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 */ 353 static void demangle(char *pszDemangled, const char *pszMangledName) 348 354 { 349 355 int iEnd;
Note:
See TracChangeset
for help on using the changeset viewer.