head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.26 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.24 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.22 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.20 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.18 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.16 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.14 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.12 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.10 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.8 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.6 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.4 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.2 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.1.1.1.0.18 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.16 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.14 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.12 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-2006Q1:1.1.1.1.0.10 pkgsrc-2006Q1-base:1.1.1.1 pkgsrc-2005Q4:1.1.1.1.0.8 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.6 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.4 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.2 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2007.05.22.12.17.47; author spz; state dead; branches; next 1.1; 1.1 date 2005.02.28.12.37.30; author spz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.02.28.12.37.30; author spz; state Exp; branches; next ; desc @@ 1.2 log @new version, new patches: upstream adopted a bunch of ours, but gcc found new things to bitch about @ text @$NetBSD: patch-as,v 1.1 2005/02/28 12:37:30 spz Exp $ --- src/irr/cache.hh.orig 2002-04-09 13:48:47.000000000 +0200 +++ src/irr/cache.hh @@@@ -77,13 +77,13 @@@@ public: Cache(void) : CacheKeyCacheValueAVLMap(cDefaultValue) {} // Add stuff into cache bool add(K aKey, V aValue) { - (*this)[(CacheKey)aKey] = CacheValue(aValue); + (*this)[(CacheKey)(intptr_t)aKey] = CacheValue(aValue); return true; } ~Cache(void) { clear(); } // Retrieve stuff from cache bool query(K aKey, V &arValue) { - CacheValue *pcValue = &(*this)[(CacheKey)aKey]; + CacheValue *pcValue = &(*this)[(CacheKey)(intptr_t)aKey]; // if not found, it always return default value: cDefaultValue // we never increase count of default value, so, it's safe to determine // cache miss by just checking the reference count to see if it's 0 @@@@ -97,7 +97,7 @@@@ public: return false; } void nullify(K aKey) { - CacheValue *pcValue = &(*this)[(CacheKey)aKey]; + CacheValue *pcValue = &(*this)[(CacheKey)(intptr_t)aKey]; pcValue->pvData = NULL; } // Override the function on the base class @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @IRRToolSet is a suite of policy analysis tools to operate with routing policies in RPSL [RFC 2622] format, registered in an Internet Routing Registry(IRR). The main goal of the project is to make routing information more convenient and useful for network engineers, by providing tools for automated router configuration, routing policies analysis, and maintenance. @ text @@