Lines 1-15
Link Here
|
1 |
--- lib/dartsdic.cpp.orig 2003-07-30 18:06:57.000000000 +0200 |
1 |
--- lib/dartsdic.cpp.orig 2008-12-26 15:45:32.000000000 +0000 |
2 |
+++ lib/dartsdic.cpp 2008-06-22 21:44:25.000000000 +0200 |
2 |
+++ lib/dartsdic.cpp 2008-12-26 15:46:13.000000000 +0000 |
3 |
@@ -68,7 +68,7 @@ |
3 |
@@ -168,7 +168,7 @@ |
4 |
|
|
|
5 |
da = (darts_t*)cha_malloc(sizeof(darts_t)); |
6 |
da->da_mmap = cha_mmap_file(daname); |
7 |
- darts->setArray(cha_mmap_map(da->da_mmap)); |
8 |
+ darts->set_array(cha_mmap_map(da->da_mmap)); |
9 |
da->da = darts; |
10 |
da->lex_mmap = cha_mmap_file(lexname); |
11 |
da->dat_mmap = cha_mmap_file(datname); |
12 |
@@ -160,7 +160,7 @@ |
13 |
{ |
4 |
{ |
14 |
Hash::iterator i, last; |
5 |
Hash::iterator i, last; |
15 |
Hash* entries = builder->entries; |
6 |
Hash* entries = builder->entries; |
Lines 18-28
Link Here
|
18 |
size_t* lens = new size_t[entries->size()]; |
9 |
size_t* lens = new size_t[entries->size()]; |
19 |
long* vals = new long[entries->size()]; |
10 |
long* vals = new long[entries->size()]; |
20 |
int size = 0; |
11 |
int size = 0; |
21 |
@@ -177,7 +177,7 @@ |
12 |
@@ -185,7 +185,7 @@ |
22 |
lex_indices.push_back(i->second); |
13 |
lex_indices.push_back(i->second); |
23 |
} |
14 |
} |
24 |
lens[size] = key.size(); |
15 |
lens[size] = key.size(); |
25 |
- (const char*)keys[size] = key.data(); |
16 |
- keys[size] = (char*) key.data(); |
26 |
+ keys[size] = (const char*) key.data(); |
17 |
+ keys[size] = (const char*) key.data(); |
27 |
vals[size] = redump_lex(lens[size], lex_indices, tmpfile, lexfile); |
18 |
vals[size] = redump_lex(lens[size], lex_indices, tmpfile, lexfile); |
28 |
if (vals[size] < 0) { |
19 |
if (vals[size] < 0) { |