Ignore:
Timestamp:
Feb 12, 2000, 6:55:04 PM (26 years ago)
Author:
bird
Message:

Some new reports.
General bugfixes and new features.

Location:
trunk/tools/database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database

    • Property svn:ignore set to
      *.html
      *.gif
      html/*
  • trunk/tools/database/StateUpd.cpp

    r2761 r2765  
    1 /* $Id: StateUpd.cpp,v 1.9 2000-02-11 23:54:24 bird Exp $
     1/* $Id: StateUpd.cpp,v 1.10 2000-02-12 17:55:02 bird Exp $
    22 *
    33 * StateUpd - Scans source files for API functions and imports data on them.
     
    285285
    286286        /* write status to log */
     287        ul2 = dbGetNumberOfUpdatedFunction(options.lDllRefcode);
     288        ul1 = dbCountFunctionInDll(options.lDllRefcode);
    287289        fprintf(phLog, "-------------------------------------------------\n");
    288290        fprintf(phLog, "-------- Functions which was not updated --------\n");
     
    290292        fprintf(phLog, "-------------------------------------------------\n");
    291293        fprintf(phLog, "-------------------------------------------------\n\n");
    292         ul1 = dbCountFunctionInDll(options.lDllRefcode);
    293294        fprintf(phLog,"Number of function in this DLL:        %4ld\n", ul1);
    294         fprintf(phLog,"Number of successfully processed APIs: %4ld\n", (long)(0x0000FFFF & ulRc));
     295        fprintf(phLog,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
    295296        fprintf(phLog,"Number of signals:                     %4ld\n", (long)(ulRc >> 16));
    296297
     
    303304        /* warn if error during processing. */
    304305        fprintf(stdout,"Number of function in this DLL:        %4ld\n", ul1);
    305         fprintf(stdout,"Number of successfully processed APIs: %4ld\n", (long)(0x0000FFFF & ulRc));
     306        fprintf(stdout,"Number of successfully processed APIs: %4ld (%ld)\n", (long)(0x0000FFFF & ulRc), ul2);
    306307        fprintf(stdout,"Number of signals:                     %4ld\n", (long)(ulRc >> 16));
    307308        if ((int)(ulRc >> 16) > 0)
     
    13721373static long _System dbNotUpdatedCallBack(const char *pszValue, const char *pszFieldName, void *pvUser)
    13731374{
    1374     if (stricmp(pszFieldName, "name") == 0)
    1375         fprintf(phLog, "%s ", pszValue);
    1376     else if (stricmp(pszFieldName, "updated") == 0)
    1377         fprintf(phLog, "update=%s ", pszValue);
    1378     else if (stricmp(pszFieldName, "intname") == 0)
    1379         fprintf(phLog, "(%s)\n", pszValue);
     1375    static i = 0;
     1376    switch (i++)
     1377    {
     1378        case 0:
     1379            fprintf(phLog, "%s", pszValue);
     1380            break;
     1381        case 1:
     1382            fprintf(phLog, "(%s)", pszValue);
     1383            break;
     1384        case 2: /* updated */
     1385            fprintf(phLog, " %s=%s", pszFieldName, pszValue);
     1386            break;
     1387        case 3: /* aliasfn */
     1388            fprintf(phLog, " %s=%s", pszFieldName, pszValue);
     1389            break;
     1390        case 4:
     1391            if (pszValue != NULL)
     1392                fprintf(phLog, " --> %s.", pszValue);
     1393            break;
     1394        case 5:
     1395            if (pszValue != NULL)
     1396                fprintf(phLog, "%s", pszValue);
     1397            break;
     1398        case 6:
     1399            if (pszValue != NULL)
     1400                fprintf(phLog, "(%s)", pszValue);
     1401            break;
     1402
     1403        default:
     1404            i = 0;
     1405            fprintf(phLog, "\n");
     1406    }
     1407
     1408    if (stricmp(pszFieldName, "last") == 0)
     1409    {
     1410        i = 0;
     1411        fprintf(phLog, "\n");
     1412    }
    13801413
    13811414    pvUser = pvUser;
Note: See TracChangeset for help on using the changeset viewer.