mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 19:42:53 -08:00
Use igc_hash for face cache
This commit is contained in:
parent
6309751ddd
commit
b96b680523
1 changed files with 10 additions and 4 deletions
14
src/xfaces.c
14
src/xfaces.c
|
|
@ -4489,14 +4489,20 @@ hash_string_case_insensitive (Lisp_Object string)
|
|||
static uintptr_t
|
||||
lface_hash (Lisp_Object *v)
|
||||
{
|
||||
#ifdef HAVE_MPS
|
||||
#define xhash(x) igc_hash (x)
|
||||
#else
|
||||
#define xhash(x) XHASH (x)
|
||||
#endif
|
||||
return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX])
|
||||
^ hash_string_case_insensitive (v[LFACE_FOUNDRY_INDEX])
|
||||
^ hash_string_case_insensitive (v[LFACE_FOREGROUND_INDEX])
|
||||
^ hash_string_case_insensitive (v[LFACE_BACKGROUND_INDEX])
|
||||
^ XHASH (v[LFACE_WEIGHT_INDEX])
|
||||
^ XHASH (v[LFACE_SLANT_INDEX])
|
||||
^ XHASH (v[LFACE_SWIDTH_INDEX])
|
||||
^ XHASH (v[LFACE_HEIGHT_INDEX]));
|
||||
^ xhash (v[LFACE_WEIGHT_INDEX])
|
||||
^ xhash (v[LFACE_SLANT_INDEX])
|
||||
^ xhash (v[LFACE_SWIDTH_INDEX])
|
||||
^ xhash (v[LFACE_HEIGHT_INDEX]));
|
||||
#undef xhash
|
||||
}
|
||||
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue