summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sqldbm.h
Commit message (Collapse)AuthorAgeFilesLines
* Use unique_ptr instead of auto_ptr (emulated for non-C++11).Adam Borowski2012-08-281-2/+2
| | | | | | This stops the tons of warnings, while allowing building for both old and new C++ standards. And if we wanted to use shared_ptr or something, now we can without being ambiguous.
* Use std namespace.Raphael Langella2012-08-261-15/+14
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Make Crawl open sqlite dbs using readonly connections where possible, and ↵Darshan Shaligram2010-06-151-1/+10
| | | | | | | | | don't create SQLite transactions unless updating the db. Crawl can now correctly handle the case where one or more Crawl processes are running, the database source text files are modified, and a new Crawl is started. The new Crawl will update the db with the new data, which the old Crawl processes will also see immediately.
* Remove AppHdr.h from header filesMatthew Cline2009-11-011-2/+0
| | | | | gcc precompiled headers didn't work properly if AppHdr.h was included in include files, or included twice.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Switch to using 32-bit types instead of 64-bit types for sqlite. ↵ennewalker2009-02-261-5/+1
| | | | | | (dpeg--this should fix your compilation issues.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9225 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-09-281-6/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-0/+8
| | | | | | | | huge number of files. Also correct file name comments. No coding changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented SQLite fronts for dbm_firstkey and dbm_nextkey to fix trunk builddshaligram2007-09-221-0/+9
| | | | | | on Windows. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2180 c06c8d41-db1a-0410-9941-cceddc491573
* Older MinGW don't seem to typedef int64_t, hacked.dshaligram2007-04-221-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1343 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed trunk build for DOS and Windows. DOS and Windows builds use a SQLite db,dshaligram2007-04-221-0/+92
with a dbm-like wrapper so database.cc builds unchanged. Added SQLite to the source tree. Only DOS and Windows builds use it at the moment, but it can be added to Unix builds easily (and will be added automatically if a suitable db.h or ndbm.h is not found). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1342 c06c8d41-db1a-0410-9941-cceddc491573