projects
/
onyx-aoc-2020.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e74790
)
cleaned up day 14
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 14 Dec 2020 20:50:59 +0000
(14:50 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Mon, 14 Dec 2020 20:50:59 +0000
(14:50 -0600)
day14.onyx
patch
|
blob
|
history
diff --git
a/day14.onyx
b/day14.onyx
index 844a2867c406aef7004b2a9bf17c45ece8ee7c44..e2e17896e23b58b963f78bb54b277e5ca77f24db 100644
(file)
--- a/
day14.onyx
+++ b/
day14.onyx
@@
-29,7
+29,7
@@
BitmaskIter :: struct {
done : bool;
}
-bitmask_iter_make :: proc (mask: Bitmask, val: u64) -> BitmaskIter
#export "foobar"
{
+bitmask_iter_make :: proc (mask: Bitmask, val: u64) -> BitmaskIter {
bmi : BitmaskIter;
bmi.done = false;
@@
-72,7
+72,7
@@
bitmask_iter_next :: proc (use bmi: ^BitmaskIter) -> u64 {
if !is_set do break break;
}
- done = true;
+ done = true;
}
return val;