]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Split reading/writing preferences into OS specific files
authorDirk Hohndel <dirk@hohndel.org>
Thu, 24 Nov 2011 06:56:57 +0000 (22:56 -0800)
committerDirk Hohndel <dirk@hohndel.org>
Thu, 24 Nov 2011 18:12:40 +0000 (10:12 -0800)
This adds tested code for Linux and Mac OS, implementing the api that
Linus suggested.

The Windows code was moved into its own file, but hasn't even been compile
tested, yet.

In order to have just one interface to set or get a preference value we
encode TRUE as (void *) 1 and FALSE as NULL. This works consistently on
all platforms and regardless of whether we have 32 or 64 bit.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>

No differences found