summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sqldbm.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add end.ccNicholas Feinberg2014-07-281-1/+1
|
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-1/+1
|
* More padding fixes for ternary operatorChris Oelmueller2013-08-031-5/+5
|
* Fix a shadowing warning.Adam Borowski2013-05-151-2/+4
|
* Drop a lot of unnecessary braces.Adam Borowski2012-10-241-2/+0
| | | | | The perl one-liner I use for this had a bug where it didn't match "else" at the end of a line (ie, most of the time).
* Use unique_ptr instead of auto_ptr (emulated for non-C++11).Adam Borowski2012-08-281-6/+6
| | | | | | 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-26/+23
| | | | | | | | | | | | | 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.
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Remove parentheses around return (simple_function_call).Adam Borowski2012-07-051-1/+1
| | | | For way too paranoid and underinclusive values of "simple".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-23/+23
|
* Fix build failure with gcc-trunk.Adam Borowski2011-08-101-0/+1
|
* Make cppcheck a bit happier.Adam Borowski2011-07-051-2/+1
|
* Put usleep() emulation into syscalls.ccAdam Borowski2011-06-041-1/+1
|
* Merge branch 'unicode'.Adam Borowski2011-04-011-0/+11
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Merge branch 'master' into unicodeAdam Borowski2011-01-111-23/+23
| |\ | | | | | | | | | Conflicts galore...
| * \ Merge branch 'master' into unicodeAdam Borowski2010-10-151-4/+4
| |\ \
| * | | Handle filenames with non-ascii characters.Adam Borowski2010-09-171-0/+11
| | | | | | | | | | | | | | | | | | | | Only iostreams functions are left; on Windows they don't support Unicode so a workaround will be needed.
* | | | 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.
* | | Fix opening a db with no filename returning success.Adam Borowski2010-12-261-23/+23
| |/ |/| | | | | | | This is not an issue currently as we only do this several times with fixed arguments, but it could possibly cause problems in the future.
* | Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-4/+4
|/ | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Allow building with ancient sqlite (shuff/hakamadare).Adam Borowski2010-07-291-0/+9
|
* Windows has no usleep(), emulate.Adam Borowski2010-06-151-0/+2
|
* Make Crawl open sqlite dbs using readonly connections where possible, and ↵Darshan Shaligram2010-06-151-16/+106
| | | | | | | | | 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.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-09-281-7/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
* Added svn properties svn:keywords and svn:eol-style to files which werezelgadis2007-10-031-1/+1
| | | | | | | missing them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2301 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented SQLite fronts for dbm_firstkey and dbm_nextkey to fix trunk builddshaligram2007-09-221-2/+60
| | | | | | on Windows. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2180 c06c8d41-db1a-0410-9941-cceddc491573
* A few general fixes:j-p-e-g2007-09-101-1/+2
| | | | | | | | | Fix 1791185: Memory overrun. Patch provided by ennewalker. Fix 1789803. Again, patch by ennewalker. Fix 1790486: Throwing nets and launchers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2063 c06c8d41-db1a-0410-9941-cceddc491573
* The dungeon builder now caches compiled Lua chunks instead of Lua source in thedshaligram2007-06-271-2/+4
| | | | | | .dsc to save on compile time (at the expense of larger .dsc files). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1663 c06c8d41-db1a-0410-9941-cceddc491573
* Mummies fall apart in deep water, demons can drown in deep water or lava.dshaligram2007-04-251-2/+2
| | | | | | | | Fixed missing space for randart "Thing". Use SQLITE_TRANSIENT when inserting data into the db. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1363 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed trunk build for DOS and Windows. DOS and Windows builds use a SQLite db,dshaligram2007-04-221-0/+279
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