| 55 |
for (i = 0; i < dict_item_count; i++) |
for (i = 0; i < dict_item_count; i++) |
| 56 |
{ |
{ |
| 57 |
key = i * 37 + 13; |
key = i * 37 + 13; |
| 58 |
if (i % 2 == 0) |
if (i % 2 == 1) |
|
{ |
|
|
if (hash_dict_set(p_dict, key, i * 3 + 7) != 0) |
|
|
{ |
|
|
printf("hash_dict_set(%lu) error\n", key); |
|
|
break; |
|
|
} |
|
|
} |
|
|
else |
|
| 59 |
{ |
{ |
| 60 |
if (hash_dict_inc(p_dict, key, i * 3 + 7) != 0) |
if (hash_dict_inc(p_dict, key, i * 3 + 7) != 0) |
| 61 |
{ |
{ |
| 63 |
break; |
break; |
| 64 |
} |
} |
| 65 |
} |
} |
| 66 |
|
|
| 67 |
|
if (hash_dict_set(p_dict, key, i * 3 + 7) != 0) |
| 68 |
|
{ |
| 69 |
|
printf("hash_dict_set(%lu) error\n", key); |
| 70 |
|
break; |
| 71 |
|
} |
| 72 |
} |
} |
| 73 |
|
|
| 74 |
ret = (int)hash_dict_item_count(p_dict); |
ret = (int)hash_dict_item_count(p_dict); |
| 96 |
for (i = 0; i < dict_item_count; i++) |
for (i = 0; i < dict_item_count; i++) |
| 97 |
{ |
{ |
| 98 |
key = i * 37 + 13; |
key = i * 37 + 13; |
| 99 |
if (hash_dict_inc(p_dict, key, i * 5 + 17) != 0) |
if (hash_dict_inc(p_dict, key, i * 5 + 17) != 1) |
| 100 |
{ |
{ |
| 101 |
printf("hash_dict_set(%lu) error\n", key); |
printf("hash_dict_inc(%lu) error\n", key); |
| 102 |
break; |
break; |
| 103 |
} |
} |
| 104 |
} |
} |