]> git.wh0rd.org - fontconfig.git/commit
Rework cache files to use offsets for all data structures.
authorKeith Packard <keithp@neko.keithp.com>
Wed, 30 Aug 2006 11:16:22 +0000 (04:16 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Wed, 30 Aug 2006 11:16:22 +0000 (04:16 -0700)
commit7ce196733129b0e664c1bdc20f973f15167292f7
treee63deabfdbe65246cf4ed53187e04e09a0027886
parent2a9179d8895c1cc90d02917f7bb6fac30ffb6a62
Rework cache files to use offsets for all data structures.

Replace all of the bank/id pairs with simple offsets, recode several
data structures to always use offsets inside the library to avoid
conditional paths. Exposed data structures use pointers to hold offsets,
setting the low bit to distinguish between offset and pointer.

Use offset-based data structures for lang charset encodings; eliminates
separate data structure format for that file.

Much testing will be needed; offsets are likely not detected everywhere in
the library yet.
18 files changed:
fc-arch/fcarch.tmpl.h
fc-lang/fc-lang.c
fontconfig/fontconfig.h
src/Makefile.am
src/fccache.c
src/fccfg.c
src/fccharset.c
src/fcdbg.c
src/fcdefault.c
src/fcfs.c
src/fcint.h
src/fclang.c
src/fclist.c
src/fcmatch.c
src/fcname.c
src/fcpat.c
src/fcstr.c
src/fcxml.c