settings: Avoid using a pointer and global data for algorithms.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 29 Aug 2010 21:55:41 +0000 (14:55 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 29 Aug 2010 21:57:56 +0000 (14:57 -0700)
commit66946a0a0cab3a51e6fded95aef4e991baee319f
tree664ac15d556f767b6598e66ff407114e12d2e7c4
parentadd3ba666ddc4f88fbf0934184c82e35c0787795
settings: Avoid using a pointer and global data for algorithms.

Until now the difference between the current and global settings for
the algorithms in uses has been maintained as two values plus a pointer
to the setting actually in use.  Using global data like that makes it
harder to save and restore settings, so this commit adopt an alternate
method that avoids using global data or pointers.
src/data/settings.c