From 57127f73b996e4816fa6e9a7bd78a1c0a7ec9146 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 8 Jun 2002 12:50:18 +0000 Subject: [PATCH] * src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of `family' and `hash' up to make it compilable with g++. --- ChangeLog | 2 ++ src/cache/ftccache.i | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf9ad2c67..e75481881 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link) [FTC_CACHE_USE_LINEAR_HASHING]: Fix returned error code. Fix debugging messages. + * src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of + `family' and `hash' up to make it compilable with g++. * src/type42/t42error.h: New file. * src/type42/t42drivr.c, src/type42/t42objs.c, diff --git a/src/cache/ftccache.i b/src/cache/ftccache.i index 48f956893..3e7ce5052 100644 --- a/src/cache/ftccache.i +++ b/src/cache/ftccache.i @@ -31,6 +31,8 @@ FTC_Node *anode ) { FT_LruNode lru; + FTC_Family family; + FT_UFast hash; query->hash = 0; @@ -70,11 +72,12 @@ } { - FTC_Family family = (FTC_Family) lru; - FT_UFast hash = query->hash; - FTC_Node node, *pnode, *bucket; + FTC_Node node, *pnode, *bucket; + family = (FTC_Family)lru; + hash = query->hash; + #ifdef FTC_CACHE_USE_LINEAR_HASHING FT_UInt index;