aboutsummaryrefslogtreecommitdiff
path: root/tree234.c (follow)
Commit message (Collapse)AuthorAge
* Use C99 bool within source modules.Simon Tatham2018-11-13
| | | | | | | | | | This is the main bulk of this boolification work, but although it's making the largest actual change, it should also be the least disruptive to anyone interacting with this code base downstream of me, because it doesn't modify any interface between modules: all the inter-module APIs were updated one by one in the previous commits. This just cleans up the code within each individual source file to use bool in place of int where I think that makes things clearer.
* Adopt C99 bool in the tree234 API.Simon Tatham2018-11-13
| | | | | The only affected function here is splitpos234, which I don't think these puzzles are even using at the moment.
* Patch from Ben Hutchings: explicitly initialise something which someSimon Tatham2010-04-18
| | | | | | gccs complained about. [originally from svn r8923]
* Add a precautionary pair of initialisations to placate optimisers,Simon Tatham2009-11-10
| | | | | | | and asserts to check that the preinitialised values are never actually used. [originally from svn r8745]
* Rather to my surprise given the amount of testing this code has had,Simon Tatham2007-01-11
| | | | | | | | | Kevin Lyles spotted a tree234 bug! copytree234() segfaulted when asked to copy a tree containing no elements, due to failing to allow for the case that t->root might be NULL. Fixed, and added a regression test. [originally from svn r7092]
* Yikes! I've only just noticed that this copy of tree234.c was stillSimon Tatham2005-10-12
| | | | | | | | | using unwrappered malloc/free, leaving plenty of openings for out- of-memory segfaults. Switch to using Puzzles's memory management, which I should have done right at the start but can only assume I forgot about. [originally from svn r6388]
* Initial checkin of a portable framework for writing small GUI puzzleSimon Tatham2004-04-25
games. [originally from svn r4138]