From 0f8ae3031b2f683a04dd77b1751af4fec72902c9 Mon Sep 17 00:00:00 2001 From: chatty Date: Thu, 13 Jul 1995 13:05:34 +0000 Subject: Moved a couple of declarations to please g++ 2.7 --- utils/IdTable.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/IdTable.cc b/utils/IdTable.cc index bfca17a..193973c 100644 --- a/utils/IdTable.cc +++ b/utils/IdTable.cc @@ -89,7 +89,8 @@ CcuIdTable :: CcuIdTable (int sz) // link free entries with the 'Type' field int i = 0; - for (CcuIdCell* p = Entries; p < LastCell; p++) + CcuIdCell* p; + for (p = Entries; p < LastCell; p++) p->Type = ++i; (--p)->Type = 0; // end of free list @@ -123,7 +124,8 @@ CcuIdTable :: Grow (int newNb) // link free entries with the 'Type' field int i = nb; - for (CcuIdCell* p = Entries + nb; p < LastCell; p++) + CcuIdCell* p; + for (p = Entries + nb; p < LastCell; p++) p->Type = ++i; // prepend to current free list (to use them first) (--p)->Type = FirstFree; -- cgit v1.1