mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
get the range_tree tests to compile on centos 5.2 with gcc 4.1.2
git-svn-id: file:///svn/toku/tokudb.1032b@8273 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
75369283fa
commit
f9e4e7c273
4 changed files with 8 additions and 4 deletions
|
@ -55,6 +55,10 @@ TXNID_cmp (const TXNID a, const TXNID b) {
|
|||
return a < b ? -1 : (a != b); /* \marginpar{!?} */
|
||||
}
|
||||
|
||||
struct __toku_point {
|
||||
int n;
|
||||
};
|
||||
|
||||
static inline int
|
||||
int_cmp (const toku_point* a, const toku_point*b) {
|
||||
int x = *(int*)a;
|
||||
|
|
|
@ -65,7 +65,7 @@ int main(int argc, const char *argv[]) {
|
|||
unsigned bufsize = 2;
|
||||
unsigned found;
|
||||
|
||||
int stuff[3] = {0,1,2};
|
||||
toku_point stuff[3] = {{0},{1},{2}};
|
||||
range.ends.left = (toku_point*)&stuff[0];
|
||||
range.ends.right = (toku_point*)&stuff[1];
|
||||
range.data = 0;
|
||||
|
|
|
@ -6,7 +6,7 @@ int main(int argc, const char *argv[]) {
|
|||
int r;
|
||||
toku_range_tree *tree;
|
||||
toku_range range;
|
||||
int nums[8] = {0,1,2,3,4,5,6,7};
|
||||
toku_point nums[8] = {{0},{1},{2},{3},{4},{5},{6},{7}};
|
||||
char letters[2] = {'A','B'};
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ int main(int argc, const char *argv[]) {
|
|||
toku_range range;
|
||||
toku_interval find_range;
|
||||
toku_interval find_all_range;
|
||||
int nums[1000];
|
||||
toku_point nums[1000];
|
||||
char letters[2] = {'A','B'};
|
||||
unsigned found;
|
||||
unsigned bufsize;
|
||||
|
@ -19,7 +19,7 @@ int main(int argc, const char *argv[]) {
|
|||
parse_args(argc, argv);
|
||||
|
||||
for (j = 0; j < sizeof(nums)/sizeof(nums[0]); j++) {
|
||||
nums[j] = j;
|
||||
nums[j].n = j;
|
||||
}
|
||||
|
||||
find_range.left = (toku_point*)&nums[4];
|
||||
|
|
Loading…
Add table
Reference in a new issue