Changeset 15639 for gsdl/trunk/src/recpt/historydb.cpp
- Timestamp:
- 2008-05-22T14:40:01+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/historydb.cpp
r15432 r15639 45 45 gdbmclass historydb; 46 46 47 if (historydb.opendatabase(historyfile, GDBM_READER, 1000, true)) {47 if (historydb.opendatabase(historyfile, DB_READER, 1000, true)) { 48 48 // get history list 49 49 text_t historyresult; … … 81 81 int numentries=0; 82 82 83 if ( !historydb.opendatabase(historyfile, GDBM_READER, 1000, true)) {83 if (!historydb.opendatabase(historyfile, DB_READER, 1000, true)) { 84 84 // not created yet 85 85 oldhistoryresult=""; … … 105 105 106 106 // 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; 108 108 109 109 // add on new linethe new record to the front of the list, then add the … … 130 130 gdbmclass historydb; 131 131 132 if ( !historydb.opendatabase(historyfile, GDBM_WRITER, 1000, true)) return false;132 if (!historydb.opendatabase(historyfile, DB_WRITER, 1000, true)) return false; 133 133 134 134 historydb.deletekey(userid);
Note:
See TracChangeset
for help on using the changeset viewer.