Skip to content

Instantly share code, notes, and snippets.

@jgouly
Created July 3, 2009 10:24
Show Gist options
  • Save jgouly/140045 to your computer and use it in GitHub Desktop.
Save jgouly/140045 to your computer and use it in GitHub Desktop.
*** why-potion-4476f678fd22706ada7acf2c425c9336328b38c5/core/table.c 2009-07-01 00:07:26.000000000 +0100
--- why-potion-4476f678fd22706ada7acf2c425c9336328b38c5-2/core/table.c 2009-07-03 11:17:44.000000000 +0100
*************** PN potion_table_each(Potion *P, PN cl, P
*** 59,65 ****
unsigned k;
for (k = kh_begin(t->kh); k != kh_end(t->kh); ++k)
if (kh_exist(t->kh, k)) {
! PN_CLOSURE(block)->method(P, block, self, kh_key(t->kh, k), kh_value(t->kh, k));
}
return self;
}
--- 59,65 ----
unsigned k;
for (k = kh_begin(t->kh); k != kh_end(t->kh); ++k)
if (kh_exist(t->kh, k)) {
! PN_CLOSURE_F(block)(P, block, self, kh_key(t->kh, k), kh_value(t->kh, k));
}
return self;
}
*************** PN potion_tuple_clone(Potion *P, PN cl,
*** 152,158 ****
PN potion_tuple_each(Potion *P, PN cl, PN self, PN block) {
PN_TUPLE_EACH(self, i, v, {
! PN_CLOSURE(block)->method(P, block, self, v);
});
return self;
}
--- 152,158 ----
PN potion_tuple_each(Potion *P, PN cl, PN self, PN block) {
PN_TUPLE_EACH(self, i, v, {
! PN_CLOSURE_F(block)(P, block, self, v);
});
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment