simon-svn: puzzles: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Sun Jul 17 13:12:17 BST 2005


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       6107
Date:           2005-07-17 13:12:16 +0100 (Sun, 17 Jul 2005)

Log message (3 lines):
Get rid of the malloc in shuffle(), by defining a subfunction
memswap() which declares a fixed-size buffer on the stack and uses
it multiple times if necessary.

Modified files:
U   puzzles/misc.c

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6107&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/misc.c?rev=6107&r1=6106&r2=6107



More information about the tartarus-commits mailing list