Changeset 3937 for trunk/tools/database/StateUpd.cpp
- Timestamp:
- Aug 2, 2000, 8:10:17 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/StateUpd.cpp
r3921 r3937 1 /* $Id: StateUpd.cpp,v 1.3 0 2000-08-02 14:45:40bird Exp $1 /* $Id: StateUpd.cpp,v 1.31 2000-08-02 18:10:11 bird Exp $ 2 2 * 3 3 * StateUpd - Scans source files for API functions and imports data on them. … … 1289 1289 pFnDesc->apszParamName[j] = findStartOfWord(apszArgs[j] + cch - 1, 1290 1290 apszArgs[j]); 1291 if (strcmp(pFnDesc->apszParamName[j], "OPTIONAL") == 0) 1292 { 1293 pFnDesc->apszParamName[j]--; 1294 while (*pFnDesc->apszParamName[j] == ' ') 1295 pFnDesc->apszParamName[j]--; 1296 pFnDesc->apszParamName[j] = findStartOfWord(pFnDesc->apszParamName[j], 1297 apszArgs[j]); 1298 } 1299 else if (pFnDesc->cParams > j + 1 && 1300 strncmp(apszArgs[j + 1], "OPTIONAL ", 9) == 0) //fix for ?bad? code (OPTIONAL is after the colon). 1301 { 1302 /* hack! !!!ASSUMES A LOT!!! */ 1303 apszArgs[j + 1] += 9; 1304 strcat(pFnDesc->apszParamName[j], " OPTIONAL"); 1305 } 1291 1306 pFnDesc->apszParamName[j][-1] = '\0'; 1292 1307 pFnDesc->apszParamType[j] = trim(apszArgs[j]); … … 1642 1657 if (pszAuthors != NULL) 1643 1658 { /* author1, author2, author3 */ 1659 char *pszBr1; 1660 char *pszBr2; 1661 1662 /* remove '[text]' text - this is usualy used for time/date */ 1663 psz = trim(pszAuthors); 1664 pszBr1 = strchr(psz, '['); 1665 pszBr2 = strchr(psz, ']'); 1666 while (pszBr1 != NULL && pszBr2 != NULL && pszBr1 < pszBr2) 1667 { 1668 memset(pszBr1, ' ', pszBr2 - pszBr1 +1); 1669 pszBr1 = strchr(psz, '['); 1670 pszBr2 = strchr(psz, ']'); 1671 } 1672 1644 1673 j = 0; 1645 1674 psz = trim(pszAuthors); … … 1647 1676 while (*psz != '\0' && pFnDesc->cAuthors < (int)(sizeof(pFnDesc->apszAuthor) / sizeof(pFnDesc->apszAuthor[0]))) 1648 1677 { 1649 char *pszBr1 = strchr(psz, '[');1650 char *pszBr2 = strchr(psz, ']');1651 1678 char *pszEmail = NULL; 1652 1679 char *pszNext; 1653 1680 1654 /* remove '[text]' text - this is usualy used for time/date */1655 if (pszBr1 != NULL && pszBr2 != NULL && pszBr1 < pszBr2)1656 while (pszBr1 <= pszBr2)1657 *pszBr1++ = ' ';1658 1659 1681 /* terminate string */ 1660 pszNext = strchr(psz, ' ,');1682 pszNext = strchr(psz, '\n'); 1661 1683 if (pszNext == NULL) 1662 pszNext = strchr(psz, ' \n');1684 pszNext = strchr(psz, ','); 1663 1685 if (pszNext != NULL) 1664 1686 *pszNext = '\0'; … … 1758 1780 * new paragraph?. 1759 1781 */ 1760 if ( cBlanks == 1)1782 if (fHTML && cBlanks == 1) 1761 1783 { 1762 1784 strcpy(pszTarget, "<p>\n"); … … 1888 1910 * new paragraph?. 1889 1911 */ 1890 if ( cBlanks == 1)1912 if (fHTML && cBlanks == 1) 1891 1913 { 1892 1914 strcpy(pszTarget, "<p>\n");
Note:
See TracChangeset
for help on using the changeset viewer.