/ Check-in [4b7710e2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove C++ comments from btree.c. (CVS 277)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4b7710e2daadffb716bd88f3a213f94ffbb750ef
User & Date: drh 2001-10-02 13:01:49
Context
2001-10-02
13:05
Version 2.0.1 (CVS 469) check-in: e4980849 user: drh tags: trunk
13:01
Remove C++ comments from btree.c. (CVS 277) check-in: 4b7710e2 user: drh tags: trunk
2001-10-01
14:29
The .dump output uses INSERT instead of COPY now. Expression syntax of the form "expr NOT NULL" is now supported. (CVS 276) check-in: 20382325 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** $Id: btree.c,v 1.31 2001/09/27 03:22:33 drh Exp $
           12  +** $Id: btree.c,v 1.32 2001/10/02 13:01:49 drh Exp $
    13     13   **
    14     14   ** This file implements a external (disk-based) database using BTrees.
    15     15   ** For a detailed discussion of BTrees, refer to
    16     16   **
    17     17   **     Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3:
    18     18   **     "Sorting And Searching", pages 473-480. Addison-Wesley
    19     19   **     Publishing Company, Reading, Massachusetts.
................................................................................
  2501   2501   
  2502   2502   /*
  2503   2503   ** This structure is passed around through all the sanity checking routines
  2504   2504   ** in order to keep track of some global state information.
  2505   2505   */
  2506   2506   typedef struct SanityCheck SanityCheck;
  2507   2507   struct SanityCheck {
  2508         -  Btree *pBt;    // The tree being checked out
  2509         -  Pager *pPager; // The associated pager.  Also accessible by pBt->pPager
  2510         -  int nPage;     // Number of pages in the database
  2511         -  int *anRef;    // Number of times each page is referenced
  2512         -  int nTreePage; // Number of BTree pages
  2513         -  int nByte;     // Number of bytes of data stored on BTree pages
  2514         -  char *zErrMsg; // An error message.  NULL of no errors seen.
         2508  +  Btree *pBt;    /* The tree being checked out */
         2509  +  Pager *pPager; /* The associated pager.  Also accessible by pBt->pPager */
         2510  +  int nPage;     /* Number of pages in the database */
         2511  +  int *anRef;    /* Number of times each page is referenced */
         2512  +  int nTreePage; /* Number of BTree pages */
         2513  +  int nByte;     /* Number of bytes of data stored on BTree pages */
         2514  +  char *zErrMsg; /* An error message.  NULL of no errors seen. */
  2515   2515   };
  2516   2516   
  2517   2517   /*
  2518   2518   ** Append a message to the error message string.
  2519   2519   */
  2520   2520   static void checkAppendMsg(SanityCheck *pCheck, char *zMsg1, char *zMsg2){
  2521   2521     if( pCheck->zErrMsg ){

Changes to www/changes.tcl.

    13     13   
    14     14   
    15     15   proc chng {date desc} {
    16     16     puts "<DT><B>$date</B></DT>"
    17     17     puts "<DD><P><UL>$desc</UL></P></DD>"
    18     18   }
    19     19   
    20         -chng {2001 Oct 1 (2.0.1)} {
           20  +chng {2001 Oct 2 (2.0.1)} {
           21  +<li>Remove some C++ style comments from btree.c so that it will compile
           22  +    using compilers other than gcc.</li>
    21     23   <li>The ".dump" output from the shell does not work if there are embedded
    22     24       newlines anywhere in the data.  This is an old bug that was carried
    23     25       forward from version 1.0.  To fix it, the ".dump" output no longer
    24     26       uses the COPY command.  It instead generates INSERT statements.</li>
    25     27   <li>Extend the expression syntax to support "expr NOT NULL" (with a
    26     28       space between the "NOT" and the "NULL") in addition to "expr NOTNULL"
    27     29       (with no space).</li>