]> git.wh0rd.org - fontconfig.git/commit
Skip broken caches. Cache files are auto-written, don't rewrite in fc-cache.
authorKeith Packard <keithp@neko.keithp.com>
Thu, 31 Aug 2006 04:59:53 +0000 (21:59 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Thu, 31 Aug 2006 04:59:53 +0000 (21:59 -0700)
commit2d3387fd720f33f80847ae6cbb83d94c9a52fde3
tree3fc11dd9351ea57bec218420a4c9910e3729cc54
parent09f9f6f62ac94f7b1a6df649a00c64f78ab132f5
Skip broken caches. Cache files are auto-written, don't rewrite in fc-cache.

Validate cache contents and skip broken caches, looking down cache path for
valid ones.

Every time a directory is scanned, it will be written to a cache file if
possible, so fc-cache doesn't need to re-write the cache file. This makes
detecting when the cache was generated a bit tricky, so we guess that if the
cache wasn't valid before running and is valid afterwards, the cache file
was written.

Also, allow empty charsets to be serialized with null leaves/numbers.

Eliminate a leak in FcEdit by switching to FcObject sooner.

Call FcFini from fc-match to make valgrind happy.
fc-cache/fc-cache.c
fc-match/fc-match.c
src/fccache.c
src/fccfg.c
src/fccharset.c
src/fcdir.c
src/fcint.h
src/fcxml.c