aboutsummaryrefslogtreecommitdiff
path: root/src/cache.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-03 00:55:31 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-03 00:55:31 +0000
commit2913e17def90109ac83922e55a9df8999844ec58 (patch)
tree435d08bb62e3bfa045bcb4a59a9fcfba049fae1d /src/cache.cpp
parenta1bc3936b85eab573361026ae323c1a02e0f0ccd (diff)
downloadbuild-2913e17def90109ac83922e55a9df8999844ec58.tar.gz
build-2913e17def90109ac83922e55a9df8999844ec58.tar.bz2
build-2913e17def90109ac83922e55a9df8999844ec58.tar.xz
build-2913e17def90109ac83922e55a9df8999844ec58.zip
Since libbu++-reorg is now the trunk, build has been updated to work with it.
Diffstat (limited to '')
-rw-r--r--src/cache.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cache.cpp b/src/cache.cpp
index 61d0d28..b8e94ec 100644
--- a/src/cache.cpp
+++ b/src/cache.cpp
@@ -1,6 +1,6 @@
1#include "cache.h" 1#include "cache.h"
2#include "serializer.h" 2#include "bu/fstring.h"
3#include "staticstring.h" 3#include "bu/archive.h"
4 4
5Cache::Cache() 5Cache::Cache()
6{ 6{
@@ -15,14 +15,14 @@ Cache::~Cache()
15 } 15 }
16} 16}
17 17
18void Cache::serialize( class Serializer &ar ) 18void Cache::archive( class Bu::Archive &ar )
19{ 19{
20 if( ar.isLoading() ) 20 if( ar.isLoading() )
21 { 21 {
22 uint32_t sCache, sData, sIndex; 22 uint32_t sCache, sData, sIndex;
23 23
24 ar >> sIndex; 24 ar >> sIndex;
25 StaticString *Index = new StaticString[sIndex]; 25 Bu::FString *Index = new Bu::FString[sIndex];
26 for( uint32_t i = 0; i < sIndex; i++ ) 26 for( uint32_t i = 0; i < sIndex; i++ )
27 { 27 {
28 ar >> Index[i]; 28 ar >> Index[i];
@@ -39,10 +39,10 @@ void Cache::serialize( class Serializer &ar )
39 for( uint32_t j = 0; j < sData; j++ ) 39 for( uint32_t j = 0; j < sData; j++ )
40 { 40 {
41 ar >> nTmp; 41 ar >> nTmp;
42 lData.push_back( Index[nTmp].getString() ); 42 lData.push_back( Index[nTmp].getStr() );
43 } 43 }
44 ar >> nTmp; 44 ar >> nTmp;
45 mCache[Index[nTmp].getString()] = e; 45 mCache[Index[nTmp].getStr()] = e;
46 } 46 }
47 /* 47 /*
48 uint32_t sCache, sData; 48 uint32_t sCache, sData;