Changeset 8006 for trunk/tools/database/StateUpd.cpp
- Timestamp:
- Feb 24, 2002, 3:58:29 AM (24 years ago)
- 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:43bird Exp $1 /* $Id: StateUpd.cpp,v 1.40 2002-02-24 02:58:27 bird Exp $ 2 2 * 3 3 * StateUpd - Scans source files for API functions and imports data on them. … … 20 20 #include <stdlib.h> 21 21 #include <assert.h> 22 22 #include <direct.h> 23 24 #include "kTypes.h" 23 25 #include "StateUpd.h" 24 26 #include "db.h" … … 53 55 static unsigned long analyseFnDcl(PFNDESC pFnDesc, char **papszLines, int i, int &iRet, const char *pszFilename, POPTIONS pOptions); 54 56 static 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 BOOLisFunction(char **papszLines, int i, POPTIONS pOptions);58 static BOOLisDesignNote(char **papszLines, int i, POPTIONS pOptions);57 static char *SDSCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL); 58 static char *CommonCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart = NULL); 59 static KBOOL isFunction(char **papszLines, int i, POPTIONS pOptions); 60 static KBOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions); 59 61 static long _System dbNotUpdatedCallBack(const char *pszValue, const char *pszFieldName, void *pvUser); 60 62 static char *skipInsignificantChars(char **papszLines, int &i, char *psz); … … 69 71 static void copy(char *psz, char *pszFrom, int iFrom, char *pszTo, int iTo, char **papszLines); 70 72 static 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);73 static void copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML); 74 static void copyComment(char *psz, int jFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML); 73 75 static char *stristr(const char *pszStr, const char *pszSubStr); 74 76 static char *skipBackwards(const char *pszStopAt, const char *pszFrom, int &iLine, char **papszLines); … … 85 87 { 86 88 int argi; 87 BOOLfFatal = FALSE;89 KBOOL fFatal = FALSE; 88 90 unsigned long ulRc = 0; 89 91 char szDLLName[64]; … … 96 98 char *pszPasswd = ""; 97 99 ULONG ul1, ul2; 98 ULONGcUpdated, cAll, cNotAliased;100 unsigned long cUpdated, cAll, cNotAliased; 99 101 100 102 DosError(0x3); … … 468 470 PSZ pszDir; 469 471 PSZ pszFile; 470 BOOLfFile;472 KBOOL fFile; 471 473 472 474 /* -0.*/ … … 1200 1202 1201 1203 /* 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) */ 1203 1205 if (pszFn > papszLines[iFn]) 1204 1206 { … … 1278 1280 if (strnicmp(pszFn, "ODINFUNCTION", 12) == 0 || strnicmp(pszFn, "ODINPROCEDURE", 13) == 0) 1279 1281 { 1280 BOOL fProc = strnicmp(pszFn, "ODINPROCEDURE", 13) == 0;1282 KBOOL fProc = strnicmp(pszFn, "ODINPROCEDURE", 13) == 0; 1281 1283 j = 0; 1282 1284 if (cArgs < (fProc ? 1 : 2)) … … 1830 1832 * @remark Addes some HTML tags. 1831 1833 */ 1832 static char *SDSCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)1834 static char *SDSCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart) 1833 1835 { 1834 1836 char *pszRet = pszTarget; … … 1957 1959 * @remark Addes some HTML tags. 1958 1960 */ 1959 static char *CommonCopyTextUntilNextTag(char *pszTarget, BOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart)1961 static char *CommonCopyTextUntilNextTag(char *pszTarget, KBOOL fHTML, int iStart, int iEnd, char **papszLines, const char *pszStart) 1960 1962 { 1961 1963 char *pszRet = pszTarget; … … 2087 2089 * @param pOptions Pointer to options. 2088 2090 */ 2089 static BOOL isFunction(char **papszLines, int i, POPTIONS pOptions)2091 static KBOOL isFunction(char **papszLines, int i, POPTIONS pOptions) 2090 2092 { 2091 2093 if (!pOptions->fOld) … … 2244 2246 * @param pOptions Pointer to options. 2245 2247 */ 2246 static BOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions)2248 static KBOOL isDesignNote(char **papszLines, int i, POPTIONS pOptions) 2247 2249 { 2248 2250 char *psz = papszLines[i]; … … 2327 2329 static char *skipInsignificantChars(char **papszLines, int &i, char *psz) 2328 2330 { 2329 BOOL fComment = *psz == '/' && psz[1] == '*';2331 KBOOL fComment = *psz == '/' && psz[1] == '*'; 2330 2332 2331 2333 while (fComment || *psz == ' ' || *psz == '\0' || (*psz == '/' && psz[1] == '/')) … … 2739 2741 * 2740 2742 */ 2741 static void copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, BOOL fStrip,BOOL fHTML)2743 static void copyComment(char *psz, char *pszFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML) 2742 2744 { 2743 2745 copyComment(psz, pszFrom - papszLines[iFrom], iFrom, papszLines, fStrip, fHTML); … … 2760 2762 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 2761 2763 */ 2762 static void copyComment(char *psz, int jFrom, int iFrom, char **papszLines, BOOL fStrip,BOOL fHTML)2764 static void copyComment(char *psz, int jFrom, int iFrom, char **papszLines, KBOOL fStrip, KBOOL fHTML) 2763 2765 { 2764 2766 char * pszStartBuffer = psz; /* Start of the target buffer. */ … … 2916 2918 static char *skipBackwards(const char *pszStopAt, const char *pszFrom, int &iLine, char **papszLines) 2917 2919 { 2918 BOOLfComment = FALSE;2920 KBOOL fComment = FALSE; 2919 2921 int i = iLine; 2920 2922 const char *psz = pszFrom;
Note:
See TracChangeset
for help on using the changeset viewer.