Ignore:
Timestamp:
Feb 24, 2002, 3:58:29 AM (24 years ago)
Author:
bird
Message:

New kFile* classes; now in sync with os2tools.

File:
1 edited

Legend:

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

    r6678 r8006  
    1 /* $Id: StateUpd.cpp,v 1.39 2001-09-07 10:31:43 bird Exp $
     1/* $Id: StateUpd.cpp,v 1.40 2002-02-24 02:58:27 bird Exp $
    22 *
    33 * StateUpd - Scans source files for API functions and imports data on them.
     
    2020#include <stdlib.h>
    2121#include <assert.h>
    22 
     22#include <direct.h>
     23
     24#include "kTypes.h"
    2325#include "StateUpd.h"
    2426#include "db.h"
     
    5355static unsigned long analyseFnDcl(PFNDESC pFnDesc, char **papszLines, int i, int &iRet, const char *pszFilename, POPTIONS pOptions);
    5456static unsigned long analyseFnDcl2(PFNDESC pFnDesc, char **papszLines, int i, int &iRet, const char *pszFilename, POPTIONS pOptions);
    55 static char *SDSCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL);
    56 static char *CommonCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL);
    57 static BOOL isFunction(char **papszLines, int i, POPTIONS pOptions);
    58 static BOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions);
     57static char *SDSCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL);
     58static char *CommonCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL);
     59static KBOOL isFunction(char **papszLines, int i, POPTIONS pOptions);
     60static KBOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions);
    5961static long _System dbNotUpdatedCallBack(const char *pszValue, const char *pszFieldName, void *pvUser);
    6062static char *skipInsignificantChars(char **papszLines, int &i, char *psz);
     
    6971static void  copy(char *psz, char *pszFrom, int iFrom, char *pszTo, int iTo, char **papszLines);
    7072static void  copy(char *psz, int jFrom, int iFrom, int jTo, int iTo, char **papszLines);
    71 static void  copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, BOOL fStrip, BOOL fHTML);
    72 static void  copyComment(char *psz, int jFrom, int iFrom, char **papszLines, BOOL fStrip, BOOL fHTML);
     73static void  copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML);
     74static void  copyComment(char *psz, int jFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML);
    7375static char *stristr(const char *pszStr, const char *pszSubStr);
    7476static char *skipBackwards(const char *pszStopAt, const char *pszFrom, int &iLine, char **papszLines);
     
    8587{
    8688    int            argi;
    87     BOOL           fFatal = FALSE;
     89    KBOOL          fFatal = FALSE;
    8890    unsigned long  ulRc = 0;
    8991    char           szDLLName[64];
     
    9698    char          *pszPasswd   = "";
    9799    ULONG          ul1, ul2;
    98     ULONG          cUpdated, cAll, cNotAliased;
     100    unsigned long  cUpdated, cAll, cNotAliased;
    99101
    100102    DosError(0x3);
     
    468470    PSZ          pszDir;
    469471    PSZ          pszFile;
    470     BOOL         fFile;
     472    KBOOL        fFile;
    471473
    472474    /* -0.*/
     
    12001202
    12011203    /* 2a. */
    1202     /* operators are not supported (BOOL kTime::operator > (const kTime &time) const) */
     1204    /* operators are not supported (KBOOL kTime::operator > (const kTime &time) const) */
    12031205    if (pszFn > papszLines[iFn])
    12041206    {
     
    12781280    if (strnicmp(pszFn, "ODINFUNCTION", 12) == 0 || strnicmp(pszFn, "ODINPROCEDURE", 13) == 0)
    12791281    {
    1280         BOOL fProc = strnicmp(pszFn, "ODINPROCEDURE", 13) == 0;
     1282        KBOOL fProc = strnicmp(pszFn, "ODINPROCEDURE", 13) == 0;
    12811283        j = 0;
    12821284        if (cArgs < (fProc ? 1 : 2))
     
    18301832 * @remark    Addes some HTML tags.
    18311833 */
    1832 static char *SDSCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)
     1834static char *SDSCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)
    18331835{
    18341836    char *pszRet = pszTarget;
     
    19571959 * @remark    Addes some HTML tags.
    19581960 */
    1959 static char *CommonCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)
     1961static char *CommonCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)
    19601962{
    19611963    char *pszRet = pszTarget;
     
    20872089 * @param     pOptions     Pointer to options.
    20882090 */
    2089 static BOOL isFunction(char **papszLines, int i, POPTIONS pOptions)
     2091static KBOOL isFunction(char **papszLines, int i, POPTIONS pOptions)
    20902092{
    20912093    if (!pOptions->fOld)
     
    22442246 * @param     pOptions     Pointer to options.
    22452247 */
    2246 static BOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions)
     2248static KBOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions)
    22472249{
    22482250    char *psz = papszLines[i];
     
    23272329static char *skipInsignificantChars(char **papszLines, int &i, char *psz)
    23282330{
    2329     BOOL fComment = *psz == '/' && psz[1]  == '*';
     2331    KBOOL fComment = *psz == '/' && psz[1]  == '*';
    23302332
    23312333    while (fComment || *psz == ' ' || *psz == '\0' || (*psz == '/' && psz[1] == '/'))
     
    27392741 *
    27402742 */
    2741 static void copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, BOOL fStrip, BOOL fHTML)
     2743static void copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML)
    27422744{
    27432745    copyComment(psz, pszFrom - papszLines[iFrom], iFrom, papszLines, fStrip, fHTML);
     
    27602762 * @author      knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    27612763 */
    2762 static void copyComment(char *psz, int jFrom, int iFrom, char **papszLines, BOOL fStrip, BOOL fHTML)
     2764static void copyComment(char *psz, int jFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML)
    27632765{
    27642766    char *  pszStartBuffer = psz;       /* Start of the target buffer. */
     
    29162918static char *skipBackwards(const char *pszStopAt, const char *pszFrom, int &iLine, char **papszLines)
    29172919{
    2918     BOOL        fComment = FALSE;
     2920    KBOOL       fComment = FALSE;
    29192921    int         i = iLine;
    29202922    const char *psz = pszFrom;
Note: See TracChangeset for help on using the changeset viewer.