aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-16 12:55:09 +0100
committergingerBill <bill@gingerbill.org>2020-06-16 12:55:09 +0100
commitf85f3dce12a7c6555f73df203c10ce2e6798e78f (patch)
tree5cf294907924db33d58a60270674dddd11467c7b /examples
parent5edb1e8a28115fce03760c1367bdb8c4fe935c46 (diff)
Revert demo.odin
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin22
1 files changed, 1 insertions, 21 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index ea843dd72..2485ca6f9 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -7,8 +7,6 @@ import "core:thread"
import "core:time"
import "core:reflect"
import "core:runtime"
-import "core:container"
-import "core:hash"
import "intrinsics"
@@ -1980,25 +1978,7 @@ pure_procedures :: proc() {
}
main :: proc() {
- bloom := &container.Bloom_Filter{};
-
- container.bloom_filter_init(bloom, 16);
- defer container.bloom_filter_destroy(bloom);
- container.bloom_filter_add_hash_proc(bloom, hash.djb2);
- container.bloom_filter_add_hash_proc(bloom, hash.jenkins);
- container.bloom_filter_add_hash_proc(bloom, hash.sdbm);
- container.bloom_filter_add_hash_proc(bloom, hash.fnv32a);
-
- fmt.printf("Should be false: %v\n", container.bloom_filter_test_string(bloom, "hello world"));
- container.bloom_filter_add_string(bloom, "hello world");
- fmt.printf("Should be true: %v\n", container.bloom_filter_test_string(bloom, "hello world"));
- fmt.printf("Should probably be false: %v\n", container.bloom_filter_test_string(bloom, "world hello"));
- fmt.println(bloom.bits);
-
-
- fmt.println("Here");
-
- when false {
+ when true {
the_basics();
control_flow();
named_proc_return_parameters();