Changeset 3944 for trunk/tools/database
- Timestamp:
- Aug 2, 2000, 10:20:36 PM (25 years ago)
- Location:
- trunk/tools/database
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/StateUpd.cpp
r3937 r3944 1 /* $Id: StateUpd.cpp,v 1.3 1 2000-08-02 18:10:11bird Exp $1 /* $Id: StateUpd.cpp,v 1.32 2000-08-02 20:20:35 bird Exp $ 2 2 * 3 3 * StateUpd - Scans source files for API functions and imports data on them. … … 216 216 case 'S': 217 217 options.fRecursive = TRUE; 218 fprintf(stderr, " This option (-s) is currently broken\n");219 return -1;218 fprintf(stderr, "Warning: -s processes subdirs of source for one DLL\n"); 219 break; 220 220 221 221 case 'u': … … 1342 1342 pszEnd = strlen(pszEnd) + pszEnd + 1; 1343 1343 *pszEnd = '\0'; 1344 memset(psz, ' ', pszP2 - psz); 1344 if (pszP2 > psz) //FIXME here is a bug. (opengl\mesa\span.c(gl_write_multitexture_span)) 1345 memset(psz, ' ', pszP2 - psz); 1346 else 1347 fprintf(phLog, "assert: line %d\n", __LINE__); 1345 1348 } 1346 1349 pFnDesc->apszParamType[j] = trim(apszArgs[j]); … … 2777 2780 * @remark Comments are skipped. 2778 2781 * No tests for strings ("...asdf"). 2782 * TODO: Multiline preprocessor directives.... 2779 2783 */ 2780 2784 static char *skipBackwards(const char *pszStopAt, const char *pszFrom, int &iLine, char **papszLines) … … 2817 2821 while (*pszStart == ' ') 2818 2822 pszStart++; 2819 if (*pszStart != '\0' && *pszStart != '#' 2820 && !(*pszStart == '/' && pszStart[1] == '/')) 2823 2824 /* stop at preprocessor stuff */ 2825 if (*pszStart == '#') 2826 return (char*)pszFrom; 2827 2828 if (*pszStart != '\0' && !(*pszStart == '/' && pszStart[1] == '/')) 2821 2829 { /* find '//' */ 2822 2830 pszStart = strstr(pszStart, "//"); -
trunk/tools/database/db.cpp
r3937 r3944 1 /* $Id: db.cpp,v 1.2 0 2000-08-02 18:10:17bird Exp $ *1 /* $Id: db.cpp,v 1.21 2000-08-02 20:20:36 bird Exp $ * 2 2 * 3 3 * DB - contains all database routines. … … 2039 2039 { 2040 2040 /* delete parameters */ 2041 sprintf(&szQuery[0], "DELETE FROM parameter WHERE function %s", row[0]);2041 sprintf(&szQuery[0], "DELETE FROM parameter WHERE function = %s", row[0]); 2042 2042 rc = mysql_query(pmysql, &szQuery[0]); 2043 2043 if (rc) fRc = FALSE; 2044 2044 2045 2045 /* author relations */ 2046 sprintf(&szQuery[0], "DELETE FROM fnauthor WHERE function %s", row[0]);2046 sprintf(&szQuery[0], "DELETE FROM fnauthor WHERE function = %s", row[0]); 2047 2047 rc = mysql_query(pmysql, &szQuery[0]); 2048 2048 if (rc) fRc = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.