Ignore:
Timestamp:
Aug 2, 2000, 4:18:05 AM (25 years ago)
Author:
bird
Message:

Added line numbers for function and designnote.
Corrected reading of SDS function headers.

File:
1 edited

Legend:

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

    r3899 r3917  
    1 /* $Id: db.cpp,v 1.17 2000-07-29 14:12:47 bird Exp $ *
     1/* $Id: db.cpp,v 1.18 2000-08-02 02:18:04 bird Exp $ *
    22 *
    33 * DB - contains all database routines.
     
    941941        else
    942942            pszQuery += sprintf(pszQuery, ", file = -1");
     943
     944        /* Line */
     945        if (pFnDesc->lLine >= 0)
     946            pszQuery += sprintf(pszQuery, ", line = %ld", pFnDesc->lLine);
     947        else
     948            pszQuery += sprintf(pszQuery, ", line = -1");
    943949
    944950        /* return type */
     
    11661172 * @param       lSeqNbr         Sequence number (in dll). If 0 the use next available number.
    11671173 * @param       lSeqNbrFile     Sequence number in file.
     1174 * @param       lLine           Line number (1 - based!).
    11681175 */
    11691176BOOL            _System dbAddDesignNote(signed long lDll,
     
    11721179                                        const char *pszText,
    11731180                                        signed long lSeqNbr,
    1174                                         signed long lSeqNbrFile)
     1181                                        signed long lSeqNbrFile,
     1182                                        signed long lLine)
    11751183{
    11761184    char        szQuery[0x10200];
     
    12091217     * Create update query.
    12101218     */
    1211     sprintf(&szQuery[0], "INSERT INTO designnote(dll, file, seqnbrfile, seqnbr, title, note) "
    1212                          "VALUES (%ld, %ld, %ld, %ld, ",
    1213             lDll, lFile, lSeqNbrFile, lSeqNbr);
     1219    sprintf(&szQuery[0], "INSERT INTO designnote(dll, file, seqnbrfile, seqnbr, line, title, note) "
     1220                         "VALUES (%ld, %ld, %ld, %ld, %ld, ",
     1221            lDll, lFile, lSeqNbrFile, lSeqNbr, lLine);
    12141222    if (pszTitle != NULL && *pszTitle != '\0')
    12151223        sqlstrcat(&szQuery[0], NULL, pszTitle);
Note: See TracChangeset for help on using the changeset viewer.