Ignore:
Timestamp:
2008-05-22T14:40:01+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Changed some more "GDBM"s to "DB"s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/historydb.cpp

    r15432 r15639  
    4545  gdbmclass historydb;
    4646 
    47   if (historydb.opendatabase(historyfile, GDBM_READER, 1000, true)) {
     47  if (historydb.opendatabase(historyfile, DB_READER, 1000, true)) {
    4848    // get history list
    4949    text_t historyresult;
     
    8181  int numentries=0;
    8282
    83   if ( !historydb.opendatabase(historyfile, GDBM_READER, 1000, true)) {
     83  if (!historydb.opendatabase(historyfile, DB_READER, 1000, true)) {
    8484    // not created yet
    8585    oldhistoryresult="";
     
    105105 
    106106  // open for writing
    107   if (!historydb.opendatabase(historyfile, GDBM_WRCREAT, 1000, true)) return false;
     107  if (!historydb.opendatabase(historyfile, DB_WRITER_CREATE, 1000, true)) return false;
    108108 
    109109  // add on new linethe new record to the front of the list, then add the
     
    130130  gdbmclass historydb;
    131131 
    132   if ( !historydb.opendatabase(historyfile, GDBM_WRITER, 1000, true)) return false;
     132  if (!historydb.opendatabase(historyfile, DB_WRITER, 1000, true)) return false;
    133133
    134134  historydb.deletekey(userid);
Note: See TracChangeset for help on using the changeset viewer.